/* ===================================================================
   Privacy Policy and Terms of Use.

   Lifted from the live site's inline <style> block so the two legal
   pages keep the exact layout they were reviewed in. Not one word of
   the legal text changed; only the page shell around it.

   The old stylesheet used a different set of colour tokens. Rather
   than rewrite 60 rules — and risk changing how a reviewed document
   reads — the old names are redefined here in terms of the new
   palette. The rules below are untouched.
   =================================================================== */

:root {
  --ink: var(--navy);            /* old #050a11 → new dark ground */
  --field: #111822;
  --mid: #141e30;
  --zblue: var(--blue);          /* old #0062ff → new #0062ff      */
  --zcyan: var(--cyan);          /* old #00CFFF → new #00caff      */
  --zgrad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --gold: #e8b84b;
}

/* --- original legal page rules, unmodified ---------------------- */

/* ─────────────────────────────────────────────
   LEGAL PAGES (privacy.html / terms.html)
   ───────────────────────────────────────────── */
.legal-hero {
  position: relative;
  padding: 150px 40px 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(21, 101, 255, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 85% 10%, rgba(0, 207, 255, 0.06) 0%, transparent 55%),
    var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.legal-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-size:var(--ds-compact);
  font-weight:400;
  text-transform: uppercase;
  line-height:1.1;
  letter-spacing:0;
  margin: 14px 0 0;
  /* Same omission as .legal-section h2 below: no colour set, so the
     heading inherited the dark-on-light default while .legal-hero
     paints var(--ink) behind it. "TERMS OF" and "PRIVACY" were navy on
     navy; only the accent word, which carries its own gradient, could
     be read — the titles looked like they began halfway through. */
  color: var(--white);
}
.legal-hero h1 em {
  font-style: normal;
  background: var(--zgrad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.legal-meta span {
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 7px 15px;
}
.legal-intro {
  margin-top: 28px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
  color: #aeb4bf;
}

/* ── Body layout: sticky TOC + content ── */
.legal-wrap {
  background: var(--ink);
  padding: 64px 40px 110px;
}
.legal-layout {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
}
.legal-toc h5 {
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zcyan);
  margin: 0 0 16px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.legal-toc a::before {
  content: counter(toc) ". ";
  font-family: var(--body);
  font-size: 12.5px;
  opacity: .55;
}
.legal-toc a:hover,
.legal-toc a.is-active {
  color: var(--white);
  border-left-color: var(--zcyan);
}

.legal-body { max-width: 760px; min-width: 0; }
.legal-section { scroll-margin-top: 110px; padding-bottom: 46px; }
.legal-section + .legal-section { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 46px; }
.legal-section h2 {
  font-size:var(--ds-title);
  font-weight:400;
  text-transform: uppercase;
  letter-spacing:0;
  line-height:1.1;
  margin: 0 0 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  /* This rule set no colour, so every section heading inherited the
     dark-on-light default — var(--navy), #03182b — while .legal-wrap
     paints var(--ink) behind it. The two are the same navy, so all 30
     headings on Privacy and on Terms rendered at 1.00:1 against their
     own background and could not be read at all. The section numbers
     (cyan), the body copy (#9fb0c2) and h3 (--white) were each given a
     colour for the dark panel; h2 was the one that was missed. */
  color: var(--white);
}
.legal-section h2 .legal-num {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--zcyan);
  flex: none;
  letter-spacing: 0.06em;
}
.legal-section h3 {
  font-size:var(--ds-card);
  font-weight:400;
  text-transform: uppercase;
  letter-spacing:0;
  color: var(--white);
  margin: 30px 0 10px;
}
.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.72;
  color: #9fb0c2;
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 18px; padding: 0; list-style: none; }
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--zcyan);
  opacity: .8;
}
.legal-body strong { color: var(--white); font-weight: 700; }
.legal-body a { color: var(--zcyan); text-decoration: none; border-bottom: 1px solid rgba(0,207,255,0.35); }
.legal-body a:hover { color: var(--white); border-bottom-color: var(--white); }

/* Placeholder tokens to replace before launch */
.legal-fill {
  font-family: var(--body);
  font-size: 0.86em;
  color: var(--gold);
  background: rgba(232, 184, 75, 0.09);
  border: 1px dashed rgba(232, 184, 75, 0.35);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}
/* A long value inside a nowrap chip pushed past the viewport at
   tablet widths. There is no reason for these to resist wrapping. */
.legal-fill { white-space: normal; overflow-wrap: anywhere; }

/* A resolved value: ordinary running text, weighted slightly so the
   party to the agreement still reads as significant. */
.legal-filled {
  font-weight: 600;
  color: inherit;
}

/* Data table */
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table th {
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--zcyan);
  background: rgba(255,255,255,0.02);
  font-weight: 700;
  white-space: nowrap;
}
.legal-table td { color: #9fb0c2; }
.legal-table td:first-child { color: var(--white); font-weight: 600; }

/* Callout box */
.legal-callout {
  background: var(--field);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--zcyan);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 0 0 22px;
}
.legal-callout.is-ember { border-left-color: var(--ember); }
.legal-callout.is-lime  { border-left-color: var(--lime); }
.legal-callout h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  color: var(--white);
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout p { font-size:var(--ds-copy); }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-toc {
    position: static;
    background: var(--field);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 20px 22px;
  }
  .legal-toc ol { columns: 2; column-gap: 24px; border-left: none; }
  .legal-toc a { padding-left: 0; border-left: none; }
  .legal-toc a:hover, .legal-toc a.is-active { border-left: none; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 120px 22px 54px; }
  .legal-wrap { padding: 44px 22px 84px; }
  .legal-toc ol { columns: 1; }
  .legal-section h2 { flex-direction: column; gap: 6px; }
}


/* ------------------- readability corrections ---------------------
   The original inline styles set several labels at 10.5–11px. Nothing
   a reader has to read should sit below 12px, so the meta line, the
   contents heading and the table headers were raised. Sizes only —
   no layout, no wording. */
.legal-meta span { letter-spacing: 0.08em; }
.legal-toc h5 { letter-spacing: 0.1em; }
