:root {
  color-scheme: light dark;
  --canvas: #f2f2f2;
  --surface: #ffffff;
  --raised: #f7f7f8;
  --ink: #181819;
  --muted: #606066;
  --divider: #dddee3;
  --cobalt: #010195;
  --blue: #93cafd;
  --blue-soft: #ddeeff;
  --focus: #1769e0;
  --shadow: 0 24px 70px rgba(1, 1, 40, 0.09);
  --radius-large: 28px;
  --radius-small: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "PingFang TC", "Noto Sans CJK SC", "Noto Sans CJK TC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49.75%, rgba(1, 1, 149, 0.035) 49.75% 50.25%, transparent 50.25%),
    var(--canvas);
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--cobalt);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cobalt) 26%, transparent);
  border-radius: 10px;
  color: var(--cobalt);
  background: var(--blue-soft);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 20px;
  font-weight: 700;
}

.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.document {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: clamp(30px, 7vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(147, 202, 253, 0.44), transparent 28%),
    linear-gradient(132deg, #010195 0%, #1010ae 58%, #3434c7 100%);
}

.document-kicker {
  margin: 0 0 12px;
  color: #c9e5ff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.document h1 {
  max-width: 12em;
  margin: 0;
  font-family: "Songti SC", "Songti TC", "STSong", "Noto Serif CJK SC",
    "Noto Serif CJK TC", serif;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.document-summary {
  max-width: 44em;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.folio {
  align-self: start;
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px 7px 22px 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.06);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 18px clamp(26px, 7vw, 64px);
  border-bottom: 1px solid var(--divider);
  color: var(--muted);
  background: var(--raised);
  font-size: 13px;
}

.metadata strong {
  color: var(--ink);
  font-weight: 720;
}

.document-body {
  padding: clamp(30px, 7vw, 64px);
}

.notice {
  margin: 0 0 42px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 68%, var(--divider));
  border-radius: var(--radius-small);
  background: var(--blue-soft);
}

.notice strong {
  color: var(--cobalt);
}

.policy-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--divider);
}

.policy-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.section-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--cobalt);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.section-content h2 {
  margin: 1px 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.35;
}

.section-content p {
  margin: 0 0 12px;
}

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

.section-content ul {
  margin: 10px 0 0;
  padding-left: 1.25em;
}

.section-content li + li {
  margin-top: 8px;
}

.contact-card {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-small);
  background: var(--raised);
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
}

.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(26px, 7vw, 64px);
  border-top: 1px solid var(--divider);
  color: var(--muted);
  background: var(--raised);
  font-size: 13px;
}

.document-footer p {
  margin: 0;
}

.language-home {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
}

.language-panel {
  width: min(100%, 720px);
  padding: clamp(30px, 7vw, 58px);
  border: 1px solid var(--divider);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-panel .folio {
  margin-bottom: 28px;
  color: #fff;
  background: var(--cobalt);
}

.language-panel h1 {
  margin: 0;
  font-family: "Songti SC", "Songti TC", "STSong", serif;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.16;
}

.language-panel > p {
  max-width: 38em;
  margin: 16px 0 28px;
  color: var(--muted);
}

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

.language-option {
  display: grid;
  gap: 3px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--raised);
  text-decoration: none;
}

.language-option:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.language-option strong {
  font-size: 18px;
}

.language-option span {
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101014;
    --surface: #1c1c21;
    --raised: #26262c;
    --ink: #f6f6f7;
    --muted: #b7b7c0;
    --divider: #383842;
    --cobalt: #9ca8ff;
    --blue: #4e86ba;
    --blue-soft: #18334d;
    --focus: #93cafd;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  }

  .document-head {
    background:
      radial-gradient(circle at 82% 18%, rgba(147, 202, 253, 0.24), transparent 28%),
      linear-gradient(132deg, #10105e 0%, #191979 58%, #25258f 100%);
  }
}

@media (max-width: 620px) {
  body {
    line-height: 1.72;
    background: var(--canvas);
  }

  .site-shell {
    width: min(100% - 20px, 920px);
    padding-top: 14px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .document {
    border-radius: 22px;
  }

  .document-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .folio {
    width: 66px;
    border-radius: 18px 6px 18px 6px;
    font-size: 23px;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .language-options {
    grid-template-columns: 1fr;
  }

  .document-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

@media print {
  :root {
    color-scheme: light;
    --canvas: #fff;
    --surface: #fff;
    --raised: #fff;
    --ink: #000;
    --muted: #444;
    --divider: #bbb;
    --cobalt: #010195;
    --blue-soft: #eef5ff;
    --shadow: none;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .topbar,
  .skip-link,
  .folio {
    display: none;
  }

  .document {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .document-head {
    display: block;
    padding: 0 0 20pt;
    color: #000;
    background: #fff;
  }

  .document-kicker,
  .document-summary {
    color: #333;
  }

  .metadata,
  .document-body,
  .document-footer {
    padding-right: 0;
    padding-left: 0;
  }

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

  a {
    color: #000;
  }
}
