:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6678;
  --line: #dfe3ea;
  --surface: #f6f8fb;
  --brand: #3846a5;
  --brand-dark: #263375;
  --accent: #267457;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner,
.legal-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 50px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.effective-date {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 48px 0 80px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 96px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 34px;
  scroll-margin-top: 96px;
}

.legal-content section + section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 14px;
}

.legal-content li + li {
  margin-top: 8px;
}

.policy-note {
  padding: 16px 0 16px 18px;
  border-left: 4px solid var(--accent);
  color: #354052;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111827;
  color: #c6ccd7;
}

.footer-inner {
  padding: 30px 0;
}

.footer-inner p {
  margin: 5px 0;
  font-size: 0.85rem;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header {
    position: static;
  }

  .brand {
    font-size: 1rem;
  }

  .site-nav {
    gap: 14px;
  }

  .legal-hero-inner {
    padding: 40px 0 36px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .toc {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    columns: 2;
  }
}

@media (max-width: 440px) {
  .header-inner,
  .legal-shell,
  .footer-inner,
  .legal-hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .toc {
    columns: 1;
  }
}
