:root {
  --ink: #12141a;
  --ink-soft: #3a4050;
  --paper: #eef1f6;
  --panel: #f8f9fc;
  --line: #d5dae6;
  --accent: #0b7ea4;
  --accent-soft: rgba(11, 126, 164, 0.12);
  --shadow: 0 18px 50px rgba(18, 20, 26, 0.08);
  --radius: 18px;
  --max: 760px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--paper);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(11, 126, 164, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(18, 20, 26, 0.06), transparent 50%),
    linear-gradient(180deg, #e7ebf3 0%, var(--paper) 35%, #e9edf5 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.header-meta {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
}

.policy {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.hero {
  padding: 2.5rem 0 2rem;
  animation: rise 0.7s ease both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.effective {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.toc {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease 0.08s both;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  counter-increment: toc;
}

.toc ol {
  counter-reset: toc;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(11, 126, 164, 0.35);
}

.sections {
  display: grid;
  gap: 0;
  padding: 0.5rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease 0.16s both;
}

.sections section {
  padding: 1.75rem 1.75rem 1.6rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.sections section:last-child {
  border-bottom: none;
}

.sections h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.num {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border-radius: 0.45rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.sections p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

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

.sections ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.sections ul:last-child {
  margin-bottom: 0;
}

.sections li {
  margin-bottom: 0.35rem;
}

.sections li:last-child {
  margin-bottom: 0;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.sections a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 126, 164, 0.3);
  transition: border-color 0.2s ease;
}

.sections a:hover,
.sections a:focus-visible {
  border-bottom-color: var(--accent);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.9rem;
  animation: rise 0.7s ease 0.24s both;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.15rem;
  }

  .policy {
    padding: 0 1.15rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .toc ol {
    columns: 1;
  }

  .toc,
  .sections section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .sections h2 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .toc,
  .sections,
  .site-footer {
    animation: none;
  }
}
