/* CONFIDON website layout and components.
   Type sizes, weights and line heights come only from confidon-typography.css tokens. */

:root {
  --teal: #08484a;
  --teal-dark: #05393b;
  --teal-ink: #0e6e6b;
  --teal-100: #e1f1ef;
  --teal-50: #f2f8f7;
  --ink: #0f2a2c;
  --text: #2f4547;
  --muted: #4a6062;
  --line: #dce7e6;
  --border: #cfe0de;
  --cream: #f8f5ee;
  --white: #ffffff;
  --amber-bg: #fff1d6;
  --amber-ink: #7a4700;
  --error: #a3261c;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(8, 72, 74, 0.06), 0 12px 32px rgba(8, 72, 74, 0.08);
  --container: 1200px;
  --gutter: 24px;
  --section: 72px;
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--teal); color: var(--white); padding: 12px 16px; border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--teal); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--teal-100); color: var(--teal); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--cf-weight-medium); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(8, 72, 74, 0.05); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 168px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--teal-ink); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1023.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-cta .btn-primary { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 16px; }
  .site-nav ul { gap: 4px 20px; }
}
@media (min-width: 1024px) { .site-nav .nav-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--teal-50); }
.section-cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--teal-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-ink); }
.section-head h2 + p, .lead { color: var(--muted); margin-top: 16px; max-width: 62ch; }
.section-head.center .lead, .section-head.center h2 + p { margin-inline: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-100); color: var(--teal);
}
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); }
.badge-solid { background: var(--teal); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 112px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
}
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.preview-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--muted); max-width: 52ch;
}
.preview-note .badge { flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal-100); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tick svg { width: 13px; height: 13px; }

/* ---------- Animated media ---------- */
.media { position: relative; }
.media-stage {
  position: relative; padding: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--teal-50), var(--white));
  border: 1px solid var(--line);
}
.media-stage img { width: 100%; border-radius: 14px; }
.media-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding-inline: 4px; }
.media-toggle {
  display: inline-flex; flex: none; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95); color: var(--teal); cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 72, 74, 0.12);
}
.media-toggle svg { width: 14px; height: 14px; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }
.no-js .media-toggle { display: none; }
.media figcaption { color: var(--muted); }

/* ---------- Value strip ---------- */
.values { border-block: 1px solid var(--line); background: var(--white); }
.values-grid { display: grid; gap: 0; }
@media (min-width: 720px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.value { padding: 28px 24px; display: flex; gap: 14px; }
@media (min-width: 1024px) { .value + .value { border-left: 1px solid var(--line); } }
.value-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--teal-100); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.value-icon svg { width: 20px; height: 20px; }
.value p { color: var(--muted); margin-top: 4px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white); font-variant-numeric: tabular-nums;
}
.step p { color: var(--muted); }
.step .link-arrow { margin-top: auto; padding-top: 8px; }
.source-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .split.reverse > :first-child { order: 2; }
}
.feature-list { display: grid; gap: 20px; margin-top: 32px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list .value-icon { width: 44px; height: 44px; }
.feature-list p { color: var(--muted); margin-top: 4px; }
.note {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); color: var(--muted);
}
.split-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Pricing ---------- */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.segmented {
  display: inline-flex; padding: 4px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); gap: 4px;
}
.segmented button, .segmented label {
  min-height: 40px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.segmented button[aria-selected="true"], .segmented input:checked + label { background: var(--teal); color: var(--white); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented input:focus-visible + label { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.segmented .save { padding: 2px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-ink); }
fieldset.segmented { margin: 0; }
fieldset.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.plan > p { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.price-sub { color: var(--muted); min-height: 2.8em; }
.price-save { color: var(--amber-ink); }
.plan ul { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .tick { margin-top: 2px; }
.plan .btn { margin-top: auto; }
.pricing-foot { margin-top: 28px; color: var(--muted); text-align: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); margin-top: 48px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { text-align: left; padding: 20px 24px 8px; color: var(--ink); }
th, td { padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); background: var(--teal-50); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: var(--cf-weight-regular); }
td .yes { color: var(--teal); display: inline-flex; }
td .yes svg { width: 18px; height: 18px; }
td .no { color: var(--muted); }

.fineprint { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.fineprint summary { padding: 18px 24px; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fineprint summary::-webkit-details-marker { display: none; }
.fineprint summary::after { content: "+"; color: var(--teal); }
.fineprint[open] summary::after { content: "\2212"; }
.fineprint .fineprint-body { padding: 0 24px 24px; color: var(--muted); display: grid; gap: 12px; max-width: 80ch; }

/* practice calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.calc-controls { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field-row { display: flex; gap: 16px; align-items: center; }
.field-hint { color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--teal); min-height: 32px; }
.num-input {
  width: 112px; min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums;
}
.calc-summary { background: var(--teal); color: var(--white); border-color: var(--teal); display: flex; flex-direction: column; gap: 20px; }
.calc-summary h3 { color: var(--white); }
.calc-summary dl { display: grid; gap: 12px; }
.calc-summary .row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.calc-summary dt { color: #cfe6e3; }
.calc-summary dd { color: var(--white); text-align: right; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-total .cf-kpi { color: var(--white); }
.calc-summary .calc-note { color: #cfe6e3; }
.calc-summary .btn { margin-top: auto; }

[hidden] { display: none !important; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--teal); transition: transform 0.2s ease;
}
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 66ch; display: grid; gap: 10px; }

/* ---------- Pilot form ---------- */
.pilot { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .pilot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.pilot-points { display: grid; gap: 14px; margin-top: 28px; }
.pilot-points li { display: flex; gap: 10px; align-items: flex-start; }
.form { display: grid; gap: 20px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.form legend { padding: 0; margin-bottom: 10px; color: var(--ink); }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer; color: var(--ink);
}
.choice label::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); flex: none;
}
.choice input:checked + label { border-color: var(--teal); background: var(--teal-50); }
.choice input:checked + label::before { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 45%, transparent 50%); }
.choice input:focus-visible + label { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--white);
}
.input:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 1px; border-color: var(--teal); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); display: flex; gap: 6px; align-items: center; }
.field-error svg { width: 16px; height: 16px; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); }
.form-status.is-success { background: var(--teal-100); color: var(--teal); }
.form-status.is-error { background: #fbe9e7; color: var(--error); }
.form small, .form .cf-caption { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: var(--white); border-radius: var(--radius-lg); padding: 48px 32px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px 64px; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe6e3; margin-top: 10px; max-width: 56ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfe6e3; padding-block: 64px 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); } }
.footer-brand img { width: 168px; background: var(--white); padding: 10px 14px; border-radius: 12px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-col h2 { color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 8px; }

/* ---------- Content pages ---------- */
.page { padding-block: 56px var(--section); }
.page + .site-footer, .page ~ .site-footer { margin-top: 0; }
.page-inner { max-width: 760px; }
.page h1 { margin-bottom: 12px; }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.prose { display: grid; gap: 16px; }
.prose h2 { margin-top: 24px; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 8px; }
.prose .callout { padding: 16px 18px; border-radius: var(--radius); background: var(--teal-50); border: 1px solid var(--line); }
.placeholder { background: var(--amber-bg); color: var(--amber-ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .btn, .segmented button[aria-selected="true"], .choice label { border: 1px solid ButtonText; }
  .eyebrow::before, .tick { forced-color-adjust: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .media-toggle, .nav-toggle, .site-footer, .cta-band, form { display: none !important; }
  .section { padding-block: 24px; }
}

/* Legal centre and public enquiry forms */
.legal-back{margin-bottom:1rem}.legal-groups{display:grid;gap:1.5rem}
.legal-groups section{border-top:1px solid var(--line);padding-top:.4rem}
.legal-facts{margin:0;display:grid;gap:.35rem}.legal-facts dt{font-weight:var(--cf-weight-semibold);color:var(--ink)}
.legal-facts dd{margin:0 0 .9rem}.page-inner,.prose,.legal-form{min-width:0}
.legal-form textarea{min-height:8rem;resize:vertical}.legal-form select{max-width:100%}
.table-wrap{position:relative;max-width:100%;min-width:0}.form fieldset,.form .field,.form,.calc,.page-inner{min-width:0}
.prose a{overflow-wrap:anywhere}.page .lead{margin-top:1rem}

/* ---------- Review 18 Nov 2026 ---------- */
/* Links inside footer text must not rely on colour alone (WCAG 1.4.1). */
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

.page .updated { margin-top: 8px; margin-bottom: 32px; }
.prose h2 + p, .prose h2 + ul, .prose h2 + dl { margin-top: -4px; }

/* Legal centre: topic navigation */
.legal-layout { display: grid; gap: 24px; }
.legal-layout .page-inner { max-width: 760px; }
.legal-nav-desktop { display: none; }
.legal-nav-mobile { border: 1px solid var(--border); border-radius: var(--radius); background: var(--teal-50); }
.legal-nav-mobile summary { padding: 14px 18px; cursor: pointer; color: var(--ink); min-height: 48px; display: flex; align-items: center; }
.legal-nav-mobile nav { padding: 0 18px 16px; }
.legal-aside ul { display: grid; gap: 2px; margin-bottom: 12px; }
.legal-aside a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.legal-aside a:hover { background: var(--teal-100); color: var(--teal); }
.legal-aside a[aria-current="page"] { background: var(--teal); color: var(--white); }
.legal-nav-group { color: var(--muted); margin: 16px 10px 6px; }
.legal-nav-hub a { padding-inline: 10px; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
  .legal-nav-mobile { display: none; }
  .legal-nav-desktop { display: block; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; border-right: 1px solid var(--line); }
}

/* Legal centre hub: cards */
.legal-groups { gap: 40px; }
.legal-groups section { border-top: 0; padding-top: 0; }
.legal-groups h2 { margin-bottom: 16px; }
.legal-cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-card {
  position: relative; display: grid; gap: 4px; height: 100%; padding: 20px 52px 20px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.legal-card .cf-body { color: var(--muted); }
.legal-card svg { position: absolute; right: 20px; top: 22px; width: 18px; height: 18px; color: var(--teal); transition: transform .15s ease; }
.legal-card:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.legal-card:hover svg { transform: translateX(3px); }
.legal-card:hover .cf-h3 { text-decoration: underline; text-underline-offset: 3px; }
.prose .legal-cards { padding: 0; margin: 0; list-style: none; }
.legal-nav-mobile summary { list-style: none; justify-content: space-between; gap: 16px; }
.legal-nav-mobile summary::-webkit-details-marker { display: none; }
.legal-nav-mobile summary::after { content: "+"; color: var(--teal); }
.legal-nav-mobile[open] summary::after { content: "\2212"; }
