/* Legal pages (privacy.html, terms.html) — generated by make_legal.py.
   Self-contained, dark, typographic. Shares the landing's design tokens
   (see styles.css) but is intentionally calmer: no animation, no furniture,
   just a readable document. */

:root {
  --bg: #000;
  --surface: #0a0c0b;
  --surface-2: #101312;
  --fg: #f4f6f5;
  --fg-dim: #b9beba;
  --fg-muted: #7d837f;
  --fg-faint: #4a4f4c;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.45);
  --accent-soft: rgba(0, 255, 136, 0.07);
  --grotesk: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg-dim);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #000; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

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

/* ── Top nav ─────────────────────────────────────────────────── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.legal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--grotesk);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.legal-logo:hover { text-decoration: none; }
.legal-logo .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}
.legal-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.legal-back:hover { color: var(--accent); text-decoration: none; }

/* ── Document ────────────────────────────────────────────────── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 40px;
}
.doc-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 18px;
}
.doc-title {
  font-family: var(--grotesk);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 6vw, 52px);
  color: var(--fg);
}
.doc-meta {
  margin-top: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ── Body content ────────────────────────────────────────────── */
.doc-body { margin-top: 44px; }
.doc-body > * + * { margin-top: 18px; }

.doc-body h2 {
  font-family: var(--grotesk);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--fg);
  margin-top: 56px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
.doc-body h3 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  margin-top: 38px;
}
.doc-body h4 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-dim);
  margin-top: 28px;
}
.doc-body p { color: var(--fg-dim); }
.doc-body strong { color: var(--fg); font-weight: 600; }
.doc-body em { font-style: italic; color: var(--fg-muted); }
.doc-body a { border-bottom: 1px solid var(--accent-dim); }

.doc-body ul, .doc-body ol { padding-left: 24px; }
.doc-body li { margin-top: 8px; color: var(--fg-dim); }
.doc-body li::marker { color: var(--fg-faint); }

.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 44px 0;
}

.doc-body blockquote {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  color: var(--fg-dim);
}
.doc-body blockquote strong { color: var(--accent); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 540px;
}
.doc-body th, .doc-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.doc-body thead th {
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body tbody tr:hover { background: var(--surface); }
.doc-body td strong { color: var(--fg); }

/* ── Footer ──────────────────────────────────────────────────── */
.legal-foot {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 40px 28px 56px;
}
.legal-foot-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.legal-foot-links { display: flex; gap: 22px; }
.legal-foot a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.legal-foot a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .legal-doc { padding-top: 52px; }
  .legal-foot-inner { flex-direction: column; align-items: flex-start; }
}
