:root {
  --teal: #0d6e7a;
  --teal-light: #14b8a6;
  --bg: #030712;
  --bg-card: rgba(15, 23, 42, 0.78);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --amber: #fbbf24;
}

* { box-sizing: border-box; }

body.legal-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.legal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(13, 110, 122, 0.28), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(59, 130, 246, 0.08), transparent);
}

.legal-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-nav a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
}

.legal-nav a.back {
  color: var(--teal-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-nav a.back:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

.legal-doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-doc .updated {
  margin: 0 0 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-light);
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 12px;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.92rem;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc a {
  color: var(--teal-light);
  font-weight: 600;
  text-decoration: none;
}

.legal-doc a:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--teal-light);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

.site-footer-risk {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fcd34d;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer-links {
  margin: 0 0 10px;
}

.site-footer-contact {
  margin: 0 0 10px;
}

.site-footer-links span {
  color: rgba(148, 163, 184, 0.5);
  margin: 0 6px;
}

.site-footer-credit {
  margin: 0 0 6px;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 24px 18px;
  }
}
