/* ==========================================================================
   legal.css — shared by the legal documents (privacy.html, terms.html, aml.html, cookies.html)
   Layout: col-1 sticky table of contents · col-2-4 .prose (670px)
   Tokens only: no new colours, no radius, no shadows.
   ========================================================================== */

/* ---------- Hero: document meta stacked in column 1 next to the standfirst ---------- */
.legal-hero__title { text-wrap: balance; }
.legal-hero__meta { flex-direction: column; gap: 10px; align-self: start; }
.legal-hero__meta b { font-weight: 500; color: var(--white); }

/* ---------- Document grid ---------- */
.legal { align-items: start; }                          /* items keep their own height → sticky works */
.legal__toc { position: sticky; top: 100px; }           /* clears the 72px sticky header */

/* Table of contents (column 1) */
.legal__list { margin-top: 30px; border-top: 1px solid var(--line); }
.legal__list li { border-bottom: 1px solid var(--line); }
.legal__list a { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; font-size: 14px; line-height: 1.3; color: var(--ink-70); transition: color var(--dur) var(--ease); }
.legal__list a:hover { color: var(--black); }
.legal__num { flex: none; width: 28px; font-size: 12px; font-weight: 700; color: var(--black); }
.legal__toc-note { margin-top: 20px; font-size: 12px; line-height: 1.4; color: var(--ink-75); }

/* Prose extras */
.legal__lede { font-size: 20px; line-height: 1.3; color: var(--black); }
.prose h2 { scroll-margin-top: 100px; }
.legal__sec { display: block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--black); }
.prose .table-wrap { margin-top: 30px; margin-bottom: 30px; }
.prose .table { font-size: 14px; }
.prose .table th, .prose .table td { padding: 14px 16px 14px 0; }
.prose .table td:first-child { white-space: nowrap; }
.prose .table .num { font-size: 16px; }
.prose ul ul, .prose ol ul { margin-top: 10px; }
.legal__address { font-style: normal; color: var(--black); }
.legal__address a { text-decoration: none; }
.legal__address a:hover { text-decoration: underline; }

/* Full-width table placed between two .prose blocks (spans columns 2–4) */
.legal__table { margin: 40px 0; }
.legal__table .table { font-size: 14px; }
.legal__table .table th, .legal__table .table td { padding: 16px 20px 16px 0; }
.legal__table .table td:first-child { white-space: nowrap; }

/* ---------- Other documents (white band, small numbered rows) ---------- */
.legal-related .row__text { max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-height: 760px) {
  .legal__toc { position: static; }                     /* a contents list taller than the viewport must not stick */
}

@media (max-width: 1023px) {
  .legal__toc { position: static; grid-column: 1 / -1; }
  .legal__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 24px; }
  .legal__toc-note { grid-column: 1 / -1; }
  .legal__table { margin: 32px 0; }
}

@media (max-width: 639px) {
  .legal__list { grid-template-columns: minmax(0, 1fr); }
  .legal__sec { font-size: 28px; }
  .legal__lede { font-size: 17px; }
  .prose .table td:first-child, .legal__table .table td:first-child { white-space: normal; }
  .legal__table .table th, .legal__table .table td { padding: 14px 12px 14px 0; }
}
