/* ===== Legal Pages Stylesheet ===== */

:root {
  --legal-bg: #FAFBFC;
  --legal-surface: #FFFFFF;
  --legal-text: #1E293B;
  --legal-text-secondary: #475569;
  --legal-text-muted: #64748B;
  --legal-border: #E2E8F0;
  --legal-accent: #E85D26;
  --legal-link: #2563EB;
  --legal-heading: #0F172A;
  --legal-toc-bg: #F1F5F9;
}

.legal-page {
  background-color: var(--legal-bg);
  color: var(--legal-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.75;
}

.legal-page a {
  color: var(--legal-link);
  text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }

.legal-header {
  background: linear-gradient(135deg, #0B0D12 0%, #13162A 100%);
  padding: 54px 0;
  text-align: center;
  border-bottom: 4px solid var(--legal-border);
}

.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #F0F2F8;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-header p {
  font-size: 0.95rem;
  color: #A0A7B8;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--legal-text-muted);
  margin-bottom: 36px;
  font-style: italic;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--legal-border);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 24px 0 10px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--legal-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 8px 0 14px 20px;
  font-size: 0.95rem;
  color: var(--legal-text-secondary);
  line-height: 1.75;
}

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

.legal-content strong {
  color: var(--legal-heading);
  font-weight: 700;
}

.legal-toc {
  background: var(--legal-toc-bg);
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 0 0 16px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-toc li { margin-bottom: 6px; }

.legal-toc a {
  font-size: 0.9rem;
  color: var(--legal-link);
}

.legal-footer {
  background: var(--legal-bg);
  border-top: 1px solid var(--legal-border);
  padding: 32px 0;
  text-align: center;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer p {
  font-size: 0.85rem;
  color: var(--legal-text-muted);
  margin-bottom: 4px;
}

.legal-footer a {
  color: var(--legal-link);
  font-weight: 600;
}

.back-home {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--legal-link);
}

.back-home:hover { text-decoration: underline; }

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .legal-header h1 { font-size: 1.8rem; }
  .legal-content { padding: 32px 16px; }
  .legal-content .container { padding: 0 16px; }
  .legal-content h2 { font-size: 1.2rem; }
  .legal-toc { padding: 20px; }
}
