:root {
  color-scheme: light;
  --canvas: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #e8f4ec;
  --ink: #273a32;
  --ink-muted: #727f78;
  --brand: #68ad8f;
  --brand-deep: #477d68;
  --border: #d9e1dc;
  --notice: #fff8e7;
  --notice-border: #ead7a0;
  --shadow: 0 18px 52px rgba(39, 58, 50, 0.09);
  --max-page: 1120px;
  --max-article: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(104, 173, 143, 0.15), transparent 28rem),
    var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.18em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 220, 0.84);
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(39, 58, 50, 0.1);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(39, 58, 50, 0.08);
}

.brand-name {
  display: grid;
  line-height: 1.25;
}

.brand-name small {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 14px;
  text-decoration: none;
}

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

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-deep);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.legal-header,
.legal-document {
  width: min(100%, var(--max-article));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.effective-date {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.legal-summary {
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  font-size: 16px;
}

.legal-document {
  margin-top: 34px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.legal-document h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 680;
}

.legal-document h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  font-weight: 680;
}

.legal-document p {
  margin: 10px 0;
}

.legal-document ul {
  margin: 10px 0;
  padding-left: 1.3em;
}

.legal-document li + li {
  margin-top: 8px;
}

.important-notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--notice-border);
  border-radius: 16px;
  background: var(--notice);
}

.important-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #6f5513;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a,
.document-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.related-links a {
  padding: 9px 13px;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  text-align: center;
}

.hero-content {
  width: min(100%, 760px);
}

.hero-logo {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(39, 58, 50, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin-top: 22px;
}

.hero-description {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--ink-muted);
  font-size: 18px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.document-card {
  display: block;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.document-card:hover {
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(39, 58, 50, 0.08);
  transform: translateY(-2px);
}

.document-card strong {
  display: block;
  font-size: 18px;
}

.document-card span {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 34px;
}

html.language-ready [data-language] {
  display: none;
}

html.language-ready[data-active-language="zh-Hans"] [data-language="zh-Hans"],
html.language-ready[data-active-language="en"] [data-language="en"] {
  display: block;
}

html.embedded body {
  background: var(--canvas);
}

html.embedded .site-header,
html.embedded .site-footer,
html.embedded .skip-link,
html.embedded .related-pages {
  display: none;
}

html.embedded .page-shell {
  width: 100%;
  padding: 24px 20px 44px;
}

html.embedded .legal-document {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.embedded h1 {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-name small,
  .site-nav {
    display: none;
  }

  .page-shell {
    padding-top: 36px;
  }

  html.embedded .page-shell {
    padding-top: 22px;
  }

  .legal-document {
    border-radius: 20px;
  }

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

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

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

  .document-card {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
  }

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

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

  .legal-document {
    width: 100%;
    margin-top: 24px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
