/* Terms / Privacy reading pages. System fonts only, no external requests, no horizontal scroll. */
:root {
  --night: #0a0e1a; --night-ink: #f3f1ea; --night-muted: #a9afc2; --night-line: #ffffff1f;
  --paper: #f6f4ef; --panel: #ffffff; --ink: #14151c; --muted: #575c6b; --line: #14151c1f;
  --accent: #5b46ef; --accent-ink: #4a37d4; --gold: #d6b598; --gold-ink: #8a6238;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--sans); overflow-wrap: anywhere; word-break: normal; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.bar :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }

/* header */
.bar { background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; max-width: 960px; margin: 0 auto; padding: 6px 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-weight: 800; font-size: 16px; text-decoration: none; }
.brand img { flex: none; width: 32px; height: 32px; }
.bar-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bar-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--night-muted); font-size: 15px; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.bar-nav a:hover { color: var(--night-ink); background: #ffffff14; }
.bar-nav .lang { border: 1px solid var(--night-line); color: var(--night-ink); font-weight: 700; }

/* document */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 56px; }
.doc-head { padding-bottom: 8px; }
.eyebrow { margin: 0 0 8px; color: var(--gold-ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.25; letter-spacing: -.01em; }
.lead { margin: 0 0 12px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.meta { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.toc { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.toc summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 700; cursor: pointer; border-radius: 14px; }
.toc ol { display: grid; gap: 0; margin: 0; padding: 0 8px 10px; list-style: none; }
.toc li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.toc li a:hover { background: #5b46ef12; color: var(--accent-ink); }

.sec { padding-top: 32px; scroll-margin-top: 16px; }
.sec + .sec { margin-top: 8px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; scroll-margin-top: 16px; }
.sec p { margin: 0 0 14px; }
.sec ul { margin: 0 0 14px; padding-left: 1.3em; }
.sec li { margin: 0 0 6px; }
.note { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--panel); }
.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; }
.links a { display: inline-block; margin: 0 14px 4px 0; padding: 6px 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer */
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 14px; line-height: 1.7; }
.foot-in { max-width: 960px; margin: 0 auto; padding: 28px 16px 40px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--night-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.foot-links a[aria-current="page"] { color: var(--gold); text-decoration: none; }

@media (min-width: 760px) {
  body { font-size: 17px; }
  .bar-in { padding: 6px 28px; }
  .foot-in { padding: 32px 28px 48px; }
  .doc { padding: 56px 24px 80px; }
  h1 { font-size: 38px; }
  h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .bar, .toc, .skip { display: none; }
  body { background: #fff; }
}
