/* ==========================================================================
   Legal pages (privacy, terms) — long-form layout on top of styles.css.
   Everything here draws on the tokens in :root; no new colours or faces.
   The brand guide forbids all-caps setting, so labels are sentence case
   with letter-spacing rather than uppercase.
   ========================================================================== */

/* --- Title block --------------------------------------------------------- */
.pp-title { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.pp-title h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  max-width: 14ch; margin-bottom: 1.25rem;
}
.standfirst { font-size: var(--step-lead); color: var(--text-muted); max-width: 58ch; }
/* styles.css leaves eyebrows unspaced; here each sits on its own line above a heading. */
.pp-title .eyebrow, .summary .eyebrow { margin-bottom: 1.25rem; }

.stamp {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 2rem;
  font-size: var(--step-small);
}
.stamp div { display: flex; flex-direction: column; gap: 0.15rem; }
.stamp i {
  font-style: normal; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.04em; color: var(--text-muted); font-size: 0.8125rem;
}
.stamp b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Summary panel ------------------------------------------------------- */
.summary { background: var(--signal-blue); color: var(--white); }
.summary__inner { padding-block: clamp(2.75rem, 5vw, 4rem); }
.summary .eyebrow { color: var(--pale-yellow); }
.summary h2 { font-size: var(--step-h3); margin-bottom: 0.75rem; }
.summary .lede { max-width: 60ch; font-size: var(--step-lead); color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2.5rem; }
@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }
.promises li { padding-top: 1rem; border-top: 2px solid var(--pale-yellow); }
.promises strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.0625rem; margin-bottom: 0.35rem; color: var(--white);
}
.promises span { font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }

/* --- Shell: contents rail + article -------------------------------------- */
.shell {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
}
/* minmax(0, …) so the tables' min-width scrolls inside .scroller instead of widening the page */
@media (max-width: 940px) { .shell { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.toc { position: sticky; top: 92px; padding-block: 3.25rem 2.5rem; }
@media (max-width: 940px) {
  .toc { position: static; padding: 2.25rem 0 0.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; }
  .toc ol { columns: 2; column-gap: 1.5rem; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }
.toc h2 {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); margin-bottom: 1rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a {
  display: flex; gap: 0.6rem; padding: 0.35rem 0 0.35rem 0.75rem; margin-left: -0.85rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.875rem; line-height: 1.35;
  color: var(--text-muted); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums; color: rgba(31, 31, 31, 0.45); font-size: 0.75rem; padding-top: 0.1rem;
}
.toc a:hover { color: var(--ink); }
.toc a.here { color: var(--signal-blue); border-left-color: var(--signal-blue); font-weight: 600; }
.toc a.here::before { color: var(--signal-blue); }

/* --- Article ------------------------------------------------------------- */
.article { padding-block: 3.25rem 1rem; max-width: 70ch; }
.article section { padding-bottom: 3.25rem; scroll-margin-top: 92px; }
.article section + section { border-top: 1px solid var(--rule); padding-top: 3rem; }
.sec-num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-small); letter-spacing: 0.06em; color: var(--signal-blue);
  margin-bottom: 0.75rem; font-variant-numeric: tabular-nums;
}
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.75rem; }
.article h3 { font-size: 1.125rem; margin: 2rem 0 0.6rem; }
.article p { margin-bottom: 1rem; max-width: 66ch; }
.article p.lead { color: var(--text-muted); }
.article ul, .article ol { margin: 0 0 1.25rem; padding-left: 1.25rem; max-width: 66ch; }
.article li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.article li::marker { color: var(--soft-blue); }
.article a { color: var(--signal-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a:hover { color: var(--deep-blue); }
.article strong { font-weight: 600; }

/* Audience chips — which reader a block applies to */
.who {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.03em; padding: 0.15rem 0.55rem;
  border-radius: 999px; background: var(--fog-grey); color: var(--text-muted);
  vertical-align: 0.15em; margin-left: 0.5rem;
}
.who.r { background: var(--pale-lav); color: var(--signal-blue); }
.who.d { background: var(--fog-grey); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }

/* Tables — wide content scrolls inside its own box, never the page */
.scroller { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.scroller table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; min-width: 520px; }
.scroller th {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.03em;
  text-align: left; color: var(--text-muted); padding: 0.75rem 1rem;
  background: var(--fog-grey); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.scroller td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.scroller tbody tr:last-child td { border-bottom: 0; }
.scroller td.basis, .scroller td.period {
  font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* Callouts */
.note { border-left: 3px solid var(--signal-blue); padding: 0.1rem 0 0.1rem 1.25rem; margin: 0 0 1.25rem; color: var(--text-muted); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.regulator {
  background: var(--fog-grey); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem); margin: 0.5rem 0 1.25rem;
}
.regulator h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.regulator .sub { font-size: var(--step-small); color: var(--text-muted); margin: 0 0 1rem; }
.regulator dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0; font-size: 0.9375rem; }
.regulator dt { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; color: var(--text-muted); padding-top: 0.15rem; white-space: nowrap; }
.regulator dd { margin: 0; }
@media (max-width: 520px) {
  .regulator dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .regulator dd { margin-bottom: 0.75rem; }
}

/* Highlighted figure (the R6 fee, the region) */
.fill {
  background: var(--pale-lav); color: var(--signal-blue);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875em;
  padding: 0.05em 0.4em; border-radius: 3px; white-space: nowrap;
}

/* A visible placeholder is a draft that has leaked; make it impossible to miss. */
.article .todo { background: var(--pale-yellow); color: var(--ink); padding: 0 0.3em; border-radius: 3px; }

@media print {
  .header, .toc, .footer { display: none; }
  .summary { background: #fff; color: #000; border-block: 1.5pt solid #000; }
  .summary *, .promises span, .promises strong { color: #000 !important; }
  .shell { display: block; }
  .article section { page-break-inside: avoid; }
}
