/* legal.css — the /legal page (disclaimer, terms, privacy). Reuses the landing
   topbar/footer (landing.css) and the shared design tokens (style.css); this
   file only adds the reading column — a restrained "audit paper" layout that
   prints legibly. Screen palette comes entirely from the theme tokens, so the
   page follows the light/terminal switch like the rest of the product. */

.legal-main {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 24px 40px;
}

.legal-head { margin-bottom: clamp(40px, 7vh, 72px); }

.legal-title {
  color: var(--fg-strong);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0.4px;
  margin: 0 0 12px;
}

.legal-intro {
  color: var(--hint);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 60ch;
}

/* In-page jump nav — mirrors the topbar's monospace chrome. */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.legal-nav a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  text-decoration: none;
}
.legal-nav a:hover { color: var(--fg-strong); }
.legal-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.legal-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  text-decoration: none;
}
.legal-back:hover { color: var(--fg-strong); }
.legal-back:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Each legal section: a scroll-margin so #anchor jumps clear the sticky topbar. */
.legal-section {
  scroll-margin-top: 88px;
  padding: clamp(28px, 5vh, 48px) 0;
  border-top: 1px solid var(--border);
}
.legal-section:first-of-type { border-top: none; }

.legal-h {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.legal-body {
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-body p { margin: 0 0 16px; max-width: 68ch; }
.legal-body strong { color: var(--fg-strong); font-weight: 600; }
.legal-body em { color: var(--fg-strong); font-style: italic; }

.legal-body a {
  color: var(--focus);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A lead-in line before a bullet block ("What that means, precisely:"). */
.legal-sub {
  color: var(--fg-strong);
  font-weight: 600;
  margin-top: 24px;
}

/* Effective-date / meta line under a heading. */
.legal-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  margin: -8px 0 20px;
}

.legal-list {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  max-width: 68ch;
}
.legal-list li { margin: 0 0 12px; }

.legal-main + .lp-foot { max-width: 68ch; margin: 0 auto; }

@media (max-width: 640px) {
  .legal-main { padding: 24px 18px 32px; }
  .legal-nav { gap: 8px 16px; }
}

/* Print: drop the interactive chrome, keep the audit-paper column clean. */
@media print {
  @page { margin: 16mm; }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lp-topbar, .legal-nav, .legal-back, #lp-bg { display: none !important; }
  .legal-main { max-width: none; margin: 0; padding: 0; }
  .legal-section { page-break-inside: auto; break-inside: auto; }
  .legal-h { page-break-after: avoid; break-after: avoid; }
}
