/* Extra styles for the legal pages (privacy, confidentiality, terms, complaints, cookies).
   Loaded after site.css, which provides the tokens, header, footer and buttons. */

body { line-height: 1.75; }

/* Page head */
.page-head { padding: 48px 0 40px; background: linear-gradient(180deg, var(--stone), var(--bg)); }
.page-head .crumbs { margin-bottom: 18px; }
.page-head .eyebrow::before { display: none; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 12px; }
.page-head .lede { margin-top: 18px; max-width: 62ch; color: var(--ink-soft); font-size: 1.1rem; }
.updated { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }

/* Layout */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; padding: 24px 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 12px); padding: 24px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.toc h2 { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; align-items: baseline; min-height: 36px; padding: 6px 0; text-decoration: none; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.toc a::before { content: counter(toc) "."; font-variant-numeric: tabular-nums; color: var(--terra-deep); flex: none; width: 1.6em; }
.toc a:hover { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Prose */
.prose { counter-reset: sec; max-width: 74ch; }
.prose section { counter-increment: sec; padding-top: 8px; margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 8px); }
.prose h2 { font-size: 1.65rem; margin-bottom: 14px; }
.prose h2::before { content: counter(sec) ". "; color: var(--terra-deep); font-variant-numeric: tabular-nums; }
.prose h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 22px 0 6px; }
.prose p { color: var(--ink-soft); }
.prose p + p, .prose ul + p, .prose ol + p, .prose p + ul, .prose p + ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--terra); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--terra-deep); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .callout { margin-top: 16px; padding: 18px 22px; background: var(--stone); border-radius: var(--r-md); color: var(--ink); }
.prose .callout p { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.prose th { background: var(--stone); color: var(--moss-deep); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .page-head { padding: 28px 0 28px; }
  .prose h2 { font-size: 1.4rem; }
  .prose th, .prose td { padding: 10px 12px; }
}
@media print {
  .site-header, .toc, .skip-link, .site-footer .footer-grid, .crisis { display: none; }
  body { background: #fff; }
}
