:root {
  --bg: #0b0d10;
  --surface: #111419;
  --surface-elevated: #171b21;
  --text: #f6f7f8;
  --muted: #aab0ba;
  --subtle: #7f8793;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #9bb2ff;
  --accent-soft: rgba(155, 178, 255, 0.1);
  --header: rgba(11, 13, 16, 0.84);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --max-width: 1180px;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #151821;
  --muted: #555d69;
  --subtle: #737b87;
  --line: rgba(16, 24, 40, 0.12);
  --accent: #405fc6;
  --accent-soft: rgba(64, 95, 198, 0.08);
  --header: rgba(246, 247, 249, 0.88);
  --shadow: 0 18px 55px rgba(20, 29, 45, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 106px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% -10%, var(--accent-soft), transparent 34rem),
    radial-gradient(circle at -10% 28%, var(--accent-soft), transparent 30rem);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-copy span {
  color: var(--subtle);
  font-size: 0.75rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.policy-hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-summary {
  max-width: 850px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--subtle);
  font-size: 0.84rem;
  font-weight: 600;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(50px, 8vw, 110px);
  padding: 68px 0 110px;
}

.contents {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 136px);
  overflow: auto;
}

.contents > p {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: contents;
}

.contents li {
  counter-increment: contents;
}

.contents a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 4px 0;
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.contents a::before {
  content: counter(contents, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--text);
}

.policy-content {
  max-width: 790px;
}

.policy-content section {
  padding-bottom: 54px;
}

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

.policy-content h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.policy-content h3 {
  margin: 34px 0 10px;
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 1rem;
}

.policy-content p {
  margin: 0 0 18px;
}

.policy-content ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding-left: 1.35rem;
}

.policy-content li::marker {
  color: var(--accent);
}

.inline-link {
  color: var(--text);
  font-weight: 650;
  text-decoration-color: color-mix(in srgb, var(--accent) 68%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
}

.callout {
  margin: 24px 0 34px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 16px;
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.provider-list {
  margin: 26px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.provider {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 22px;
  padding: 18px 20px;
}

.provider + .provider {
  border-top: 1px solid var(--line);
}

.provider strong {
  align-self: start;
  font-size: 0.92rem;
}

.provider span {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.contact-card {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-style: normal;
}

.contact-card span:first-child {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
}

.contact-card a {
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 154px;
  color: var(--subtle);
  font-size: 0.8rem;
}

.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background-color 180ms ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  transform: translateY(-2px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-icon svg {
  grid-area: 1 / 1;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sun-icon,
:root[data-theme="light"] .moon-icon {
  display: none;
}

:root[data-theme="light"] .sun-icon {
  display: block;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .policy-hero {
    padding: 72px 0 60px;
  }

  .policy-layout {
    display: block;
    padding-top: 46px;
  }

  .contents {
    position: static;
    max-height: none;
    margin-bottom: 58px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }

  .contents ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .policy-content {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .header-inner {
    min-height: 70px;
  }

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

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span,
  .header-nav a:first-child {
    display: none;
  }

  .header-nav {
    gap: 14px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .policy-hero {
    padding: 58px 0 50px;
  }

  .hero-summary {
    margin-top: 24px;
    font-size: 1rem;
  }

  .policy-meta span[aria-hidden="true"] {
    display: none;
  }

  .policy-meta {
    display: grid;
  }

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

  .policy-layout {
    padding-bottom: 90px;
  }

  .policy-content section {
    padding-bottom: 42px;
  }

  .policy-content section + section {
    padding-top: 42px;
  }

  .provider {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-inner {
    display: grid;
    min-height: 128px;
    justify-content: start;
    gap: 2px;
    padding: 24px 0 82px;
  }

  .theme-toggle {
    right: 15px;
    bottom: 15px;
    width: 48px;
    justify-content: center;
    padding: 7px;
  }

  .theme-toggle #theme-label {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  :root[data-theme="light"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #000000;
    --muted: #333333;
    --subtle: #555555;
    --line: rgba(0, 0, 0, 0.18);
  }

  .site-header,
  .contents,
  .theme-toggle,
  .site-footer,
  body::before {
    display: none;
  }

  .shell {
    width: 100%;
  }

  .policy-hero {
    padding: 0 0 32px;
  }

  .policy-layout {
    display: block;
    padding: 38px 0 0;
  }

  .policy-content {
    max-width: none;
  }

  .policy-content section {
    break-inside: avoid;
  }
}
