:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #ece8df;
  --ink: #171a1f;
  --muted: #62666d;
  --line: #d8d3c9;
  --accent: #1769ff;
  --accent-soft: #e8f0ff;
  --card: rgba(255, 255, 255, 0.72);
  --content: 780px;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 26, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(23, 105, 255, 0.5);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid rgba(23, 26, 31, 0.1);
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  font-size: 20px;
  font-weight: 760;
  box-shadow: 0 7px 22px rgba(23, 26, 31, 0.13);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

main {
  padding: 0 24px;
}

.hero {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 138px) 0 76px;
}

.eyebrow,
.section-number {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 690px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.65;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-left: 0;
  list-style: none;
}

.principles li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 700;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 650px;
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
}

.policy-meta div {
  padding: 18px 0 0;
}

.policy-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.policy-meta dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
}

.policy {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 72px);
  border: 1px solid rgba(23, 26, 31, 0.11);
  border-radius: 30px;
  background: var(--card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 70px rgba(52, 48, 41, 0.08);
  backdrop-filter: blur(10px);
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.important-note {
  margin: 0 0 54px;
  padding: 22px 24px;
  border: 1px solid #b8ccff;
  border-radius: 18px;
  background: var(--accent-soft);
}

.important-note strong {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.important-note p {
  margin: 7px 0 0;
}

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

h3 {
  margin: 0 0 17px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h4 {
  margin: 28px 0 8px;
  font-size: 16px;
}

p,
ul {
  margin-top: 0;
  color: #363a41;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 6px;
}

code {
  padding: 0.18em 0.42em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.language-divider {
  display: grid;
  width: min(100%, var(--content));
  height: 180px;
  margin: 0 auto;
  place-items: center;
}

.language-divider span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.policy-en {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
  padding: 72px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
  color: inherit;
}

footer a {
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand small {
    display: none;
  }

  nav a {
    padding: 6px 8px;
  }

  main {
    padding: 0 14px;
  }

  .hero {
    padding: 70px 8px 56px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 68px);
  }

  .hero-summary {
    margin-top: 26px;
    font-size: 17px;
  }

  .policy-meta {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .policy {
    padding: 42px 20px;
    border-radius: 22px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .important-note {
    padding: 18px;
  }

  .language-divider {
    height: 120px;
  }

  footer {
    width: calc(100% - 36px);
    padding-top: 52px;
  }
}

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