:root {
  color-scheme: dark;
  --ink: #080e12;
  --surface: #11191e;
  --paper: #f3f7f7;
  --body-copy: #c8d0d2;
  --muted: #a6b0b4;
  --accent: #f0b36a;
  --line: #2c353b;
  --sans: Inter, "Segoe UI", "Microsoft YaHei UI", "Noto Sans CJK SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--body-copy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #705130; color: #fff; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--paper); }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-width { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
}
.skip-link:focus { transform: none; color: var(--ink); }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 18, 0.96);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding-block: 14px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 10px 18px 10px 20px;
  border: 1px solid #566066;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(244, 253, 255, 0.08), rgba(4, 12, 18, 0.19) 48%, rgba(240, 179, 106, 0.045));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.045);
  text-decoration: none;
}
.legal-brand em {
  padding: 3px 10px;
  border: 1px solid #40494e;
  border-radius: 999px;
  color: #b7c1c5;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 4px;
  border: 1px solid #424a4f;
  border-radius: 999px;
  background: #0c1216;
}
.language-switcher button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--body-copy);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.language-switcher button:hover { background: #252e33; color: #fff; }
.language-switcher button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.language-switcher button:focus-visible { outline-offset: 2px; }

.legal-hero { padding-top: 24px; padding-bottom: 40px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.document-tabs {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.document-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 0 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.document-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--paper); }
.internal-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.045em;
}
.internal-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
h1 {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.document-summary { max-width: 700px; margin: 0 0 22px; font-size: 20px; line-height: 1.65; }
.updated { margin: 0; color: var(--muted); font-size: 14px; }
.test-notice {
  max-width: 880px;
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: #141b20;
  font-size: 15px;
  line-height: 1.8;
}
.test-notice p { margin: 0; }
.document-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 70px;
  padding-bottom: 70px;
}
.document-toc { position: sticky; top: 122px; max-height: calc(100dvh - 150px); overflow-y: auto; scrollbar-width: thin; }
.mobile-toc { display: none; }
.document-toc h2 { margin: 0 0 18px; color: var(--paper); font-size: 15px; font-weight: 650; }
.document-toc ol, .mobile-toc ol { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.document-toc a, .mobile-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.document-toc a:hover, .mobile-toc a:hover { color: var(--accent); }
.section-index { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--accent); }
.document-body { min-width: 0; overflow-wrap: anywhere; }
.document-body:focus { outline: none; }
.document-scope { margin: 0 0 38px; padding-bottom: 32px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.policy-section { margin: 0 0 42px; }
.policy-section + .policy-section { padding-top: 32px; border-top: 1px solid var(--line); }
.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--paper);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
}
.policy-section h2 .section-index { flex-shrink: 0; font-size: 13px; letter-spacing: 0; }
.policy-section h3 { margin: 28px 0 12px; color: var(--paper); font-size: 19px; font-weight: 600; }
.policy-section p { margin: 0 0 20px; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul { padding-left: 1.3em; margin: 0; }
.policy-section li { margin-bottom: 18px; padding-left: 6px; }
.policy-section li::marker { color: var(--accent); }
.policy-section strong { color: var(--paper); font-weight: 650; }
.policy-section a { color: var(--accent); text-decoration-thickness: 1px; }
.policy-section a:hover { color: #ffe1b4; }
.related-documents { padding: 30px 0; border-top: 1px solid var(--line); }
.related-documents h2 { margin: 0 0 6px; color: var(--paper); font-size: 21px; font-weight: 600; }
.related-documents p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.related-documents ul { display: flex; flex-wrap: wrap; column-gap: 26px; padding: 0; margin: 0; list-style: none; }
.related-documents a { display: inline-block; min-height: 44px; padding-block: 8px; font-size: 15px; }
.document-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.document-end a { display: inline-block; min-height: 44px; padding-block: 8px; color: var(--accent); font-size: 15px; }
.legal-footer { padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-inner p { margin: 0; }

@media (max-width: 1000px) {
  .page-width { width: calc(100% - 56px); }
  .document-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 40px; }
  .policy-section h2 { font-size: 23px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .page-width { width: calc(100% - 40px); }
  .legal-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 16px; padding-block: 18px; }
  .legal-brand { min-height: 52px; }
  .legal-hero { padding-top: 24px; padding-bottom: 36px; }
  .back-link { margin-bottom: 20px; }
  .document-tabs { margin-bottom: 32px; }
  .document-summary { font-size: 18px; }
  .document-layout { display: block; padding-bottom: 44px; }
  .document-toc { display: none; }
  .mobile-toc { display: block; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .mobile-toc summary { min-height: 48px; padding-block: 9px; color: var(--paper); font-size: 16px; font-weight: 600; cursor: pointer; }
  .mobile-toc summary::marker { color: var(--accent); }
  .mobile-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding-block: 10px; }
  .policy-section { margin-bottom: 32px; }
  .policy-section h2 { gap: 12px; }
  .document-scope { margin-bottom: 30px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .header-inner { justify-content: flex-start; }
  .mobile-toc ol { grid-template-columns: 1fr; }
  .test-notice { padding: 14px 16px; }
  .language-switcher button { padding-inline: 11px; }
  .policy-section h2 { font-size: 22px; }
}
@media (prefers-reduced-transparency: reduce) {
  .legal-header { background: var(--ink); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (forced-colors: active) {
  .brand-wordmark { background: none; color: LinkText; text-shadow: none; }
  .language-switcher button[aria-pressed="true"] { border: 2px solid ButtonText; }
}
@media print {
  :root { color-scheme: light; --ink: #fff; --surface: #fff; --paper: #111; --body-copy: #222; --muted: #444; --accent: #5b3b13; --line: #ccc; }
  body { font-size: 11pt; line-height: 1.6; }
  .page-width { width: 100%; }
  .legal-header { position: static; background: none; backdrop-filter: none; }
  .header-inner { min-height: 0; padding: 0 0 16px; }
  .legal-brand { border: 0; background: none; box-shadow: none; padding: 0; }
  .brand-wordmark { background: none; color: #111; text-shadow: none; }
  .legal-brand em { color: #333; }
  .language-switcher, .back-link, .document-tabs, .document-toc, .mobile-toc, .document-end, .skip-link { display: none; }
  .legal-hero { padding: 24px 0; }
  h1 { font-size: 30pt; }
  .document-layout { display: block; padding-bottom: 0; }
  .test-notice { background: none; }
  .policy-section h2, .policy-section h3 { break-after: avoid; }
  .policy-section p, .policy-section li { orphans: 3; widows: 3; }
  .policy-section h2 { font-size: 17pt; }
}
