:root {
  color-scheme: light dark;
  --page: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #172033;
  --muted: #5d687d;
  --line: rgba(33, 48, 77, 0.14);
  --accent: #315bd6;
  --accent-soft: rgba(49, 91, 214, 0.11);
  --note: #0c6a58;
  --note-soft: rgba(12, 106, 88, 0.11);
  --warning: #9a5a00;
  --warning-soft: rgba(154, 90, 0, 0.11);
  --shadow: 0 18px 50px rgba(28, 45, 80, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(67, 112, 235, 0.13), transparent 34rem),
    radial-gradient(circle at 100% 12%, rgba(108, 76, 224, 0.09), transparent 30rem),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1080px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(145deg, #426fe8, #674bdc);
  box-shadow: 0 8px 22px rgba(49, 91, 214, 0.24);
  font-size: 15px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

main {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.hero {
  padding: 54px clamp(24px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 820;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 780;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 740;
}

.hero-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 45, 80, 0.055);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 16px 38px rgba(28, 45, 80, 0.1);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 20px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.summary-panel,
.document-section,
.language-section {
  margin-top: 26px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 45, 80, 0.045);
}

.document-section > :last-child,
.language-section > :last-child,
.summary-panel > :last-child {
  margin-bottom: 0;
}

.section-label {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.toc {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 22px;
}

.toc li {
  break-inside: avoid;
  margin: 6px 0;
}

.toc a {
  color: var(--muted);
}

.legal-copy section {
  scroll-margin-top: 92px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.legal-copy section:first-of-type {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 10px 0 18px;
  padding-left: 1.35em;
}

li {
  margin: 7px 0;
}

strong {
  font-weight: 760;
}

.note,
.warning {
  margin: 20px 0;
  padding: 17px 19px;
  border-left: 4px solid;
  border-radius: 0 14px 14px 0;
}

.note {
  border-color: var(--note);
  color: color-mix(in srgb, var(--note) 88%, var(--text));
  background: var(--note-soft);
}

.warning {
  border-color: var(--warning);
  color: color-mix(in srgb, var(--warning) 88%, var(--text));
  background: var(--warning-soft);
}

.contact-box {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--accent-soft);
}

.contact-box a {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
}

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

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

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

@media (max-width: 760px) {
  .header-inner {
    display: block;
    width: min(100% - 24px, 940px);
    padding: 12px 0 10px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 8px;
    padding-bottom: 1px;
  }

  main {
    width: min(100% - 24px, 940px);
    padding-top: 30px;
  }

  .hero {
    padding: 34px 24px;
  }

  .cards,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .toc {
    columns: 1;
  }

  .footer-inner {
    display: block;
    width: min(100% - 24px, 940px);
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1420;
    --surface: rgba(24, 31, 47, 0.9);
    --surface-solid: #181f2f;
    --text: #edf2ff;
    --muted: #aeb9cf;
    --line: rgba(204, 217, 244, 0.14);
    --accent: #91adff;
    --accent-soft: rgba(117, 151, 255, 0.15);
    --note: #7dd9c5;
    --note-soft: rgba(67, 190, 163, 0.13);
    --warning: #ffc46b;
    --warning-soft: rgba(255, 174, 61, 0.13);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  }

  .hero {
    background:
      linear-gradient(135deg, rgba(33, 43, 65, 0.7), rgba(25, 31, 48, 0.45)),
      var(--surface);
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .language-switch,
  .site-footer,
  .skip-link {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .hero,
  .summary-panel,
  .document-section,
  .language-section {
    border: 0;
    box-shadow: none;
    background: #ffffff;
    padding: 18px 0;
  }

  a {
    color: #000000;
  }
}

