/* ===== LEGAL PAGES (privacy, terms, legal) ===== */
body.legal-page { background: #0a0a0f; }

.legal-content {
  padding: 120px 0 80px;
  position: relative;
}
.legal-content::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,222,128,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* TOC sidebar */
.legal-toc {
  position: relative;
}
.toc-inner {
  position: sticky;
  top: 90px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}
.toc-inner h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  margin-bottom: 12px;
}
.toc-inner a {
  display: block;
  font-size: 13px;
  color: #b7b7c2;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
  transition: all 0.15s;
}
.toc-inner a:hover {
  color: #fff;
  border-left-color: #4ade80;
}

/* Body */
.legal-body {
  max-width: 760px;
}
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-header .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  display: inline-block;
  margin-bottom: 12px;
}
.legal-header h1 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}
.legal-meta {
  font-size: 14px;
  color: #b7b7c2;
}
.legal-meta strong { color: #fff; }

/* Sections */
.legal-body section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}
.legal-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: #fff;
}
.legal-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #f0f0f5;
}
.legal-body p {
  color: #d8d8e2;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  color: #d8d8e2;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: #4ade80; text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: #22d3ee; }

.callout {
  background: rgba(74, 222, 128, 0.08);
  border-left: 3px solid #4ade80;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px !important;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  overflow: hidden;
}
.legal-table th {
  background: rgba(74, 222, 128, 0.08);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.legal-table td {
  padding: 12px 16px;
  color: #d8d8e2;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.legal-table tr:last-child td { border-bottom: none; }

/* Mobile */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { display: none; }
  .legal-header h1 { font-size: 32px; }
  .legal-body h2 { font-size: 22px; }
  .legal-content { padding: 90px 0 60px; }
}
