:root {
  color-scheme: dark;
  --lime: #c8ff21;
  --lime-soft: #9ed816;
  --ink: #070b0b;
  --panel: rgba(11, 16, 18, 0.91);
  --panel-soft: rgba(20, 27, 30, 0.83);
  --line: rgba(255, 255, 255, 0.13);
  --muted: #abb2b1;
  --white: #f5f7f4;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/paddock-background.png") 55% 50% / cover no-repeat;
  transform: scale(1.01);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 10, 14, 0.2) 0%, rgba(4, 8, 9, 0.86) 44%, #070b0b 72%),
    linear-gradient(90deg, rgba(5, 10, 13, 0.84) 0%, rgba(5, 10, 13, 0.26) 55%, rgba(5, 10, 13, 0.45) 100%);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 16px; background: var(--lime); color: #111; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 18px; }

.reading-progress { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: 4px; background: rgba(255,255,255,.08); }
.reading-progress span { display: block; width: 100%; height: 0; background: linear-gradient(var(--lime), #65ff9a); box-shadow: 0 0 18px var(--lime); }

.site-header { min-height: 76vh; padding: 24px clamp(22px, 5vw, 76px) 72px; display: flex; flex-direction: column; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; width: clamp(180px, 18vw, 300px); text-decoration: none; }
.brand-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 16px rgba(200,255,33,.2)); }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 13, 14, .58); backdrop-filter: blur(14px); }
.top-nav a { color: #dbe0dd; text-decoration: none; font-size: .84rem; font-weight: 750; letter-spacing: .03em; transition: color .2s ease; }
.top-nav a:hover { color: var(--lime); }

.hero { width: min(720px, 100%); margin: auto 0 0 max(0px, calc((100vw - 1440px) / 2)); padding-top: 110px; }
.eyebrow { margin: 0 0 12px; color: var(--lime); font-size: .78rem; font-weight: 900; letter-spacing: .19em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; max-width: 760px; font-size: clamp(3.25rem, 8vw, 7.5rem); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; font-weight: 950; }
h1 span { color: var(--lime); text-shadow: 0 0 34px rgba(200,255,33,.26); }
.hero-copy { max-width: 610px; margin-bottom: 28px; color: #e5e8e5; font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.55; text-wrap: balance; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; }
.status-row span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(8, 13, 14, .68); backdrop-filter: blur(12px); color: #e7ebe7; font-size: .78rem; font-weight: 760; }
.status-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

.layout { display: grid; grid-template-columns: 280px minmax(0, 940px); align-items: start; gap: clamp(24px, 5vw, 72px); width: min(1320px, calc(100% - 44px)); margin: 0 auto; padding: 40px 0 84px; }
.toc { position: sticky; top: 28px; padding: 24px 0; }
.toc-label { margin-bottom: 18px; color: #818b87; font-size: .72rem; font-weight: 900; letter-spacing: .17em; }
.toc-link { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; padding: 13px 10px; border-left: 2px solid rgba(255,255,255,.12); color: #929b98; text-decoration: none; transition: .2s ease; }
.toc-link b { font-size: .72rem; letter-spacing: .08em; }
.toc-link span { font-size: .9rem; font-weight: 750; }
.toc-link:hover, .toc-link.active { border-left-color: var(--lime); color: var(--white); background: linear-gradient(90deg, rgba(200,255,33,.1), transparent); }
.toc-link.active b { color: var(--lime); }
.toc-meta { margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 13, 14, .52); backdrop-filter: blur(12px); }
.toc-meta span { display: block; color: #89928f; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.toc-meta strong { color: var(--lime); font-size: .86rem; letter-spacing: .08em; }

.document-stack { display: grid; gap: 28px; }
.policy-card { position: relative; overflow: hidden; padding: clamp(26px, 5vw, 58px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,31,33,.93), rgba(8,13,14,.94)); box-shadow: 0 24px 80px rgba(0,0,0,.34); backdrop-filter: blur(20px); }
.policy-card::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 3px; background: var(--lime); box-shadow: 0 0 22px var(--lime); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-number { display: block; margin-bottom: 7px; color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -.045em; }
.section-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(200,255,33,.38); border-radius: 999px; color: var(--lime); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.lead-note, .legal-callout { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-bottom: 34px; padding: 20px 22px; border: 1px solid rgba(200,255,33,.24); border-radius: 18px; background: rgba(200,255,33,.075); }
.lead-note p, .legal-callout p { margin: 0; color: #eef2ec; }
.note-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--lime); color: #101410; font-weight: 950; }
.legal-callout { grid-template-columns: 1fr; border-color: rgba(255,186,92,.25); background: rgba(255,162,44,.07); font-size: 1.08rem; }
article { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.085); }
article:last-child { padding-bottom: 0; border-bottom: 0; }
h3 { margin-bottom: 9px; color: #f4f6f2; font-size: 1.08rem; line-height: 1.35; }
article p { margin-bottom: 10px; color: var(--muted); }
article p:last-child { margin-bottom: 0; }
article a { color: var(--lime); font-weight: 720; text-underline-offset: 3px; }

.footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 40px 8px 0; color: #89928f; }
.footer strong { color: var(--lime); letter-spacing: .13em; }
.footer p { margin: 4px 0 0; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: #d3d8d5; font-size: .84rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  body::before { background-position: 62% top; }
  .site-header { min-height: 70vh; }
  .top-nav { display: none; }
  .hero { padding-top: 96px; }
  .layout { display: block; }
  .toc { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; margin-bottom: 20px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,11,11,.92); backdrop-filter: blur(18px); overflow-x: auto; }
  .toc-label, .toc-meta { display: none; }
  .toc-link { flex: 0 0 auto; display: block; padding: 8px 12px; border: 0; border-radius: 11px; }
  .toc-link b { margin-right: 6px; }
  .toc-link.active { background: var(--lime); color: #111; }
  .toc-link.active b { color: #111; }
}

@media (max-width: 600px) {
  body::before { background-position: 69% top; }
  body::after { background: linear-gradient(180deg, rgba(4,10,14,.2) 0%, rgba(4,8,9,.88) 36%, #070b0b 58%); }
  .site-header { min-height: 650px; padding: 18px 18px 56px; }
  .brand { width: min(48vw, 220px); }
  .hero { margin-left: 0; padding-top: 156px; }
  .eyebrow { font-size: .66rem; }
  h1 { font-size: clamp(3.05rem, 16vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .status-row span { font-size: .72rem; }
  .layout { width: min(100% - 24px, 940px); padding-top: 18px; }
  .toc-link span { font-size: .78rem; }
  .policy-card { padding: 25px 20px; border-radius: 21px; }
  .section-head { display: block; margin-bottom: 26px; padding-bottom: 24px; }
  .section-badge { display: inline-block; margin-top: 15px; }
  h2 { font-size: 2.25rem; }
  .lead-note { padding: 17px; }
  article { padding: 21px 0; }
  .footer { display: block; padding-bottom: 20px; }
  .footer-links { justify-content: flex-start; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .reading-progress, .toc, .top-nav, .status-row { display: none; }
  .site-header { min-height: auto; padding: 24px; }
  .hero { margin: 0; padding: 30px 0 0; }
  h1, h1 span, .eyebrow { color: #111; text-shadow: none; }
  .hero-copy { color: #333; }
  .layout { display: block; width: 100%; padding: 0; }
  .policy-card { break-inside: avoid; margin: 0 0 20px; border: 1px solid #ccc; background: #fff; box-shadow: none; color: #111; }
  .policy-card p, .policy-card h2, .policy-card h3 { color: #111; }
  .section-badge, .section-number, article a { color: #365000; }
}
