/* Legal pages. Deliberately not the app's stylesheet: the app is a full-height
   flex column built for a swipe deck, and these are documents that need to
   scroll, wrap at a readable measure, and be printable. Same palette so they
   read as part of the same thing. */

:root {
  --bg: #0b0d10;
  --panel: #14181e;
  --line: #242c36;
  --text: #e8edf2;
  --muted: #8a94a1;
  --like: #35d07f;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 2.5rem 1.25rem 4rem;
}

main {
  /* em, not ch: survives a font-load failure without the measure collapsing */
  max-width: 38em;
  margin: 0 auto;
}

.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { color: var(--like); }

h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0.5rem 0 0.25rem; }
h2 { font-size: 15px; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--text); }

.updated { color: var(--muted); font-size: 12px; margin-bottom: 1.75rem; }

p { margin-bottom: 0.9rem; color: #c3ccd6; }
strong { color: var(--text); font-weight: 700; }

ul { margin: 0 0 0.9rem 1.1rem; color: #c3ccd6; }
li { margin-bottom: 0.4rem; }

a { color: var(--like); text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* The one place a raw identifier appears in prose — kept visually distinct so a
   hostname is never mistaken for a sentence. */
.host { color: var(--text); background: var(--panel); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 0.9rem;
  overflow-x: auto;          /* a long line scrolls itself, never the page */
  font-size: 12.5px;
  color: var(--like);
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (prefers-color-scheme: light) {
  :root { --bg: #faf9f6; --panel: #f0eee9; --line: #ddd9d1; --text: #1c1a17; --muted: #6f6a61; --like: #147a4a; }
  p, ul { color: #3d3a35; }
}
