/* Shared shell for the two statutory pages (privacy, accessibility).
   Deliberately a separate stylesheet rather than a copy of index.html's inline block:
   these pages need ~5% of the landing page's CSS, and they must keep working even if
   the landing page's styles are rewritten. Tokens come from the design system, so the
   pages stay on-brand without duplicating any values. */
.legal-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
body { background: var(--surface-page); color: var(--ink); }

.legal-top { padding: 28px 0 0; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border: 1px solid var(--border-hairline); border-radius: var(--radius-pill);
  color: var(--ink-soft); text-decoration: none; font-size: var(--text-small);
}
.legal-back:hover { color: var(--violet-ink); text-decoration: underline; }

.legal-head { padding: 20px 0 8px; }
.legal-title {
  margin: 0; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); color: var(--violet-ink); line-height: 1.15;
}
.legal-sub { margin: 12px 0 20px; color: var(--ink-soft); line-height: var(--leading-relaxed); }
.legal-meta { margin: 0 0 24px; font-size: var(--text-caption); color: var(--ink-faint); }

.legal-body { padding: 8px 0 72px; }
.legal-body h2 {
  margin: 40px 0 12px; font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-h3); color: var(--violet-ink); line-height: 1.25;
}
.legal-body h3 {
  margin: 26px 0 8px; font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-body-lg); color: var(--ink);
}
.legal-body p { margin: 0 0 14px; color: var(--ink-soft); line-height: var(--leading-relaxed); }
.legal-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-body li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft); line-height: var(--leading-relaxed);
}
.legal-body li::before {
  content: ""; flex-shrink: 0; width: 4px; height: 4px; margin-top: 11px;
  border-radius: var(--radius-pill); background: var(--violet-300);
}
/* Inline links inside running text are exempt from SC 2.5.8's 24px floor, but these land
   at 23px — close enough that vertical inline padding clears it outright without altering
   the line box. Cheaper than arguing the exemption. */
.legal-body a { color: var(--text-link); padding-block: 4px; }
.legal-body a:hover { color: var(--text-link-hover); }

/* Definition rows for "what is collected / why / how long". A table would reflow badly
   at 375px, which is where most of this traffic reads. */
.legal-dl { margin: 0 0 18px; display: grid; gap: 10px; }
.legal-dl > div {
  padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-raised);
  display: grid; gap: 4px;
}
.legal-dl dt { font-family: var(--font-heading); font-weight: 700; color: var(--ink); }
.legal-dl dd { margin: 0; color: var(--ink-soft); line-height: var(--leading-relaxed); }
@media (min-width: 641px) {
  .legal-dl > div { grid-template-columns: 12em 1fr; gap: 18px; align-items: baseline; }
}

.legal-note {
  margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--border-hairline);
  font-size: var(--text-small); color: var(--ink-soft); line-height: var(--leading-relaxed);
}
.legal-contact {
  margin-top: 32px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface-raised);
}
.legal-contact a { display: inline-flex; align-items: center; min-height: 44px; }

.legal-foot {
  padding: 26px 0 40px;
  font-size: var(--text-caption); color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
}
.legal-foot a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; padding: 9px 14px; border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); }

/* Same editing marker the landing page uses: dashed outline = not yet confirmed. */
.ph { outline: 1px dashed var(--violet-300); outline-offset: 3px; border-radius: 4px; background: rgba(95, 75, 139, .05); }
