/* Legal pages (Terms, Privacy) — 2026-08-12.
   Static HTML in public/, outside the React bundle: these must render with no
   JS for crawlers, and they must never pull the app's CSS graph in.
   Every color mirrors a july.css token, which mirrors a palette.js token —
   the II-C no-miss rule holds here too.
   paper #eae1ce · paper-lift #ece3cf · ink #2a241c · ink @72% · scoreline #9b9079 */
:root {
  --paper: #eae1ce;
  --paper-lift: #ece3cf;
  --ink: #2a241c;
  --ink-soft: rgba(42, 36, 28, 0.72);
  --line: #9b9079;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.legal {
  max-width: 66ch;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

/* --- masthead: same kicker → wordmark rhythm as the app header --- */
.legal-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-back:hover { color: var(--ink); }

.legal h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.legal-date {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.legal-lede {
  margin: 14px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.95rem;
}

/* --- body --- */
.legal h2 {
  margin: 30px 0 8px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legal p,
.legal li {
  font-size: 0.9rem;
}

.legal p { margin: 0 0 12px; }

.legal ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.legal li { margin-bottom: 4px; }

.legal a { color: var(--ink); text-underline-offset: 2px; }

/* Fact rows — what the live site actually uses. A definition list, not prose:
   these are the claims a reader (or a regulator) checks one by one. */
.legal-facts {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-lift);
  font-size: 0.85rem;
}
.legal-facts div {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}
.legal-facts div + div { border-top: 1px solid rgba(42, 36, 28, 0.14); }
.legal-facts dt {
  flex: 0 0 38%;
  font-weight: 800;
}
.legal-facts dd { margin: 0; color: var(--ink-soft); }

.legal-foot {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .legal-facts div { display: block; }
  .legal-facts dt { margin-bottom: 2px; }
}
