:root {
  color-scheme: light;
  --canvas: #f4f7fb;
  --panel: #ffffff;
  --ink: #253042;
  --muted: #647086;
  --line: #dfe5ef;
  --cyan: #208bc7;
  --indigo: #5678e8;
  --soft: #eef7fc;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 0, #eaf7fd 0, transparent 28rem), var(--canvas); }
a { color: var(--cyan); }
a:hover { text-decoration-thickness: 2px; }
.legal-header { border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; background: linear-gradient(115deg, #2da6bf, #497fd7 65%, #745cb6); }
.legal-header-inner, .legal-main, .legal-footer { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.legal-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.legal-brand { color: #fff; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.legal-nav a { color: rgba(255,255,255,.92); font-size: 13px; text-decoration: none; }
.legal-nav a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.legal-main { padding: 52px 0 64px; }
.legal-hero { margin-bottom: 28px; }
.legal-eyebrow { margin: 0 0 8px; color: var(--indigo); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 10px; font-size: clamp(32px, 6vw, 48px); line-height: 1.08; }
.legal-updated { margin: 0; color: var(--muted); font-size: 14px; }
.legal-card { padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(45,62,92,.09); }
.legal-card section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 { margin: 20px 0 8px; font-size: 16px; }
p, li { font-size: 15px; line-height: 1.72; }
p { margin: 10px 0; }
ul { margin: 10px 0; padding-left: 22px; }
li + li { margin-top: 7px; }
.legal-summary { padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: var(--soft); }
.legal-table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.legal-table th { background: #f6f8fc; }
.riot-notice { padding: 18px; border: 1px solid #cfe7f4; border-radius: 12px; background: #f4fbfe; }
.legal-footer { padding: 22px 0 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; color: var(--muted); font-size: 12px; }
.legal-footer-links { display: flex; gap: 14px; }

@media (max-width: 620px) {
  .legal-header-inner { padding: 12px 0; align-items: flex-start; flex-direction: column; }
  .legal-nav { justify-content: flex-start; }
  .legal-main { padding-top: 34px; }
  .legal-card { padding: 22px 18px; border-radius: 14px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table tr + tr { margin-top: 12px; }
  .legal-table th { border-bottom: 0; }
}
