:root {
  --bg: #0d0e1a;
  --panel: #171722;
  --stroke: rgba(255,255,255,.12);
  --text: #fffaf7;
  --muted: #b7b1b5;
  --orange: #ff5b3d;
  --purple: #5748d4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 88% 0, rgba(87,72,212,.16), transparent 28rem), radial-gradient(circle at 0 30%, rgba(255,91,61,.08), transparent 22rem), var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif; line-height: 1.72; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(980px, calc(100% - 40px)); margin-inline: auto; }
.legal-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--stroke); background: rgba(13,14,26,.86); backdrop-filter: blur(18px); }
.legal-nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.brand strong { font-size: 20px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.home-link, .language-select { min-height: 44px; padding: 0 15px; border: 1px solid var(--stroke); border-radius: 14px; color: white; background: rgba(255,255,255,.055); font: inherit; font-size: 14px; font-weight: 750; }
.home-link { display: inline-flex; align-items: center; }
.language-select { color-scheme: dark; cursor: pointer; }
.legal-hero { padding: 92px 0 52px; }
.kicker { margin-bottom: 14px; color: #ff8064; font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.updated { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 46px; align-items: start; padding-bottom: 100px; }
.legal-layout.single { grid-template-columns: 1fr; }
.toc { position: sticky; top: 105px; padding: 18px; border: 1px solid var(--stroke); border-radius: 20px; background: rgba(255,255,255,.035); }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: white; }
.legal-content { padding: 38px 40px; border: 1px solid var(--stroke); border-radius: 28px; background: rgba(255,255,255,.04); box-shadow: 0 28px 75px rgba(0,0,0,.25); }
.legal-content section { padding: 0 0 32px; margin: 0 0 30px; border-bottom: 1px solid rgba(255,255,255,.085); }
.legal-content section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 13px; font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: #c8c2c6; font-size: 16px; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: #ff9a7e; text-decoration: underline; text-underline-offset: 3px; }
.lang-panel[hidden] { display: none; }
.notice { margin: 0 0 28px; padding: 16px 18px; border-left: 3px solid var(--orange); border-radius: 0 14px 14px 0; background: rgba(255,91,61,.08); color: #ded7da; }
footer { padding: 32px 0 44px; border-top: 1px solid var(--stroke); color: #958f95; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-row a { color: #d9d3d6; }
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 640px); }
  .home-link { display: none; }
  .legal-hero { padding-top: 70px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .legal-content { padding: 28px 22px; }
}
