:root {
  color-scheme: light;
  --ink: #17191c;
  --muted: #626a73;
  --line: #dce2e8;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --blue: #218ed2;
  --blue-dark: #126da7;
  --focus: #f2c94c;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(220, 226, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--max-width));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.language-switch button {
  min-width: 52px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(23, 25, 28, 0.12);
}

main {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
}

.lede {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.document-link {
  min-height: 146px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.document-link:hover {
  border-color: var(--blue);
  color: var(--ink);
  transform: translateY(-2px);
}

.document-link strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.document-link span {
  color: var(--muted);
  line-height: 1.55;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  font-weight: 600;
  text-decoration: none;
}

.back-link::before {
  content: "←";
  font-size: 18px;
}

.legal-content {
  margin-top: 48px;
}

.legal-content section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  color: #353b42;
  font-size: 16px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 10px 0 14px;
  padding-left: 24px;
}

.notice {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
  color: #353b42;
  line-height: 1.65;
}

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

.footer-inner {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

[data-copy="zh"] {
  display: none;
}

html[data-language="zh"] [data-copy="en"] {
  display: none;
}

html[data-language="zh"] [data-copy="zh"] {
  display: revert;
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, var(--max-width));
  }

  main {
    width: min(100% - 32px, var(--max-width));
    padding-top: 42px;
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 16px;
  }

  .document-nav {
    grid-template-columns: 1fr;
  }

  .document-link {
    min-height: 118px;
  }

  .legal-content {
    margin-top: 36px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .document-link {
    transition: none;
  }
}
