/* One shared document shell for every legal/information page. */
:root {
  --paper:#0c0b12; --paper-deep:#12101a; --card:#171522; --card-strong:#1d1a2b; --card-soft:#222039;
  --ink:#f7f4fb; --muted:#aaa4b5; --faint:#9c93ab; --red:#ff7b86; --yellow:#d8f86a;
  --line:rgba(255,255,255,.13); --control-border:#81798f; --white:#fffdf8; --header-height:76px;
  --serif:"Noto Serif SC","Songti SC",STSong,Georgia,serif;
  --sans:Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}
html[lang="en"] { --serif:Georgia,"Times New Roman",serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-height) + 20px); }
body.legal-page { margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); line-height:1.8; --legal-nav-bg:rgba(12,11,18,.97); }
html[data-theme="light"] .legal-page { --legal-nav-bg:rgba(247,248,244,.97); }
.legal-page::before { content:none; }
.legal-page .wrap { width:min(1160px,calc(100% - 56px)); margin-inline:auto; }
.legal-page a { color:inherit; text-decoration:none; }
.legal-page button { color:inherit; font:inherit; }
.legal-page img { display:block; max-width:100%; }
.legal-page :focus-visible { outline:2px solid var(--red); outline-offset:4px; }
.legal-page ::selection { color:var(--paper); background:var(--yellow); }
.legal-page .skip-link { position:fixed; z-index:50; top:-80px; left:16px; padding:10px 14px; border-radius:10px; color:var(--paper); background:var(--red); font-size:13px; }
.legal-page .skip-link:focus { top:12px; }
.legal-page .legal-nav { position:sticky; z-index:10; top:0; display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:20px; min-height:var(--header-height); padding:0 12px; border-bottom:1px solid var(--line); color:var(--muted); background:var(--legal-nav-bg); backdrop-filter:blur(14px); }
.legal-page .legal-nav .brand { display:flex; flex:0 1 auto; align-items:center; gap:10px; min-width:0; color:var(--ink); font-size:13px; font-weight:800; letter-spacing:.08em; white-space:nowrap; }
.legal-page .legal-nav .brand:hover { color:var(--ink); text-decoration:none; }
.legal-page .brand img { width:28px; height:28px; padding:4px; border-radius:10px; background:#ffffff; }
.legal-page .brand small { color:var(--muted); font-size:11px; font-weight:600; }
.legal-page .legal-tools { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.legal-page .support-language { display:inline-flex; align-items:center; gap:2px; padding:4px; border:1px solid var(--line); border-radius:999px; background:var(--card); }
.legal-page .support-language button { min-width:40px; min-height:36px; padding:5px 9px; border:0; border-radius:999px; color:var(--muted); background:transparent; font-size:12px; font-weight:700; }
.legal-page .support-language button:hover { color:var(--ink); background:var(--card-soft); }
.legal-page .support-language button[aria-pressed="true"] { color:var(--paper); background:var(--yellow); }
.legal-page .support-language button:focus-visible { outline:2px solid var(--red); outline-offset:3px; }
.legal-page .legal-main { padding-block:40px 72px; }
.legal-page .legal-breadcrumb { margin-bottom:28px; }
.legal-page .back { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:13px; }
.legal-page .back:hover { color:var(--yellow); }
.legal-page .legal-title { max-width:900px; margin-bottom:40px; padding-bottom:32px; border-bottom:1px solid var(--line); }
.legal-page .legal-title-mark { display:grid; place-items:center; width:44px; height:44px; margin-bottom:18px; border:1px solid var(--line); border-radius:12px; color:var(--red); background:var(--card-strong); }
.legal-page .eyebrow { margin-bottom:14px; color:var(--red); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.legal-page .legal-title h1 { margin:0 0 18px; font-family:var(--serif); font-size:clamp(36px,4.5vw,52px); font-weight:500; line-height:1.15; letter-spacing:-.035em; overflow-wrap:anywhere; }
.legal-page .updated { color:var(--faint); font-size:12px; }
.legal-page .legal-layout { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; gap:56px; }
.legal-page .legal-layout > * { min-width:0; }
.legal-page .legal-index { position:sticky; top:calc(var(--header-height) + 28px); padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
.legal-page .legal-index summary { min-height:36px; color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }
.legal-page .legal-index summary::marker { color:var(--yellow); }
.legal-page .legal-index nav { margin-top:8px; }
.legal-page .legal-index ol { margin:0; padding:0; list-style:none; }
.legal-page .legal-index a { display:flex; align-items:center; min-height:44px; padding:8px; border-radius:8px; color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.legal-page .legal-index a:hover { color:var(--ink); background:var(--card-soft); text-decoration:none; }
.legal-page .legal-content { max-width:820px; }
.legal-page .legal-content article { margin:0; padding:30px 0; border-top:1px solid var(--line); scroll-margin-top:0; }
.legal-page .legal-content article:first-child { padding-top:0; border-top:0; }
.legal-page .legal-content article:last-child { padding-bottom:0; }
.legal-page .legal-content h2 { margin:0 0 16px; font-family:var(--serif); font-size:26px; font-weight:500; line-height:1.35; letter-spacing:-.025em; overflow-wrap:anywhere; }
.legal-page .legal-content p, .legal-page .legal-content li { color:var(--muted); font-size:15px; line-height:1.9; overflow-wrap:anywhere; }
.legal-page .legal-content p { margin:0 0 16px; }
.legal-page .legal-content p:last-child { margin-bottom:0; }
.legal-page .legal-content ul { padding-left:22px; }
.legal-page strong { color:var(--ink); }
.legal-page .legal-content a { color:var(--yellow); text-decoration:underline; text-underline-offset:3px; }
.legal-page .legal-content code { padding:2px 5px; border-radius:5px; color:var(--ink); background:var(--card-soft); font-size:.9em; }
.legal-page .notice { margin:24px 0; padding:18px 20px; border-left:3px solid var(--yellow); color:var(--muted); background:var(--card-strong); font-size:13px; }
.legal-page .legal-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding-block:28px 48px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.legal-page .legal-footer nav { display:flex; flex-wrap:wrap; gap:4px 16px; }
.legal-page .legal-footer a { display:inline-flex; align-items:center; min-height:36px; color:var(--muted); }
.legal-page .legal-footer a[aria-current="page"] { color:var(--yellow); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:900px) {
  .legal-page .legal-layout { grid-template-columns:1fr; gap:28px; }
  .legal-page .legal-index { position:static; }
  .legal-page .legal-content { max-width:none; }
  .legal-page .legal-index ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 12px; }
}
@media(max-width:620px) {
  :root { --header-height:70px; }
  .legal-page .wrap { width:calc(100% - 30px); }
  .legal-page .legal-nav { padding-inline:0; gap:10px; }
  .legal-page .legal-nav .brand { flex-basis:auto; gap:7px; font-size:11px; letter-spacing:.035em; }
  .legal-page .brand img { width:25px; height:25px; }
  .legal-page .brand small { display:none; }
  .legal-page .legal-tools { gap:7px; }
  .legal-page .support-language button { min-width:34px; padding-inline:7px; }
  .legal-page .legal-main { padding-block:20px 48px; }
  .legal-page .legal-breadcrumb { margin-bottom:20px; }
  .legal-page .legal-title { margin-bottom:28px; padding-bottom:24px; }
  .legal-page .legal-title h1 { font-size:36px; }
  .legal-page .legal-content article { padding-block:24px; }
  .legal-page .legal-content h2 { font-size:23px; }
  .legal-page .legal-content p, .legal-page .legal-content li { font-size:14px; }
  .legal-page .legal-footer { gap:12px; padding-block:24px max(40px,env(safe-area-inset-bottom)); }
}
@media(max-width:380px) { .legal-page .legal-nav .brand { font-size:10px; gap:6px; } .legal-page .legal-tools { gap:6px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
