/* =====================================================================
   EWA 2026, Legal documents (Privacy / Terms / Cookies)
   Linked AFTER pages.css + faq.css + light-theme.css. Reuses the FAQ
   hero + two-column shell; this file styles the prose + table-of-contents.
   ===================================================================== */
.legal-updated {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* policy switcher (Privacy / Terms / Cookies) */
.legal-switch { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-switch-btn {
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.legal-switch-btn:hover { border-color: var(--ink); color: var(--ink); }
.legal-switch-btn.is-on { background: #0a0510; color: #fff; border-color: #0a0510; }

/* ---- table of contents (left rail) ---- */
.legal-toc { gap: 2px; }
.legal-toc-link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  font-size: 13px; line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 180ms, border-color 180ms, background 180ms;
}
.legal-toc-link:hover { color: var(--ink); background: rgba(10,5,16,0.04); }
.legal-toc-link.is-on { color: var(--ink); border-left-color: var(--hot-pink); font-weight: 600; }

/* ---- prose body ---- */
.legal-body { display: block; }
.legal-section { padding: 6px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; scroll-margin-top: 110px; }
.legal-section:last-of-type { border-bottom: 0; }
.legal-section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-section p {
  font-size: 16.5px; line-height: 1.66;
  color: var(--ink-soft);
  max-width: 70ch; margin-bottom: 14px;
  text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hot-pink);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 160ms;
}
.legal-section a:hover { color: var(--hot-pink); }
.legal-section strong { color: var(--ink); font-weight: 600; }

.legal-list {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 72ch;
}
.legal-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legal-list li::before {
  content: '';
  position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px;
  background: var(--hot-pink);
  border-radius: 50%;
}

.legal-cta { margin-top: 10px; }

@media (max-width: 860px) {
  .legal-toc { position: static; flex-flow: row wrap; gap: 6px; }
  .legal-toc-link { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
  .legal-toc-link.is-on { border-color: var(--ink); }
}
