:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d687a;
  --subtle: #d9e1ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --navy: #1f365e;
  --blue: #2563eb;
  --red: #c2413d;
  --green: #2f7d63;
  --shadow: 0 24px 80px rgba(23, 32, 51, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(120deg, rgba(31, 54, 94, 0.96), rgba(35, 83, 126, 0.9)),
    linear-gradient(45deg, rgba(194, 65, 61, 0.2), transparent 55%),
    #1f365e;
  color: #ffffff;
  overflow: hidden;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 16px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.64);
}

.hero {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 74px 24px 84px;
}

.eyebrow {
  color: #cfe2ff;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 850px;
}

.lede {
  color: #e8eef7;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 780px;
}

.policy-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-meta span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 14px;
}

.layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  margin: -40px auto 0;
  max-width: var(--max-width);
  padding: 0 24px 72px;
  position: relative;
}

.toc {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 24px;
}

.toc-title {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  color: var(--muted);
  display: block;
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--blue);
}

.policy {
  background: var(--paper);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice {
  background: #f7fbff;
  border-bottom: 1px solid var(--subtle);
  padding: 24px 34px;
}

.notice p {
  border-left: 4px solid var(--red);
  color: var(--navy);
  font-weight: 750;
  margin: 0;
  padding-left: 16px;
}

.policy-section {
  border-bottom: 1px solid var(--subtle);
  padding: 34px;
  scroll-margin-top: 28px;
}

.policy-section:last-child {
  border-bottom: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

h3 {
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.3;
  margin-bottom: 8px;
  margin-top: 26px;
}

h2 + h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  color: var(--muted);
  padding-left: 4px;
}

li::marker {
  color: var(--green);
}

address {
  color: var(--muted);
  font-style: normal;
}

address strong {
  color: var(--ink);
}

address a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

address a:hover,
address a:focus-visible {
  text-decoration: underline;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.footer {
  border-top: 1px solid var(--subtle);
  color: var(--muted);
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 28px 24px 44px;
}

.footer p {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 900px) {
  .layout {
    display: block;
  }

  .toc {
    margin-bottom: 24px;
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 18px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav-link {
    padding: 7px 12px;
  }

  .hero {
    padding: 54px 18px 72px;
  }

  h1 {
    font-size: 3rem;
  }

  .layout {
    margin-top: -28px;
    padding: 0 14px 48px;
  }

  .toc {
    padding: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .notice,
  .policy-section {
    padding: 24px 20px;
  }
}

@media print {
  .site-header {
    background: #ffffff;
    color: #000000;
  }

  .nav,
  .toc,
  .footer {
    display: none;
  }

  .hero,
  .layout {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .lede,
  .eyebrow,
  .policy-meta span,
  p,
  li {
    color: #000000;
  }

  .policy {
    border: 0;
    box-shadow: none;
  }

  .policy-section,
  .notice {
    break-inside: avoid;
    padding: 18px 0;
  }
}
