/* ============================================================
   Legal pages — Privacy Policy & Terms of Service
   Reuses the site's design tokens (styles.css) for theme parity.
   ============================================================ */

.legal-wrap {
  /* nav is position:sticky, so it already occupies flow space — this is just
     a modest gap beneath it, not full nav-clearance. */
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--section-pad);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-2);
}

.legal__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__meta {
  margin-top: var(--space-2);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.legal__lead {
  margin-top: var(--space-4);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
}

.legal h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
}

.legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.legal p { margin-top: var(--space-2); }

.legal strong { color: var(--ink); font-weight: 600; }

.legal ul,
.legal ol {
  margin-top: var(--space-2);
  padding-left: 1.35em;
}

.legal li { margin-top: var(--space-1); }
.legal li::marker { color: var(--ink-3); }

.legal a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
}
:root[data-theme="dark"] .legal a { color: var(--accent); }
.legal a:hover { text-decoration-thickness: 2px; }

.legal__backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
}
.legal__backlink:hover { color: var(--ink); }
.legal__backlink svg { width: 16px; height: 16px; }

.legal__note {
  margin-top: var(--space-6);
  padding: var(--space-3);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}
