:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: rgba(98, 98, 98, 0.18);
  --line: rgba(255, 255, 255, 0.13);
  --muted: #929292;
  --text: #f7f7f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: linear-gradient(135deg, #1f1f1f 0%, var(--bg) 58%); color: var(--text); font-family: "Geometria", "Avenir Next", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.legal-header { position: sticky; top: 18px; z-index: 10; width: min(980px, calc(100% - 40px)); height: 64px; margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(22,22,22,.78); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; }
.brand-logo { width: 30px; height: 30px; display: block; object-fit: contain; border-radius: 7px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: #c6c6c6; font-size: 13px; transition: .2s ease; }
.back-link:hover { border-color: rgba(255,255,255,.28); color: #fff; }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); cursor: pointer; }
.language-switch span { min-width: 31px; padding: 6px 5px; border-radius: 5px; color: #777; font-size: 10px; text-align: center; }
.language-switch span.active { background: #fff; color: #111; }
.legal-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0 100px; }
.legal-title { margin-bottom: 58px; }
.eyebrow { display: block; margin-bottom: 20px; color: #aaa; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
h1 { margin: 0 0 20px; font-size: clamp(46px, 7vw, 82px); line-height: .96; font-weight: 500; letter-spacing: -.04em; }
.updated { color: var(--muted); font-size: 14px; }
.legal-card { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.075), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.24); backdrop-filter: blur(24px); }
.legal-card section + section { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
p, li { color: #b5b5b5; font-size: 16px; line-height: 1.75; }
p { margin: 0 0 14px; }
ul { margin: 12px 0 0; padding-left: 22px; }
li + li { margin-top: 8px; }
strong { color: #f1f1f1; }
.legal-card a { color:#eee; text-decoration:underline; text-decoration-color:#666; text-underline-offset:4px; }.legal-card a:hover { text-decoration-color:#fff; }
.version-list { display:grid; gap:10px; }.version-list > div { display:grid; grid-template-columns:60px 150px 1fr; align-items:start; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:rgba(0,0,0,.12); }.version-list b { font-size:14px; }.version-list span { color:#8b8b8b; font-size:12px; }.version-list p { margin:0; font-size:13px; line-height:1.5; }
.legal-footer { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 44px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #777; font-size: 12px; }
.legal-footer a:hover { color: #fff; }
[data-copy][hidden] { display: none; }
@media (max-width: 620px) {
  .legal-header { top: 8px; width: calc(100% - 24px); margin-top: 8px; padding-left: 14px; }
  .brand > span { display: none; }
  .legal-shell { width: calc(100% - 24px); padding: 78px 0 70px; }
  .legal-title { margin-bottom: 38px; }
  .legal-card { border-radius: 22px; }
  .version-list > div { grid-template-columns:50px 1fr; }.version-list p { grid-column:1/-1; }
  .legal-footer { width: calc(100% - 24px); flex-direction: column; }
}
