/* ═══════════════════════════════════════════════
   LIVI LEMPHAKATSI — Legal & Compliance Portal
   MOBILE-FIRST design for citizen document reading

   Brand Colours (Mpumalanga CI Manual):
   - Pantone 123 C  #ffc72c  (Primary Gold)
   - Pantone 118 C  #ac8400  (Dark Gold)
   - Pantone 7741 C #44883e  (Green)
   - Process Black   #2c2a29
   - Dark Green      #29702a

   Typography: Jost (headings) + Gill Sans (body)
   ═══════════════════════════════════════════════ */

:root {
  --gold-primary: #ffc72c;
  --gold-dark: #ac8400;
  --gold-headline: #f9c20a;
  --gold-body: #bc8d16;
  --green: #44883e;
  --green-dark: #29702a;
  --black: #2c2a29;
  --body-black: #231f20;
  --white: #ffffff;

  --gold-10: #fff8e1;
  --gold-20: #fff1c2;
  --green-10: rgba(68, 136, 62, 0.08);
  --green-20: rgba(68, 136, 62, 0.15);
  --black-05: rgba(44, 42, 41, 0.05);
  --black-10: rgba(44, 42, 41, 0.10);
  --black-50: rgba(44, 42, 41, 0.50);
  --black-70: rgba(44, 42, 41, 0.70);

  --bg: #fafaf8;
  --bg-card: #ffffff;
  --border: #e8e5df;

  --font-heading: 'Jost', 'Gill Sans', 'Gill Sans MT', sans-serif;
  --font-body: 'Gill Sans', 'Gill Sans MT', -apple-system, 'Segoe UI', sans-serif;

  /* Mobile-first: compact header */
  --header-h: 52px;
  --max-w: 1120px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; }

/* ── Gold Divider (CI Graphic Device) ────────── */
.gold-divider {
  height: 3px;
  background: var(--gold-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* ── Reading Progress Bar ────────────────────── */
.reading-progress {
  position: fixed;
  top: calc(var(--header-h) + 3px);
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-primary);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── Header — compact, auto-hides on scroll ─── */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform 0.25s ease;
}
.site-header.header-hidden {
  transform: translateY(calc(-100% - 3px));
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — compact on mobile */
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.logo-dept {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

/* Nav — hidden on mobile, shown on desktop */
.main-nav { display: none; }
.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--black-70);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--black); background: var(--black-05); }
.nav-link.active {
  color: var(--green-dark);
  background: var(--green-10);
  font-weight: 600;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.2s;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mobile-nav {
  position: absolute;
  top: calc(var(--header-h) + 3px);
  right: 12px;
  left: 12px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--black-70);
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover,
.mobile-nav a:active { background: var(--black-05); color: var(--black); }
body.nav-open .mobile-nav-overlay { display: block; }

/* ── Main ────────────────────────────────────── */
main { padding-top: calc(var(--header-h) + 3px); }

/* ═══════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════ */
.hero {
  background: var(--green-dark);
  padding: 40px 20px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
  opacity: 0.07;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border: 1px solid rgba(255, 199, 44, 0.3);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.hero-meta-item svg { opacity: 0.5; }

.hero-divider { height: 4px; background: var(--gold-primary); }

/* Document Cards */
.documents-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 16px 32px;
}
.documents-section-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black-50);
  margin-bottom: 14px;
}

.documents-grid { display: flex; flex-direction: column; gap: 10px; }

.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-height: 80px;
}
.doc-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold-primary);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.doc-card:active { background: var(--gold-10); }
.doc-card:active::after { opacity: 1; }

.doc-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-10);
  border-radius: 10px;
  color: var(--gold-dark);
}

.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
}
.doc-card-desc {
  font-size: 13px;
  color: var(--black-50);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card-meta {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}
.doc-card-arrow {
  flex-shrink: 0;
  color: var(--black-10);
}

/* Info Banner */
.info-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
.info-banner-inner {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--gold-10);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 10px 10px 0;
}
.info-banner-icon { flex-shrink: 0; color: var(--gold-dark); padding-top: 1px; }
.info-banner-text { font-size: 13px; color: var(--black-70); line-height: 1.6; }
.info-banner-text a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════════════════════════════
   POLICY PAGE — MOBILE-FIRST
   ═══════════════════════════════════════════════ */

.policy-layout {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Desktop Sidebar TOC — hidden on mobile ──── */
.policy-sidebar {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sidebar-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black-50);
}
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--black-50);
  cursor: pointer;
  padding: 4px;
}
.toc-nav { display: flex; flex-direction: column; gap: 1px; }

/* Desktop TOC items */
.toc-item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--black-50);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.12s;
}
.toc-item:hover { color: var(--black); background: var(--black-05); }
.toc-item.active {
  color: var(--green-dark);
  background: var(--green-10);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}
.toc-level-3 { padding-left: 22px; font-size: 12px; }

/* ── Policy Content ──────────────────────────── */
.policy-content {
  flex: 1;
  min-width: 0;
  padding: 20px 16px 120px; /* extra bottom for FAB + bottom sheet */
}

/* Policy Header */
.policy-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--gold-primary);
}
.policy-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.policy-badge {
  font-family: var(--font-heading);
  display: inline-block;
  padding: 3px 10px;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}
.policy-date { font-size: 12px; color: var(--black-50); }

.policy-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.policy-subtitle {
  font-size: 15px;
  color: var(--black-50);
  line-height: 1.5;
}

/* Actions row */
.policy-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.toc-toggle-btn,
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--black-70);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.toc-toggle-btn:active,
.print-btn:active { background: var(--border); }

/* Hide desktop-only TOC toggle; mobile uses the FAB */
.toc-toggle-btn { display: none; }
.print-btn { display: none; }

/* ── Markdown Body — optimized for reading ───── */
.markdown-body h1 { display: none; }

.markdown-body h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
  margin: 36px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.markdown-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.markdown-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 24px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.markdown-body h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--black-70);
  margin: 18px 0 6px;
}

.markdown-body p {
  margin: 0 0 14px;
  color: var(--body-black);
  line-height: 1.6;
  word-spacing: 0.02em;
}

.markdown-body strong { color: var(--black); font-weight: 600; }

.markdown-body ul, .markdown-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.markdown-body li {
  margin-bottom: 8px;
  color: var(--body-black);
  line-height: 1.6;
}
.markdown-body li::marker { color: var(--gold-dark); }

.markdown-body hr {
  border: none;
  height: 3px;
  background: var(--gold-primary);
  margin: 32px 0;
  border-radius: 2px;
}

.markdown-body a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(41, 112, 42, 0.3);
}
.markdown-body a:hover,
.markdown-body a:active { color: var(--green); text-decoration-color: var(--green); }

.markdown-body blockquote {
  border-left: 3px solid var(--gold-primary);
  padding: 12px 16px;
  margin: 14px 0;
  background: var(--gold-10);
  border-radius: 0 8px 8px 0;
  color: var(--black-70);
}

/* ── Back to top ─────────────────────────────── */
.back-to-top-wrap {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--black-50);
  background: var(--bg);
  border-radius: 8px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top:active { color: var(--green-dark); background: var(--green-10); }

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM-SHEET TOC
   ═══════════════════════════════════════════════ */

/* FAB — floating action button in thumb zone */
.toc-fab {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 16px rgba(41, 112, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.toc-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(41, 112, 42, 0.3);
}
.toc-fab svg { width: 22px; height: 22px; }

/* Current section indicator on FAB */
.toc-fab-label {
  position: fixed;
  bottom: 82px;
  right: 16px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 997;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toc-fab-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bottom sheet backdrop */
.bottom-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.bottom-sheet-backdrop.open { display: block; }

/* Bottom sheet */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 1101;
  max-height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.bottom-sheet.open {
  transform: translateY(0);
}

/* Drag handle */
.bottom-sheet-handle {
  padding: 12px 0 8px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.bottom-sheet-handle::after {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--black-10);
  border-radius: 4px;
}

/* Sheet header */
.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.bottom-sheet-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}
.bottom-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black-05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-50);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bottom-sheet-close:active { background: var(--black-10); }

/* Sheet TOC list */
.bottom-sheet-toc {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 32px;
  overscroll-behavior: contain;
}

/* Mobile TOC items — large touch targets */
.bottom-sheet-toc .toc-item {
  padding: 12px 14px;
  font-size: 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}
.bottom-sheet-toc .toc-item:active {
  background: var(--green-10);
}
.bottom-sheet-toc .toc-item.active {
  background: var(--green-10);
  border-left-color: var(--gold-primary);
  color: var(--green-dark);
  font-weight: 600;
}
.bottom-sheet-toc .toc-level-3 {
  padding-left: 28px;
  font-size: 14px;
  min-height: 44px;
  color: var(--black-50);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.55); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  gap: 28px;
  flex-direction: column;
}

.footer-brand { min-width: 0; }
.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.coghsta-footer-logo {
  height: 44px;
  background: white;
  border-radius: 4px;
  padding: 4px 8px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--gold-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.footer-dept { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.35); }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 5px 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-col a:active { color: var(--white); }
.footer-col p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.45);
}
.footer-phone { font-weight: 600; color: rgba(255,255,255,0.65) !important; }

.footer-divider {
  height: 3px;
  background: var(--gold-primary);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════
   DESKTOP OVERRIDES (960px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .header-inner { padding: 0 24px; }
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .mobile-menu-btn { display: none; }

  .header-logo { height: 40px; }
  .logo-dept { font-size: 10px; }

  /* Hero */
  .hero { padding: 72px 24px 64px; }
  .hero-badge { font-size: 11px; padding: 6px 20px; margin-bottom: 28px; }
  .hero-title { font-size: clamp(36px, 5vw, 52px); }
  .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
  .hero-meta { gap: 20px; }
  .hero-meta-item { font-size: 13px; }

  /* Document Cards */
  .documents-section { padding: 48px 24px 56px; }
  .doc-card { padding: 24px; gap: 20px; }
  .doc-card:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 4px 20px rgba(44, 42, 41, 0.06);
  }
  .doc-card:hover::after { opacity: 1; }
  .doc-card-title { font-size: 17px; }
  .doc-card-desc { font-size: 14px; -webkit-line-clamp: unset; }
  .doc-card-icon { width: 48px; height: 48px; }

  .info-banner { padding: 0 24px 56px; }

  /* Policy layout — desktop sidebar */
  .policy-layout { display: flex; }

  .policy-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 3px);
    width: 260px;
    height: calc(100vh - var(--header-h) - 3px);
    flex-shrink: 0;
    overflow-y: auto;
    padding: 28px 16px 28px 24px;
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--black-10) transparent;
  }

  .policy-content {
    padding: 36px 40px 80px;
    max-width: 760px;
  }

  .policy-header { margin-bottom: 40px; padding-bottom: 28px; }
  .policy-title { font-size: clamp(26px, 4vw, 36px); }
  .print-btn { display: inline-flex; }

  .markdown-body h2 { font-size: 22px; margin: 48px 0 16px; padding-top: 28px; }
  .markdown-body h3 { font-size: 17px; margin: 28px 0 10px; }
  .markdown-body h4 { font-size: 14px; }
  .markdown-body hr { margin: 40px 0; }

  /* Hide mobile TOC on desktop */
  .toc-fab,
  .toc-fab-label,
  .bottom-sheet-backdrop,
  .bottom-sheet { display: none !important; }

  /* Footer desktop */
  .footer-inner {
    flex-direction: row;
    gap: 48px;
    padding: 48px 24px 40px;
  }
  .footer-brand { flex: 1; min-width: 220px; }
  .footer-links { gap: 40px; }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 24px;
  }
}

/* ═══════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════ */
@media print {
  .gold-divider, .site-header, .policy-sidebar, .policy-actions,
  .back-to-top-wrap, .site-footer, .mobile-nav-overlay,
  .hero-divider, .footer-divider, .reading-progress,
  .toc-fab, .toc-fab-label, .bottom-sheet-backdrop,
  .bottom-sheet { display: none !important; }
  main { padding-top: 0 !important; }
  .policy-content { padding: 0 !important; max-width: 100% !important; }
  .markdown-body h2 { break-before: page; border-top: none; padding-top: 0; }
  .markdown-body h2:first-of-type { break-before: auto; }
  body { font-size: 11pt; color: #000; }
  a { color: #000 !important; text-decoration: none !important; }
}
