:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: rgba(12, 25, 41, 0.9);
  --line: rgba(120, 195, 216, 0.18);
  --text: #eaf6ff;
  --muted: #91a8ba;
  --cyan: #48e6ff;
  --green: #76e6ad;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0, rgba(72, 230, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 22%, rgba(118, 230, 173, 0.08), transparent 30%),
    var(--bg);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 20, 0.88);
  backdrop-filter: blur(18px);
}
.legal-header__inner, .legal-main, .legal-footer__inner { width: min(calc(100% - 40px), 920px); margin: 0 auto; }
.legal-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; }
.legal-brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: contain; }
.legal-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.legal-brand strong { font-size: 17px; letter-spacing: .05em; }
.legal-brand small { margin-top: 5px; color: #668096; font-size: 9px; letter-spacing: .14em; }
.legal-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: #91a8ba; font-size: 13px; }
.legal-header nav a:hover, .legal-header nav a[aria-current="page"] { color: var(--cyan); }

.legal-main { padding: 70px 0 84px; }
.legal-heading { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-heading span { color: var(--cyan); font: 700 11px Consolas, monospace; letter-spacing: .16em; }
.legal-heading h1 { margin: 12px 0 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.25; }
.legal-heading p { max-width: 720px; margin: 15px 0 0; color: var(--muted); font-size: 14px; }
.legal-updated { display: inline-block; margin-top: 17px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: #7390a4; font-size: 11px; }
.legal-content { display: grid; gap: 18px; margin-top: 28px; }
.legal-section { padding: 25px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 22px 60px rgba(0, 0, 0, .18); }
.legal-section h2 { margin: 0; color: #f2fbff; font-size: 19px; }
.legal-section h3 { margin: 21px 0 0; color: #d9f7ff; font-size: 15px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 14px; }
.legal-section p { margin: 12px 0 0; }
.legal-section ul, .legal-section ol { margin: 12px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 7px; }
.legal-section a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-notice { border-color: rgba(118, 230, 173, .25); background: rgba(43, 112, 83, .09); }
.legal-warning { border-color: rgba(255, 182, 107, .25); background: rgba(115, 72, 30, .09); }
.legal-footer { border-top: 1px solid var(--line); background: #030812; }
.legal-footer__inner { display: flex; justify-content: space-between; gap: 24px; padding: 25px 0 32px; color: #536a7e; font-size: 11px; }
.legal-footer__inner div { display: flex; flex-wrap: wrap; gap: 14px; }
.legal-footer a:hover { color: #8aa2b5; }

@media (max-width: 680px) {
  .legal-header__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .legal-header nav { justify-content: flex-start; gap: 11px 15px; }
  .legal-main { padding-top: 46px; }
  .legal-section { padding: 21px 20px; }
  .legal-footer__inner { flex-direction: column; }
}
