/* ===== LEGAL PAGES STYLESHEET ===== */
/* Shared by privacy.html and terms-of-service.html */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0C0C15;
  --bg-card: #151422;
  --bg-section: #12121E;
  --accent: #00D2FF;
  --accent-warm: #FFB74D;
  --text-light: #EDEBF8;
  --text-muted: #9996AA;
  --border: #2A273E;
  --border-light: #34304A;
  --white: #FFFFFF;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-warm); }

/* Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 12, 21, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-back {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-back:hover { color: var(--white); }

/* Header */
.legal-header {
  background: linear-gradient(135deg, #141322, #0F0D1A);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 48px;
  text-align: center;
}
.legal-header .header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal-header .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 100px;
}
.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.legal-header .effective-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Table of Contents */
.toc-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.toc-section .toc-inner {
  max-width: 800px;
  margin: 0 auto;
}
.toc-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.toc-list li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.toc-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--accent); }

/* ===== SCOPE ISOLATION ===== */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Main content */
.legal-content {
  padding: 64px 0 80px;
  background: var(--bg-dark);
}
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content section {
  margin-bottom: 40px;
  padding-top: 20px;
}
.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 16px 0 8px;
}
.legal-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 8px 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { word-break: break-all; }
.legal-content strong { color: var(--text-light); font-weight: 600; }

/* Footer */
.site-footer {
  background: #0A0A12;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.site-footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.site-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.site-footer a {
  color: var(--accent);
}
.site-footer a:hover { color: var(--accent-warm); }

/* Responsive */
@media (max-width: 768px) {
  .toc-list { columns: 1; }
  .legal-header { padding: 48px 24px 32px; }
  .legal-content { padding: 40px 0 60px; }
}
