/* ═══════════════════════════════════════════════════════════════
   Veritas-Vault — Shared site chrome
   Locked palette: #0f172a #1e293b #c5a059 #d4b06a #94a3b8 #f8fafc
   Type: Fraunces (serif display) + Inter (sans body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy-dark: #0f172a;
  --navy-light: #1e293b;
  --navy-panel: #182338;
  --gold-primary: #c5a059;
  --gold-hover: #d4b06a;
  --silver-text: #94a3b8;
  --white-text: #f8fafc;
  --hairline: rgba(197, 160, 89, 0.35);
  --hairline-soft: rgba(148, 163, 184, 0.18);

  --serif: "Fraunces", "Lyon Text", "Tiempos Headline", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-dark);
  color: var(--white-text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold-primary); color: var(--navy-dark); }

a { color: inherit; text-decoration: none; }

/* ───────────────────────── Atoms ───────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-primary);
  display: inline-block;
}

.serif {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.serif em {
  font-style: italic;
  color: var(--gold-primary);
  font-weight: 300;
}

.rule-gold {
  height: 1px;
  background: var(--gold-primary);
  border: 0;
  display: block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px 0;
  background: rgba(15, 23, 42, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: var(--hairline-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  user-select: none;
}
.wordmark .veritas {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 33px;
  color: var(--white-text);
  letter-spacing: 0.005em;
}
.wordmark .rule {
  width: 60%;
  height: 1px;
  background: var(--gold-primary);
  margin: 6px 0 6px;
}
.wordmark .vault {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--silver-text);
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.primary-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--silver-text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--white-text); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--gold-hover);
  color: var(--navy-dark);
  border-color: var(--gold-hover);
}
.btn-filled {
  background: var(--gold-primary);
  color: var(--navy-dark);
}
.btn-filled:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* ───────────────────────── Hub Ticker ───────────────────────── */

.hub-ticker {
  position: fixed;
  top: 124px;
  left: 0;
  right: 0;
  z-index: 90;
  height: 40px;
  background: var(--navy-light);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
  transition: top 0.4s ease;
}
.site-header.scrolled + .hub-ticker { top: 100px; }

.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 40px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.hub-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 38px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--silver-text);
  transition: color 0.2s ease;
  border-right: 1px solid var(--hairline-soft);
}
.ticker-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  flex-shrink: 0;
}
.ticker-item:hover {
  color: var(--gold-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-hover);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────────────────────── Page hero (sub-pages) ───────────────────────── */

.page-hero {
  position: relative;
  padding-top: 220px;
  padding-bottom: 100px;
  background: var(--navy-dark);
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  color: var(--white-text);
  max-width: 18ch;
  margin: 0 0 36px;
  font-weight: 300;
}
.page-hero-rule {
  width: 180px;
  height: 1px;
  background: var(--gold-primary);
  margin: 0 0 36px;
}
.page-hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--silver-text);
  max-width: 64ch;
  margin: 0;
}

/* ───────────────────────── Section base ───────────────────────── */

section.band {
  padding: 140px 0;
  position: relative;
}
section.band.navy-light { background: var(--navy-light); }
section.band.navy-dark  { background: var(--navy-dark); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 80px;
  max-width: 880px;
}
.section-headline {
  font-size: clamp(36px, 4.4vw, 60px);
  color: var(--white-text);
  margin: 0;
}
.section-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  color: var(--silver-text);
  max-width: 60ch;
  line-height: 1.65;
  margin: 0;
}

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  background: var(--navy-dark);
  padding: 100px 0 40px;
  border-top: 1px solid var(--hairline-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
}
.footer-tag {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver-text);
  max-width: 36ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin: 0 0 24px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--silver-text);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-hover); }

.footer-bar {
  border-top: 1px solid var(--gold-primary);
  margin-top: 24px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-text);
}

/* ───────────────────────── Editorial bits ───────────────────────── */

.kicker-meta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--silver-text);
  opacity: 0.7;
}

.gold-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
  line-height: 1;
}

.small-caps {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-text);
}

/* ───────────────────────── Legal documents ───────────────────────── */

.legal-page-hero {
  position: relative;
  padding: 200px 0 60px;
  background: var(--navy-dark);
  overflow: hidden;
}
.legal-page-hero .eyebrow { margin-bottom: 24px; }
.legal-page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  color: var(--white-text);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.legal-page-hero h1 em { font-style: italic; color: var(--gold-primary); font-weight: 300; }
.legal-page-hero .hero-rule {
  width: 140px; height: 1px; background: var(--gold-primary); margin: 0 0 24px;
}
.legal-page-hero .hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--silver-text);
  max-width: 64ch;
  margin: 0;
}
.legal-page-hero .updated {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-text);
  opacity: 0.75;
}

/* Body of legal docs */
.legal-body {
  background: var(--navy-light);
  padding: 100px 0 120px;
}
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal-section {
  padding: 56px 0;
  border-top: 1px solid var(--hairline-soft);
}
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section:last-of-type { padding-bottom: 0; }

.legal-section .section-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.legal-section .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold-primary);
  line-height: 1;
}
.legal-section .label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-text);
}

.legal-section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--white-text);
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.legal-section h2 em { font-style: italic; color: var(--gold-primary); font-weight: 300; }

.legal-section h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--white-text);
  margin: 32px 0 14px;
  letter-spacing: -0.005em;
}

.legal-section p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--silver-text);
  margin: 0 0 18px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--white-text); font-weight: 400; }
.legal-section a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.legal-section a:hover { color: var(--gold-hover); }

.legal-section ul,
.legal-section ol {
  margin: 8px 0 22px;
  padding: 0 0 0 0;
  list-style: none;
}
.legal-section ul li,
.legal-section ol li {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver-text);
  margin: 0 0 12px;
  padding-left: 24px;
  position: relative;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--gold-primary);
}
.legal-section ol {
  counter-reset: leg-ol;
}
.legal-section ol li {
  counter-increment: leg-ol;
}
.legal-section ol li::before {
  content: counter(leg-ol, lower-roman) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
  width: 18px;
}

.legal-defs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 36px;
  margin: 20px 0;
  padding: 24px 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.legal-defs dt {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.legal-defs dd {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--white-text);
  margin: 0;
}

.legal-callout {
  margin: 28px 0;
  padding: 28px 32px;
  border: 1px solid var(--hairline-soft);
  border-left: 1px solid var(--gold-primary);
  background: rgba(15, 23, 42, 0.4);
}
.legal-callout p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--silver-text);
  margin: 0;
}
.legal-callout p strong { color: var(--white-text); font-style: normal; font-weight: 400; }

.legal-footer-meta {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-text);
}
.legal-footer-meta .updated { color: var(--gold-primary); }

@media (max-width: 720px) {
  .legal-defs { grid-template-columns: 1fr; gap: 6px 0; }
  .legal-defs dt { margin-top: 12px; }
  .legal-footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 180px; }
  section.band { padding: 90px 0; }
  .section-head { margin-bottom: 56px; }
}
