/*
 * BAMPE360 — Design System
 * Shared stylesheet for all pages
 * ─────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
  /* ── Brand palette ── */
  --navy:        #2C3A4A;
  --navy-deep:   #1A2535;
  --navy-footer: #0E1826;
  --navy-mid:    #354759;
  --gold:        #B8977E;
  --gold-light:  #D4B49A;
  --gold-pale:   #EFE0D0;
  --cream:       #F5EDE4;
  --off-white:   #FAF8F5;
  --body-text:   #4A5568;
  --muted:       #8A9BAD;
  --rule:        #D6CAC0;
  --wa-green:    #25D366;

  /* ── Semantic alpha tokens ── */
  --nav-bg:            rgba(26,37,53,0.97);
  --nav-mobile-bg:     rgba(26,37,53,0.98);
  --gold-border-soft:  rgba(184,151,126,0.15);
  --gold-border-med:   rgba(184,151,126,0.35);
  --gold-border-hi:    rgba(184,151,126,0.65);
  --white-55:          rgba(255,255,255,0.55);
  --white-40:          rgba(255,255,255,0.40);
  --white-70:          rgba(255,255,255,0.70);

  /* ── Typography ── */
  --font-display: 'PT Serif', serif;
  --font-body:    'Lato', sans-serif;

  /* ── Spacing (4pt scale) ── */
  --space-1:  4px;  --space-2:  8px;  --space-3:  12px; --space-4:  16px;
  --space-6:  24px; --space-8:  32px; --space-12: 48px; --space-16: 64px;

  /* ── Motion ── */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 700ms cubic-bezier(0.16,1,0.3,1);

  /* ── Surfaces ── */
  --surface-bg:   var(--off-white);
  --surface-card: var(--cream);
  --text-primary: var(--body-text);
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --surface-bg:   #111820;
    --surface-card: #1A2535;
    --text-primary: #C8D4DC;
    --rule:         #2C3A4A;
    --off-white:    #111820;
    --cream:        #1A2535;
    --body-text:    #C8D4DC;
  }
  body { background: var(--surface-bg); color: var(--text-primary); }
  .legal-section { border-color: var(--rule); }
  .legal-section-title { color: var(--gold-light); }
  .legal-highlight { background: rgba(26,37,53,0.8); }
  .legal-data-table td a { color: var(--gold-light); }
}

/* ══════════════════════════════════════════════
   BASE RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--body-text);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 16px; font-weight: 600;
  padding: 8px 16px; border-radius: 3px;
  z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow-light { color: var(--gold-light); }
.eyebrow-light::before { background: var(--gold-light); }
.eyebrow-center { justify-content: center; }

/* ── DISPLAY TYPOGRAPHY ── */
.display-xl { font-family: var(--font-display); font-size: clamp(38px,7vw,76px); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
.display-lg { font-family: var(--font-display); font-size: clamp(28px,5vw,52px); font-weight: 400; line-height: 1.12; }
.display-md { font-family: var(--font-display); font-size: clamp(22px,3vw,36px); font-weight: 400; line-height: 1.2; }
.display-sm { font-family: var(--font-display); font-size: clamp(18px,2.5vw,24px); font-weight: 500; line-height: 1.3; }
.text-gold-em em  { color: var(--gold-light); font-style: italic; }
.text-navy-em em  { color: var(--gold); font-style: italic; }

/* ── GOLD RULE ── */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.25; }

/* ── FOCUS RINGS (WCAG 2.4.11) ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(20px,5vw,60px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-border-soft);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: #fff; letter-spacing: 2px; text-decoration: none;
}
.nav-logo-sub {
  font-family: var(--font-body); font-size: 8px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.4); display: block; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; font-weight: 400; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color var(--transition-fast); white-space: nowrap;
}
.nav-link:hover { color: var(--gold-light); }
@media (max-width: 900px) { .nav-links { display: none; } }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 14px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 3px; white-space: nowrap;
  text-decoration: none; transition: background 0.25s;
}
.nav-cta:hover { background: var(--gold-light); }

/* hamburger — touch target ≥ 44×44px */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 11px; margin-right: -11px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.8); transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--nav-mobile-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 99; border-top: 1px solid var(--gold-border-soft); padding: 8px 0 16px;
}
#nav-mobile.open { display: block; }
.nav-mobile-link {
  display: block; padding: 14px clamp(20px,5vw,60px);
  font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-link:hover { color: var(--gold-light); background: rgba(184,151,126,0.05); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-cta-label { display: none; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 3px;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  min-height: 52px; white-space: nowrap;
  text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 8px 24px rgba(184,151,126,0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent; color: rgba(255,255,255,0.75);
  font-size: 16px; font-weight: 500; letter-spacing: 0.06em;
  padding: 16px 24px; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px;
  transition: border-color 0.25s, color 0.25s; min-height: 52px; white-space: nowrap;
  touch-action: manipulation; text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(184,151,126,0.6); color: var(--gold-light); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: var(--navy-footer); padding: clamp(40px,6vw,64px) clamp(20px,6vw,80px) 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-col-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: 2px; margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.25); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-desc { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-desc a { color: var(--gold-light); text-decoration: none; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--gold-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.18); }
.footer-legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link-legal { font-size: 14px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-link-legal:hover { color: rgba(255,255,255,0.5); }
.footer-link-legal.active { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════════
   WA FLOAT + BACK TO TOP
══════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; background: var(--wa-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: floatIn 0.5s 1.2s ease-out both;
  text-decoration: none; transition: transform var(--transition-fast);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float:active { transform: scale(0.95); }
@keyframes floatIn { from { opacity:0; transform:scale(0.6) translateY(20px); } to { opacity:1; transform:none; } }
@supports (padding: max(0px)) {
  .wa-float { bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); right: max(24px, env(safe-area-inset-right)); }
}

.back-to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--navy-deep); border: 1px solid rgba(184,151,126,0.28);
  color: var(--gold-light); cursor: pointer; font-family: var(--font-body);
  padding: 10px 14px; border-radius: 3px;
  font-size: 8px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s, border-color 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--navy-mid); border-color: rgba(184,151,126,0.55); }
@supports (padding: max(0px)) {
  .back-to-top { bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); left: max(24px, env(safe-area-inset-left)); }
}

/* ══════════════════════════════════════════════
   CONTACT STRIP (legal pages)
══════════════════════════════════════════════ */
.contact-strip { background: var(--navy); padding: clamp(40px,6vw,64px) clamp(20px,6vw,80px); }
.contact-strip-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-strip-text { flex: 1; min-width: 240px; }
.contact-strip-title { font-family: var(--font-display); font-size: clamp(22px,3vw,32px); font-weight: 400; color: #fff; line-height: 1.25; margin-bottom: 8px; }
.contact-strip-sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.65; }
@media (max-width: 640px) { .contact-strip-inner { flex-direction: column; } }

/* ══════════════════════════════════════════════
   PAGE HERO (legal pages)
══════════════════════════════════════════════ */
.page-hero {
  background: var(--navy-deep); position: relative; overflow: hidden;
  padding: clamp(100px,14vw,140px) clamp(20px,6vw,80px) clamp(60px,8vw,88px);
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.12; transform: scale(1.04); }
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(184,151,126,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(184,151,126,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-glow {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(184,151,126,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em; margin-bottom: 32px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition-fast); }
.page-hero-breadcrumb a:hover { color: var(--gold-light); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.18); }
.breadcrumb-current { color: rgba(255,255,255,0.55); }
.page-hero-date { font-size: 16px; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; margin-top: 20px; }

/* ══════════════════════════════════════════════
   LEGAL LAYOUT (shared by all 3 legal pages)
══════════════════════════════════════════════ */
.legal-outer { max-width: 1160px; margin: 0 auto; padding: clamp(48px,7vw,88px) clamp(20px,5vw,60px); }
.legal-layout { display: grid; grid-template-columns: 248px 1fr; gap: clamp(36px,5vw,64px); align-items: start; }
@media (max-width: 920px) { .legal-layout { grid-template-columns: 1fr; } }

/* ── Sidebar ── */
.legal-toc-sidebar {
  position: sticky; top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: rgba(184,151,126,0.2) transparent;
}
.legal-toc-sidebar::-webkit-scrollbar { width: 3px; }
.legal-toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.legal-toc-sidebar::-webkit-scrollbar-thumb { background: rgba(184,151,126,0.25); border-radius: 2px; }

/* ── Mobile TOC toggle ── */
.toc-mobile-header {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; cursor: pointer; user-select: none; -webkit-user-select: none;
  width: 100%; background: none; border: none; border-radius: 0;
  -webkit-appearance: none; appearance: none; text-align: left;
}
.toc-mobile-left { display: flex; align-items: center; gap: 12px; }
.toc-mobile-accent { width: 2px; height: 20px; background: var(--gold); border-radius: 1px; flex-shrink: 0; opacity: 0.7; }
.toc-mobile-title { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }
.toc-mobile-count { font-size: 11px; font-weight: 500; color: var(--gold); opacity: 0.65; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(184,151,126,0.1); padding: 3px 8px; border-radius: 2px; }
.toc-chevron { color: var(--gold); flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); opacity: 0.8; }
.toc-mobile-header[aria-expanded="true"] .toc-chevron { transform: rotate(180deg); }
.toc-mobile-header[aria-expanded="true"] .toc-mobile-accent { opacity: 1; }

.legal-toc-collapsible { overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1); }

@media (max-width: 920px) {
  .legal-outer { padding-top: 0; padding-bottom: clamp(40px,6vw,64px); }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc-sidebar {
    position: sticky; top: 64px; z-index: 80; align-self: start;
    height: fit-content; background: var(--navy-deep);
    border-bottom: 2px solid rgba(184,151,126,0.18);
    margin: 0 calc(-1 * clamp(20px,5vw,60px));
    padding: 0 clamp(20px,5vw,60px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  .legal-toc { padding: 0; border-radius: 0; margin-bottom: 0; background: transparent; }
  .legal-toc-title { display: none; }
  .toc-mobile-header { display: flex; }
  .legal-toc-collapsible { max-height: 0; }
  .legal-toc-collapsible.is-open { max-height: 60vh; overflow-y: auto; padding-bottom: 8px; border-top: 1px solid rgba(184,151,126,0.1); }
  .legal-main { padding-top: clamp(32px,5vw,56px); }
}

/* ── Content column ── */
.legal-main { min-width: 0; }
.legal-section { padding-bottom: clamp(40px,5vw,64px); margin-bottom: clamp(40px,5vw,64px); border-bottom: 1px solid var(--rule); }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.legal-section-title { font-family: var(--font-display); font-size: clamp(20px,3vw,28px); font-weight: 500; color: var(--navy); line-height: 1.25; margin-bottom: 24px; }

.legal-body p { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--body-text); margin-bottom: 20px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul, .legal-body ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.legal-body ul li { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--body-text); padding-left: 20px; position: relative; }
.legal-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 1px; background: var(--gold); }
.legal-body ol { counter-reset: legal-counter; }
.legal-body ol li { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--body-text); padding-left: 28px; position: relative; counter-increment: legal-counter; }
.legal-body ol li::before { content: counter(legal-counter) "."; position: absolute; left: 0; font-family: var(--font-display); font-size: 16px; color: var(--gold); font-weight: 500; }

/* highlight box */
.legal-highlight { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: var(--cream); border-left: 2px solid var(--gold); border-radius: 0 3px 3px 0; margin-bottom: 24px; }
.legal-highlight-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; opacity: 0.8; }
.legal-highlight p { font-size: 16px !important; font-weight: 400 !important; color: var(--navy) !important; line-height: 1.7 !important; margin: 0 !important; }
.legal-highlight strong { font-weight: 600; }

/* inline body links */
.legal-body-link { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold-border-med); transition: color var(--transition-fast), border-color var(--transition-fast); }
.legal-body-link:hover { color: var(--gold); border-color: var(--gold); }
@media (prefers-color-scheme: dark) { .legal-body-link { color: var(--gold-light); } }

/* data table */
.legal-data-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 16px; }
.legal-data-table tr { border-bottom: 1px solid var(--rule); }
.legal-data-table tr:last-child { border-bottom: none; }
.legal-data-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding: 10px 16px 10px 0; white-space: nowrap; vertical-align: top; width: 38%; }
.legal-data-table td { font-size: 16px; font-weight: 300; color: var(--body-text); line-height: 1.65; padding: 10px 0; vertical-align: top; }
.legal-data-table td a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold-border-med); transition: border-color var(--transition-fast), color var(--transition-fast); }
.legal-data-table td a:hover { color: var(--gold); border-color: var(--gold); }

/* TOC */
.legal-toc { background: var(--navy-deep); padding: 24px 24px 20px; border-radius: 3px; }
.legal-toc-title { font-size: 9px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(184,151,126,0.12); }
.legal-toc ol { counter-reset: toc-counter; list-style: none; display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
.legal-toc ol li { counter-increment: toc-counter; border-bottom: 1px solid rgba(184,151,126,0.06); position: relative; }
.legal-toc ol li:last-child { border-bottom: none; }
.legal-toc ol li::after { content: ''; position: absolute; left: -24px; top: 0; bottom: 0; width: 2px; background: var(--gold); border-radius: 0 1px 1px 0; opacity: 0; transition: opacity 0.25s; }
.legal-toc ol li.is-active::after { opacity: 1; }
.legal-toc ol li a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 44px; text-decoration: none; transition: color var(--transition-fast); }
.legal-toc ol li a:hover .toc-text { color: var(--gold-light); }
.legal-toc ol li a::before { content: counter(toc-counter, upper-roman); font-family: var(--font-display); font-size: 16px; color: var(--gold); opacity: 0.45; min-width: 24px; font-weight: 500; flex-shrink: 0; padding-top: 1px; transition: opacity 0.25s; }
.legal-toc ol li.is-active a::before { opacity: 0.9; }
.toc-text { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.5; transition: color 0.25s; }
.legal-toc ol li.is-active .toc-text { color: var(--gold-light); font-weight: 400; }

/* responsive legal data table */
@media (max-width: 640px) {
  .legal-data-table { display: block; }
  .legal-data-table tr { display: flex; flex-direction: column; padding: 14px 0; }
  .legal-data-table th { padding: 0 0 4px; width: auto; }
  .legal-data-table td { padding: 0; }
}
