/* ============================================================
   BRAINY NEURALS — TERMS OF SERVICE
   Self-contained stylesheet, organized for WordPress migration.
   Sister page to Privacy Policy — shared shell, TOC pattern,
   placeholder treatment, print stylesheet. ToS-specific
   additions: .xref-chip (in-text cross-reference chips) +
   .contract-allcaps (legal disclaimer block styling).
   Sections:
     1) Tokens
     2) Base & reset
     3) Typography
     4) Layout — page shell, container
     5) Buttons
     6) Header & nav
     7) Page hero
     8) Policy shell — TOC sidebar + main column
     9) TOC sidebar
    10) Section components — H2 anchors, marginalia
    11) Placeholder pill (.legal-placeholder-pending)
    12) xref-chip (signature — in-text cross-reference chips)
    13) Contract all-caps disclaimer block
    14) Lists & contact block
    15) Mobile TOC pill + bottom-sheet drawer
    16) Back-to-top
    17) Footer
    18) Motion utilities
    19) Print stylesheet
    20) Utilities
   ============================================================ */

/* ----- 1) Tokens ----- */
:root {
  --ink: #0A0E1A;
  --ink-soft: #1A1F2E;
  --paper: #FFFFFF;
  --paper-2: #FAFAF7;
  --paper-3: #F4F4EE;
  --primary: #0655FF;
  --primary-soft: rgba(6, 85, 255, 0.08);
  --primary-tint: rgba(6, 85, 255, 0.04);
  --signal: #B5FF3C;
  --warn: #B45309;
  --warn-soft: rgba(245, 158, 11, 0.10);
  --warn-border: rgba(180, 83, 9, 0.30);
  --text: #0A0E1A;
  --text-mute: #4B5563;
  --text-faint: #6B7280;
  --rule: #E5E7EB;
  --rule-strong: #D1D5DB;
  --rule-ink: rgba(255, 255, 255, 0.12);
  --rule-ink-strong: rgba(255, 255, 255, 0.20);

  --f-sans: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 280ms;
  --dur-slow: 480ms;
}

/* ----- 2) Base & reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; top: -40px; left: 8px; padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 8px; outline: 2px solid var(--signal); }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----- 3) Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.3; font-weight: 600; }
h4 { font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; }
p { margin: 0 0 1.1em; }
.em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* ----- 4) Layout — container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ----- 5) Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; min-height: 44px;
  font-family: var(--f-sans); font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em; line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0445D6; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--rule-strong);
}
.btn-secondary:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ----- 6) Header & nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.nav-primary { display: flex; align-items: center; gap: 6px; }
.nav-primary a {
  color: var(--text); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}
.nav-primary a:hover { color: var(--primary); background: var(--paper-2); }
.nav-primary a[aria-current="page"] { color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 14px; }
.shipped-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--paper-2); border: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(6, 85, 255, 0.5);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 85, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(6, 85, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 85, 255, 0); }
}

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: transparent;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text);
  transition: transform var(--dur) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 72px 0 0; z-index: 70;
  background: var(--paper);
  padding: 24px var(--pad-x);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 18px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.mobile-menu .btn { width: 100%; margin-top: 20px; }

@media (max-width: 980px) {
  .nav-primary, .shipped-pill { display: none; }
  .burger { display: inline-flex; }
}

/* ----- 7) Page hero ----- */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 96px) 0 clamp(56px, 7vw, 80px);
}
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.page-hero .breadcrumb a { color: var(--text-mute); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero .breadcrumb-sep { color: var(--rule-strong); }
.page-hero .breadcrumb [aria-current="page"] { color: var(--text); }

.page-hero h1 { max-width: 18ch; margin-bottom: 28px; }

.effective-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.eff-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.eff-chip .eff-key {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.eff-chip .eff-val { color: var(--text); font-weight: 500; }
.eff-chip.v-chip .eff-val { font-family: var(--f-mono); font-size: 12.5px; }

.page-hero .hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
}

/* ----- 8) Policy shell — TOC sidebar + main column ----- */
.policy-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--pad-x) clamp(64px, 8vw, 96px);
}
.policy-main {
  max-width: 740px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.policy-main p { color: var(--text); }
.policy-main strong { font-weight: 600; }
.policy-main a { color: var(--primary); }
@media (max-width: 1024px) {
  .policy-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ----- 9) TOC sidebar ----- */
.toc-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.toc-sidebar::-webkit-scrollbar { width: 6px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
.toc-sidebar::-webkit-scrollbar-track { background: transparent; }

.toc-label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0 10px 14px;
  text-decoration: none;
  color: var(--text-mute);
  font-size: 13.5px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc-list a:hover {
  color: var(--text);
  border-left-color: var(--rule-strong);
}
.toc-list a.is-active {
  color: var(--text);
  font-weight: 500;
  border-left-color: var(--primary);
}
.toc-list .toc-num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.toc-list a.is-active .toc-num { color: var(--primary); }

@media (max-width: 1024px) {
  .toc-sidebar { display: none; }
}

/* ----- 10) Section components — anchors, marginalia ----- */
.policy-section {
  margin: 0 0 80px;
  scroll-margin-top: 96px;
  position: relative;
}
.policy-section:first-child { margin-top: 0; }
.policy-section:last-child { margin-bottom: 0; }

.policy-section .sec-num {
  display: block;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.policy-section .sec-num strong { color: var(--primary); font-weight: 500; }

.policy-section h2 {
  margin-bottom: 28px;
}
.policy-section h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
}
.policy-section h3:first-of-type {
  margin-top: 24px;
}
.policy-section ul, .policy-section ol {
  margin: 0 0 1.4em;
  padding-left: 22px;
}
.policy-section li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.policy-section li::marker { color: var(--text-faint); }
.policy-section li strong { font-weight: 600; }

/* Anchor link icons */
.policy-section h2 a.anchor-link,
.policy-section h3 a.anchor-link {
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.7em;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
  vertical-align: middle;
}
.policy-section h2:hover a.anchor-link,
.policy-section h3:hover a.anchor-link { opacity: 1; }
.policy-section h2 a.anchor-link:hover,
.policy-section h3 a.anchor-link:hover { color: var(--primary); }

/* ----- 11) Placeholder pill — pending-review treatment (.legal-placeholder-pending) ----- */
.legal-placeholder-pending {
  display: inline-flex;
  align-items: baseline;
  padding: 2px 8px;
  background: var(--warn-soft);
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-sm);
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--warn);
  text-decoration: underline dotted var(--warn-border);
  text-underline-offset: 3px;
  cursor: help;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}
.legal-placeholder-pending:hover { background: rgba(245, 158, 11, 0.16); }

/* ----- 12) xref-chip — in-text cross-reference chips (SIGNATURE) ----- */
.xref-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 8px;
  background: var(--primary-tint);
  color: var(--primary);
  font-family: var(--f-mono);
  font-size: 0.85em;
  letter-spacing: -0.005em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
  vertical-align: baseline;
}
.xref-chip::after {
  content: "↗";
  font-size: 0.9em;
  margin-left: 1px;
  opacity: 0.75;
}
.xref-chip:hover {
  background: var(--primary-soft);
  text-decoration: none;
}
.xref-chip:hover::after { opacity: 1; }
.xref-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----- 13) Contract all-caps disclaimer block (S11 / S12 mandatory format) ----- */
.contract-allcaps {
  display: block;
  padding: 18px 22px;
  margin: 0 0 1.4em;
  background: var(--paper-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--f-sans);
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--text);
  text-transform: none; /* text already uppercase in source; preserve as-written */
}
.contract-allcaps + .contract-allcaps {
  margin-top: 12px;
}

/* ----- 14) Lists & contact block ----- */
.contact-block {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  margin: 16px 0 24px;
}
.contact-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-block li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-block li:last-child { border-bottom: 0; }
.contact-block li .cb-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: 0 0 180px;
}
.contact-block li .cb-val { flex: 1; min-width: 0; word-break: break-word; }

/* ----- 15) Mobile TOC pill + bottom-sheet drawer ----- */
.mobile-toc-trigger {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  box-shadow: 0 6px 24px rgba(10, 14, 26, 0.20);
  font-size: 13.5px;
  font-weight: 500;
  align-items: center;
  gap: 10px;
}
.mobile-toc-trigger .mtoc-icon {
  width: 14px; height: 14px;
  display: inline-flex; flex-direction: column; justify-content: space-around;
}
.mobile-toc-trigger .mtoc-icon::before,
.mobile-toc-trigger .mtoc-icon::after,
.mobile-toc-trigger .mtoc-icon span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: #fff;
}
.mobile-toc-trigger .mtoc-icon::before { content: ""; }
.mobile-toc-trigger .mtoc-icon::after { content: ""; }

@media (max-width: 1024px) {
  .mobile-toc-trigger { display: inline-flex; }
}

.mobile-toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.mobile-toc-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.mobile-toc-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 91;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-toc-sheet[data-open="true"] {
  transform: translateY(0);
}
.mobile-toc-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
}
.mobile-toc-sheet-head h2 {
  font-size: 16px;
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-toc-sheet-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.mobile-toc-sheet ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.mobile-toc-sheet a {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  border-left: 3px solid transparent;
}
.mobile-toc-sheet a:hover, .mobile-toc-sheet a:focus-visible {
  background: var(--paper-2);
}
.mobile-toc-sheet a.is-active {
  border-left-color: var(--primary);
  font-weight: 500;
  background: var(--primary-tint);
}
.mobile-toc-sheet .toc-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.mobile-toc-sheet a.is-active .toc-num { color: var(--primary); }

/* ----- 16) Back-to-top ----- */
.btt {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 55;
  width: 44px; height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(10, 14, 26, 0.08);
}
.btt:hover { background: var(--paper-2); }
.btt[data-visible="true"] { display: inline-flex; }
.btt svg { width: 18px; height: 18px; color: var(--text); }
@media (min-width: 1025px) {
  .btt { bottom: 24px; right: 24px; }
}

/* ----- 17) Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
}
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}
.footer-brand .footer-logo img { height: 28px; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
  margin: 0 0 18px;
}
.footer-brand .footer-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.footer-brand .footer-cred {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-ink-strong);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur) var(--ease);
  text-decoration: none;
}
.footer-col a:hover { color: var(--signal); }
.footer-col a[aria-current="page"] { color: #fff; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-ink);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}
.footer-base a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-base a:hover { color: var(--signal); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-ink-strong);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
}
.footer-social a:hover { background: var(--signal); border-color: var(--signal); }
.footer-social img { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: 0.85; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 660px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ----- 18) Motion utilities ----- */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ----- 19) Print stylesheet ----- */
@media print {
  .site-header,
  .mobile-menu,
  .toc-sidebar,
  .mobile-toc-trigger,
  .mobile-toc-overlay,
  .mobile-toc-sheet,
  .btt,
  .skip,
  .hero-actions,
  .site-footer { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: var(--f-serif), Georgia, 'Times New Roman', serif !important;
    font-size: 10.5pt;
    line-height: 1.55;
  }
  body { overflow: visible !important; }
  .container, .policy-shell {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .policy-main { max-width: none !important; margin: 0 !important; }
  .page-hero {
    background: #fff !important;
    border: 0 !important;
    padding: 0 0 24pt 0 !important;
    page-break-after: avoid;
  }
  .page-hero .breadcrumb { font-size: 8pt; margin-bottom: 12pt; }
  .page-hero h1 {
    font-family: var(--f-serif), Georgia, serif !important;
    font-size: 22pt;
    margin-bottom: 16pt;
    color: #000 !important;
  }
  .effective-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8pt;
    margin-bottom: 16pt;
  }
  .eff-chip {
    background: #fff !important;
    border: 1pt solid #999 !important;
    padding: 4pt 8pt !important;
    font-size: 9pt;
  }

  h2 {
    font-family: var(--f-serif), Georgia, serif !important;
    font-size: 16pt;
    color: #000 !important;
    page-break-before: always;
    page-break-after: avoid;
    margin-top: 0 !important;
    margin-bottom: 12pt;
  }
  h3 {
    font-size: 12pt;
    color: #000 !important;
    page-break-after: avoid;
    margin-top: 16pt;
    margin-bottom: 6pt;
  }
  .policy-section { margin-bottom: 0 !important; page-break-inside: auto; }
  .policy-section:first-of-type h2 { page-break-before: avoid; }
  .policy-section .sec-num {
    font-family: var(--f-mono), monospace !important;
    font-size: 8pt;
    color: #555 !important;
    border: 0 !important;
    margin-bottom: 4pt !important;
    padding-bottom: 0 !important;
  }

  ul, ol { margin-bottom: 8pt; }
  li { line-height: 1.45; }

  a.anchor-link { display: none !important; }

  /* Print URL after external + mailto links */
  a[href^="http"]:after,
  a[href^="mailto:"]:after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #666;
    font-family: var(--f-mono), monospace;
    word-break: break-all;
  }
  a[href^="#"]:after,
  a[href^="/"]:after { content: ""; }
  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* xref-chip in print — render as plain bold reference, no chip background */
  .xref-chip {
    background: transparent !important;
    padding: 0 !important;
    color: #000 !important;
    font-family: var(--f-sans), sans-serif !important;
    font-weight: 600;
    text-decoration: underline;
  }
  .xref-chip::after { content: "" !important; }

  /* Placeholders — B&W friendly */
  .legal-placeholder-pending {
    background: #fff !important;
    color: #000 !important;
    border: 1pt dashed #555 !important;
    padding: 1pt 4pt !important;
    font-family: var(--f-mono), monospace !important;
    text-decoration: underline dotted #555 !important;
  }

  /* Contact block */
  .contact-block {
    background: #fff !important;
    border: 1pt solid #555 !important;
    padding: 8pt !important;
    margin: 8pt 0 !important;
    page-break-inside: avoid;
  }
  .contact-block li { font-size: 9.5pt; padding: 3pt 0; }

  /* All-caps disclaimer — keep visible but printable */
  .contract-allcaps {
    background: #f5f5f5 !important;
    border-left: 2pt solid #555 !important;
    color: #000 !important;
    padding: 6pt 10pt !important;
    margin: 4pt 0 !important;
    font-size: 9.5pt !important;
    page-break-inside: avoid;
  }

  .fade-up { opacity: 1 !important; transform: none !important; }

  @page { margin: 20mm 18mm 22mm 18mm; }
  @page :first { margin-top: 16mm; }
}

/* ----- 20) Utilities ----- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.no-wrap { white-space: nowrap; }