/* ============================================================
   Berise Legal Pages — reuses main design tokens
   ============================================================ */

:root {
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --muted: #8a8a90;
  --border: #26262b;
  --accent-1: #ff6a2b;
  --accent-2: #e04018;
  --accent-grad: linear-gradient(135deg, #ff6a2b 0%, #e04018 100%);
  --pill: 9999px;
  --font-head: "Manrope", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text);
}
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--pill);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--surface-2); }

/* ── Content ─────────────────────────────────────────────── */
.legal-wrap { width: min(820px, 100% - 48px); margin: 0 auto; padding: 64px 0 96px; }
.legal-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-header .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(255, 106, 43, 0.1);
  border: 1px solid rgba(255, 106, 43, 0.25);
  padding: 5px 12px;
  border-radius: var(--pill);
  margin-bottom: 16px;
}
.legal-header h1 { font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.legal-header .updated { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

.legal-body h2 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  margin: 38px 0 14px;
  padding-top: 6px;
}
.legal-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { margin: 0 0 16px 20px; }
.legal-body li { color: var(--muted); margin-bottom: 8px; }
.legal-body a { word-break: break-all; }

.legal-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.legal-footer .back { color: var(--accent-1); font-weight: 600; }

@media (max-width: 768px) {
  .legal-header h1 { font-size: 27px; }
  .nav-links a { display: none; }
}
