/* ── DGH42 legal pages ──────────────────────────────────────────────────────
   Shared by privacy.html and terms.html.

   These are documents to read, not scroll-world scenes: no scrub-engine.js, no
   video, no JavaScript and no analytics on either page. One stylesheet rather
   than two inline blocks, because the two pages are the same document format
   and a palette edit that lands on only one of them is the failure worth
   designing out.

   Palette is DESIGN_BRIEF.md's "Signals in the dark", written as literals here:
   index.html's theme tokens live in its own <style> block next to the engine it
   themes, and these pages do not mount the engine.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --lg-bg: #0A1220;          /* == index.html's --sw-bg */
  --lg-panel: #101B2E;
  --lg-border: #2A3A55;
  --lg-ink: #EDEAE2;
  --lg-ink-soft: #9AA3B2;
  --lg-ink-faint: #5E6B80;
  --lg-accent: #F0A63C;      /* signal amber  */
  --lg-link: #3FB8AF;        /* the one cool accent */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--lg-link); }
a:focus-visible,
.skip:focus { outline: 2px solid var(--lg-link); outline-offset: 3px; }

/* Keyboard users land here first; it is off-screen until focused. */
.skip {
  position: absolute; left: -9999px; top: 0;
  padding: 0.5rem 0.9rem; background: var(--lg-panel); color: var(--lg-ink);
  border: 1px solid var(--lg-border); border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 2; }

.wrap { width: min(46rem, calc(100vw - 2.5rem)); margin: 0 auto; }

/* ── Masthead ─────────────────────────────────────────────────────────────── */

.doc-head {
  border-bottom: 1px solid var(--lg-border);
  padding: 1.4rem 0;
}
.doc-head .wrap { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.brand {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--lg-ink); text-decoration: none;
}
.brand:hover { color: var(--lg-accent); }
.doc-head nav { margin-left: auto; font-size: 0.85rem; }
.doc-head nav a { margin-left: 1.1rem; }

/* ── The document ─────────────────────────────────────────────────────────── */

main { padding: 3rem 0 4rem; }

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.2; font-weight: 700;
}
.updated {
  margin: 0 0 2.5rem;
  color: var(--lg-ink-faint); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.lede { color: var(--lg-ink-soft); font-size: 1.06rem; }

h2 {
  margin: 3rem 0 0.9rem;
  padding-top: 1.6rem; border-top: 1px solid var(--lg-border);
  font-size: 1.25rem; font-weight: 650; color: var(--lg-accent);
}
h3 { margin: 2rem 0 0.6rem; font-size: 1rem; font-weight: 650; }

p, li { color: var(--lg-ink); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.5rem 0; }
li > ul { margin-top: 0.5rem; }

strong { color: var(--lg-ink); font-weight: 650; }
code {
  padding: 0.05em 0.35em;
  background: var(--lg-panel); border: 1px solid var(--lg-border); border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  color: var(--lg-ink-soft);
}

/* A pulled-out statement of fact — used where the section's whole point is one
   sentence a reviewer is looking for. */
.callout {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  background: var(--lg-panel);
  border: 1px solid var(--lg-border); border-left: 3px solid var(--lg-accent);
  border-radius: 8px;
}
.callout p { margin: 0; }

table {
  width: 100%; margin: 1.3rem 0;
  border-collapse: collapse; font-size: 0.92rem;
}
caption { text-align: left; color: var(--lg-ink-faint); font-size: 0.82rem; padding-bottom: 0.5rem; }
th, td {
  padding: 0.6rem 0.8rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--lg-border);
}
th { color: var(--lg-ink-soft); font-weight: 650; }
thead th { border-bottom-color: var(--lg-accent); }

/* ── Placeholders the operator must resolve before this is published ───────── */

.todo {
  padding: 0.1em 0.45em;
  background: rgba(240, 166, 60, 0.16); color: var(--lg-accent);
  border: 1px dashed var(--lg-accent); border-radius: 5px;
  font-size: 0.86em; font-weight: 650; letter-spacing: 0.04em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.doc-foot {
  border-top: 1px solid var(--lg-border);
  padding: 2rem 0 3rem;
  color: var(--lg-ink-faint); font-size: 0.78rem;
}
.doc-foot a { margin-right: 1.1rem; }
.doc-foot p { margin: 0.6rem 0 0; }
