:root {
  color-scheme: light dark;
  --page: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #edf4ff;
  --surface-teal: #e6f7f3;
  --text: #152033;
  --muted: #5f6d83;
  --line: #d7e1ef;
  --blue: #1769e8;
  --blue-strong: #0f55c8;
  --teal: #087e70;
  --shadow: 0 18px 50px rgba(39, 74, 122, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 18rem;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(23, 105, 232, 0.09), transparent 25rem),
    var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

a {
  color: var(--blue-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover { text-decoration-thickness: 0.13em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 0.75rem;
  background: var(--text);
  color: var(--surface);
  padding: 0.7rem 1rem;
  font-weight: 700;
  transition: transform 120ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(72rem, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  place-items: center;
  background: linear-gradient(145deg, #287af0, #1357ca);
  box-shadow: 0 8px 18px rgba(23, 105, 232, 0.24);
  color: #ffffff;
  font-size: 1rem;
}

.brand-accent { color: var(--blue); }
.header-label { color: var(--muted); font-size: 0.94rem; font-weight: 700; }

.page-shell {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--surface) 15%, var(--surface-soft));
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 4.5rem);
}

.hero::after {
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 232, 0.16), transparent 67%);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.5vw, 1.22rem);
}

.policy-meta {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 46rem;
  margin: 2.2rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.policy-meta div {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  padding: 0.85rem 1rem;
}

.policy-meta dt { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.policy-meta dd { margin: 0.12rem 0 0; font-weight: 750; }

.summary { padding: 4rem 0; }
.summary > h2 { margin: 0 0 1.25rem; font-size: clamp(1.55rem, 3vw, 2rem); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  padding: 1.4rem;
}

.summary-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  place-items: center;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
}

.summary-grid h3 { margin: 1rem 0 0.35rem; font-size: 1.08rem; }
.summary-grid p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.content-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.contents {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1.2rem 1.25rem;
}

.contents p { margin: 0 0 0.55rem; font-weight: 800; }
.contents ol { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.contents li + li { margin-top: 0.35rem; }
.contents a { color: inherit; font-size: 0.9rem; text-decoration: none; }
.contents a:hover { color: var(--blue); text-decoration: underline; }

.policy { min-width: 0; }
.policy section { padding-bottom: 1.35rem; }
.policy section + section { border-top: 1px solid var(--line); padding-top: 2.25rem; }
.policy h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.policy h3 { margin: 1.7rem 0 0.45rem; font-size: 1.15rem; }
.policy p { margin: 0.75rem 0; }
.policy ul { padding-left: 1.35rem; }
.policy li + li { margin-top: 0.55rem; }
.policy code { overflow-wrap: anywhere; color: var(--teal); font-size: 0.9em; }

.notice,
.links-card,
.contact-card {
  margin: 1.3rem 0;
  border-radius: 1.15rem;
  padding: 1.15rem 1.25rem;
}

.notice {
  border-left: 4px solid var(--teal);
  background: var(--surface-teal);
}

.links-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.links-card h3 { margin-top: 0; }
.links-card ul { margin-bottom: 0; }

.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card p { margin: 0.15rem 0; }
.contact-label { color: var(--teal); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-note { color: var(--muted); font-size: 0.9rem; }

footer {
  width: min(72rem, calc(100% - 2rem));
  margin: 3rem auto 0;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 54rem) {
  .page-shell { padding-top: 2.5rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .contents { position: static; }
  .contents ol { columns: 2; column-gap: 2rem; }
}

@media (max-width: 36rem) {
  .header-inner, .page-shell, footer { width: min(100% - 1.25rem, 72rem); }
  .header-label { font-size: 0.82rem; }
  .hero { border-radius: 1.4rem; padding: 1.6rem 1.25rem; }
  .policy-meta { grid-template-columns: 1fr; }
  .summary { padding: 2.7rem 0; }
  .contents ol { columns: 1; }
  .policy h2 { scroll-margin-top: 5.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1219;
    --surface: #151c26;
    --surface-soft: #192536;
    --surface-teal: #12332e;
    --text: #eef4ff;
    --muted: #aab7c9;
    --line: #2d394a;
    --blue: #78a9ff;
    --blue-strong: #a4c4ff;
    --teal: #79d6c7;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 85% 0%, rgba(53, 114, 214, 0.16), transparent 25rem),
      var(--page);
  }

  .brand-mark { background: linear-gradient(145deg, #4a8ef1, #1f5bb4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  :root {
    --page: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f4f6f9;
    --surface-teal: #eff9f7;
    --text: #111827;
    --muted: #4b5563;
    --line: #d1d5db;
  }

  body { background: #ffffff; font-size: 10.5pt; }
  .site-header, .contents, .skip-link { display: none; }
  .page-shell { width: 100%; padding-top: 0; }
  .hero, .summary-grid article, .contact-card { box-shadow: none; }
  .content-layout { display: block; }
  .policy section { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  footer { width: 100%; }
}
