:root {
  color-scheme: light;
  --ink: #292632;
  --paper: #fcf9fb;
  --surface: #fffdfde8;
  --muted: #7b7482;
  --line: #76678320;
  --accent: #827195;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 165px; }
body { margin: 0; min-width: 320px; line-height: 1.85; background: radial-gradient(ellipse at 100% 45%, #ece7f670, transparent 55%), var(--paper); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #ab9bbd; outline-offset: 5px; border-radius: 4px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fbf8fbdc; backdrop-filter: blur(20px); border-bottom: 1px solid #ffffffc9; }
.header-inner, .document-nav > div, .hero-inner, .legal-layout, .site-footer > div { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 42px; color: #706979; }
.brand-mark svg { width: 42px; height: 28px; }
.brand span:last-child { display: flex; align-items: baseline; gap: 18px; }
.brand strong { font-size: 23px; font-weight: 650; letter-spacing: 2px; }
.brand small { font-size: 11px; color: #98909d; letter-spacing: 1px; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: #6f657a; background: #fff9; transition: background .2s; }
.language-switch:hover { background: #eae4f0; }
.document-nav { border-top: 1px solid #88749110; }
.document-nav > div { display: flex; gap: 36px; min-height: 50px; }
.document-nav a { display: inline-flex; align-items: center; position: relative; font-size: 13px; color: var(--muted); white-space: nowrap; }
.document-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 5px; background: transparent; }
.document-nav a:hover, .document-nav a.active { color: var(--ink); }
.document-nav a.active::after { background: #65566f; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 0, #e9e4f780, transparent 65%), radial-gradient(ellipse at 85% 100%, #f4dfd480, transparent 55%), #f8f4f9; }
.hero::after { content: ""; position: absolute; bottom: -35px; left: -5%; width: 110%; height: 65px; border-radius: 50% 50% 0 0; background: var(--paper); border-top: 1px solid #fff; transform: rotate(-1deg); }
.hero-glow { position: absolute; right: 5%; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: #e5ddf2; filter: blur(85px); opacity: .55; }
.hero-inner { position: relative; padding: 54px 0 65px; }
.eyebrow { margin: 0 0 14px; color: #93859d; font-size: 10px; letter-spacing: 3px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 650; line-height: 1.3; letter-spacing: 1px; }
.hero p:last-child { margin: 17px 0 0; font-size: 14px; color: #867b8b; }
.legal-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 48px; align-items: start; padding: 42px 0 76px; }
.sidebar { position: sticky; top: 162px; display: grid; gap: 28px; }
.document-meta { display: grid; padding: 21px 23px; border: 1px solid #fff; border-radius: 21px; background: linear-gradient(135deg, #fffdfc, #f0eaf5a8); box-shadow: 0 4px 18px #7c638008; }
.document-meta span { color: #94869c; font-size: 11px; letter-spacing: 1px; }
.document-meta strong { margin: 5px 0 2px; font-size: 16px; font-weight: 550; color: #514759; }
.document-meta small { font-size: 11px; color: var(--muted); }
.toc { display: grid; gap: 4px; padding-left: 8px; }
.toc p { margin: 0 0 10px; font-size: 11px; letter-spacing: 2px; color: #9a8c9f; }
.toc a { border-left: 2px solid #d8cedf70; padding: 6px 14px; font-size: 12px; color: #84768e; line-height: 1.55; transition: background .2s, color .2s; }
.toc a:hover, .toc a:focus-visible { color: #5f4b71; border-left-color: #a18caf; background: #ece5f370; border-radius: 0 9px 9px 0; }
.legal-content { min-width: 0; padding: clamp(28px, 4.3vw, 56px); border: 1px solid #fff; border-radius: 27px; background: var(--surface); box-shadow: 0 0 0 1px #b8a5c113, 0 12px 42px #70557806; overflow-wrap: anywhere; }
.legal-content > h1 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; line-height: 1.5; margin: 0; color: #3e3547; }
.legal-content > p:first-of-type { font-size: 12px; color: #978b9d; margin: 15px 0 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.legal-content h2 { font-size: 17px; line-height: 1.6; font-weight: 600; color: #514459; margin: 36px 0 14px; }
.legal-content h3 { font-size: 15px; font-weight: 600; color: #65536f; margin: 25px 0 12px; }
.legal-content p, .legal-content li { font-size: 14px; color: #756a7d; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul, .legal-content ol { padding: 0; margin: 12px 0 24px; list-style: none; counter-reset: item; }
.legal-content li { position: relative; margin: 10px 0; padding-left: 23px; }
.legal-content ul li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: #b29cbb; box-shadow: 0 0 0 4px #e9e1ed65; }
.legal-content ol li { counter-increment: item; }
.legal-content ol li::before { content: counter(item) "."; position: absolute; left: 0; color: #a38bab; }
.legal-content a { color: #876d99; text-decoration: underline; text-decoration-color: #a28bb055; text-underline-offset: 4px; }
.legal-content a:hover { color: #59406c; }
.legal-content code { padding: 2px 6px; border-radius: 5px; background: #f0eaf4; color: #866b98; font-size: .88em; }
.test-warning { padding: 14px 17px; margin-bottom: 28px; border-radius: 13px; border: 1px solid #decda9; background: #fff8e9; color: #93713a; font-size: 13px; }
.site-footer { position: relative; overflow: hidden; padding: 35px 0 calc(38px + env(safe-area-inset-bottom)); background: linear-gradient(160deg, #f8f2f7, #ece7f480); color: #9b8da3; border-top: 1px solid #fff; }
.site-footer::before { content: ""; position: absolute; left: -20%; bottom: -100px; width: 150%; height: 160px; border: 1px solid #fff; border-radius: 50%; background: #e5deed40; transform: rotate(-4deg); pointer-events: none; }
.site-footer .footer-tagline { position: relative; text-align: center; letter-spacing: 4px; font-size: 12px; margin: 0 0 28px; }
.site-footer > div { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
.site-footer > div p, .site-footer a { font-size: 11px; margin: 0; }
.site-footer a:hover { color: #78608b; }
@media (max-width: 900px) {
  .header-inner, .document-nav > div, .hero-inner, .legal-layout, .site-footer > div { width: calc(100% - 48px); }
  .legal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 26px; }
  .legal-content { padding: 32px; }
  .document-meta { padding: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 145px; }
  .header-inner, .document-nav > div, .hero-inner, .legal-layout, .site-footer > div { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; }
  .brand strong { font-size: 21px; }
  .brand small { display: none; }
  .brand-mark, .brand-mark svg { width: 36px; }
  .document-nav > div { min-height: 46px; gap: 27px; }
  .document-nav a { font-size: 12px; }
  .hero-inner { padding: 38px 0 49px; }
  .hero h1 { font-size: 34px; }
  .hero p:last-child { font-size: 12px; max-width: 300px; }
  .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding: 23px 0 46px; }
  .sidebar { position: static; gap: 18px; }
  .document-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; padding: 13px 18px; border-radius: 15px; }
  .document-meta strong { margin: 0; font-size: 13px; }
  .toc { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: thin; scrollbar-color: #d8cde2 transparent; }
  .toc p { display: none; }
  .toc a { flex-shrink: 0; white-space: nowrap; font-size: 11px; padding: 5px 12px; border: 1px solid var(--line); background: #fff9; border-radius: 99px; }
  .toc a:hover, .toc a:focus-visible { border-radius: 99px; }
  .legal-content { padding: 28px 22px; border-radius: 21px; }
  .legal-content > h1 { font-size: 23px; }
  .legal-content > p:first-of-type { font-size: 11px; }
  .legal-content h2 { font-size: 16px; margin-top: 30px; }
  .legal-content p, .legal-content li { font-size: 14px; }
  .site-footer > div { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
