/* ── Legal pages (Terms of Service / Privacy Policy) ──────────────────────────
   Standalone public pages. They reuse the landing chrome (.lp-top / .lp-foot /
   .shell and the body.landing background+fonts from landing.css) plus the design
   tokens from custom.css; this file only styles the readable prose column,
   scoped under `.legal`. Shared by terms.html and privacy.html. */

main.legal {
  padding: 56px 0 96px;
}

.legal-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.legal-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 40, "SOFT" 20;
  line-height: 1.05;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #c8c4ee 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.legal-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--txt2);
  margin: 0 0 8px;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt3);
  margin: 0 0 36px;
}

/* ── Table of contents ──────────────────────────────────────────────────── */
.legal-toc {
  border: 1px solid var(--bd);
  background: var(--s1);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 44px;
}
.legal-toc h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt3);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
  font-size: 14px;
}
.legal-toc li { margin: 0 0 7px; break-inside: avoid; }
.legal-toc a {
  color: var(--txt2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.legal-toc a:hover { color: var(--acc-hi); border-bottom-color: var(--acc); }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
.legal-sec {
  margin: 0 0 38px;
  scroll-margin-top: 84px; /* clears the sticky topbar on anchor jump */
}
.legal-sec h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 28;
  color: var(--txt);
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--acc);
  letter-spacing: 0;
}

.legal-body { color: var(--txt2); }
.legal-body p {
  font-size: 15px;
  line-height: 1.72;
  margin: 0 0 14px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--txt); font-weight: 600; }
.legal-body a {
  color: var(--acc-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--acc);
  transition: color .15s;
}
.legal-body a:hover { color: #fff; }
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body li {
  font-size: 15px;
  line-height: 1.66;
  margin: 0 0 9px;
}
.legal-body li::marker { color: var(--acc); }
