/* Legal document content — glass styling aligned with app theme */
.legal-page {
  background: var(--bg-deep);
}

.legal-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--gradient-hero-mesh);
}

.legal-page > * {
  position: relative;
  z-index: 1;
}

.legal-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.8125rem;
  font-family: var(--font);
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--accent);
  background: rgba(46, 230, 166, 0.08);
  border-color: rgba(46, 230, 166, 0.2);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.legal-content h2 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
  color: var(--accent);
  font-weight: 700;
}

.legal-content h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--text);
  font-weight: 600;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.7;
}

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

.legal-content strong {
  color: var(--text);
}

@media (max-width: 600px) {
  .legal-content {
    padding-top: 28px;
  }
}
