/* Legal pages: a narrow reading column beside a sticky contents index. */
.legal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(48px, 6vw, 112px); padding-block: clamp(56px, 7vw, 120px); }
.legal-header { grid-column: 1 / -1; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 2px solid var(--color-text); }
.legal-label { margin: 0 0 24px; color: var(--color-text-secondary); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.legal-header h1 { margin: 0; font-family: var(--font-heading); font-size: clamp(48px, 7vw, 112px); font-weight: 700; letter-spacing: -.05em; line-height: .95; }
.legal-header h1 span { color: var(--color-accent); }
.legal-updated { margin: 24px 0 0; color: var(--color-text-secondary); font-size: 14px; }

.legal-index { position: sticky; top: calc(var(--site-header-height) + 32px); align-self: start; }
.legal-index ol { list-style: none; margin: 0; padding: 0; counter-reset: legal; }
.legal-index li { counter-increment: legal; border-top: 1px solid var(--color-border-subtle); }
.legal-index a { display: flex; gap: 16px; min-height: 44px; align-items: center; font-size: 14px; transition: color var(--transition-fast); }
.legal-index a::before { content: counter(legal, decimal-leading-zero); color: var(--color-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.legal-index a:hover { color: var(--color-accent); }

.legal-body { max-width: 44em; font-size: 17px; line-height: var(--line-height-relaxed); }
.legal-body .legal-lead { margin: 0 0 48px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; letter-spacing: -.015em; line-height: 1.4; }
.legal-body section { padding-top: 40px; scroll-margin-top: calc(var(--site-header-height) + 24px); }
.legal-body h2 { margin: 0 0 20px; padding-top: 16px; border-top: 1px solid var(--color-border); font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.legal-body h3 { margin: 32px 0 8px; font-size: 17px; font-weight: 600; }
.legal-body p, .legal-body ul { margin: 0 0 16px; }
.legal-body ul { padding-left: 1.2em; list-style: square; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--color-accent); }
.legal-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { font-weight: 600; }
.legal-body button { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal-table { width: 100%; margin: 8px 0 24px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--color-border-subtle); text-align: left; vertical-align: top; }
.legal-table th { color: var(--color-text-secondary); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border-bottom-color: var(--color-text); }
.legal-table code { font-size: 13px; overflow-wrap: anywhere; }
.legal-attribution { margin-top: 64px; color: var(--color-text-muted); font-size: 13px; }

@media (max-width: 899px) {
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .legal-index { position: static; }
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border-subtle); }
  .legal-table td { display: block; padding: 2px 0; border: 0; }
}

/* Cookie banner: a small card in the corner, two buttons of equal weight. */
.cookie-banner { position: fixed; right: var(--site-gutter); bottom: 24px; z-index: 60; display: grid; gap: 12px; width: min(300px, calc(100vw - 2 * var(--site-gutter))); padding: 16px; background: var(--color-bg-inverse); color: var(--color-text-inverse); border: 1px solid var(--color-border-inverse-subtle); }
.cookie-banner[hidden] { display: none; }
.cookie-banner:focus { outline: none; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.45; }
.cookie-banner a { color: var(--color-text-inverse-secondary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-banner a:hover { color: var(--color-accent); }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner-button { min-height: 36px; padding: 0 8px; border: 1px solid var(--color-text-inverse); background: transparent; color: var(--color-text-inverse); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast); }
.cookie-banner-button:hover { background: var(--color-text-inverse); color: var(--color-bg-inverse); }
.cookie-banner-button:focus-visible, .cookie-banner a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

@media (max-width: 599px) {
  .cookie-banner { bottom: 16px; }
  .cookie-banner-button { min-height: 44px; }
}

/* Footer legal links sit in the colophon. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.footer-legal a, .footer-legal button { color: var(--color-text-secondary); font-size: 12px; cursor: pointer; transition: color var(--transition-base); }
.footer-legal a:hover, .footer-legal button:hover { color: var(--color-accent); }
.footer-legal button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Video consent gate: the player's footprint, with nothing from the provider. */
.player-gate { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.player-gate-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.player-gate-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 32em; padding: 24px; text-align: center; }
.player-gate-play { display: inline-flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 28px; background: var(--color-accent); color: var(--color-text-inverse); font-size: 18px; font-weight: 500; cursor: pointer; transition: background var(--transition-fast); }
.player-gate-play:hover { background: var(--color-accent-hover); }
.player-gate-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.player-gate-note { margin: 0; color: var(--color-text-inverse-secondary); font-size: 13px; line-height: 1.5; }
.player-gate-note a, .player-gate-actions a, .player-gate-actions button { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.player-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 13px; }
.player-gate-actions a, .player-gate-actions button { display: inline-flex; align-items: center; min-height: 44px; }
.player-gate a:hover, .player-gate-actions button:hover { color: var(--color-accent); }
.player-gate :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (max-width: 599px) {
  .player-gate-body { gap: 8px; padding: 12px; }
  .player-gate-play { min-height: 44px; font-size: 15px; }
  .player-gate-note { display: none; }
}
