/* ============================================================
   OZOPLED — Shared Legal Stylesheet (privacy.html / terms-of-service.html)
   Legal pages load ONLY this stylesheet, never style.css
   DARK theme · FOREST GREEN accent #166534
   ============================================================ */

.legal-page {
  background-color: #0C1012;
  color: #EAF2EE;
}

:root {
  --legal-bg: #0C1012;
  --legal-panel: #0B1F14;
  --legal-surface: #101815;
  --legal-text: #EAF2EE;
  --legal-muted: #9FB8AC;
  --legal-faint: #6E857B;
  --legal-accent: #166534;
  --legal-accent-strong: #15803D;
  --legal-accent-soft: #86EFAC;
  --legal-line: #22332b;
  --legal-line-soft: #1a2822;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.legal-page body,
body {
  font-size: 16px;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #EAF2EE;
  background-color: #0C1012;
}

a {
  color: #86EFAC;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header (must be <header> or <div>, never a <section>) ---------- */

.legal-header {
  background: linear-gradient(135deg, #0e2b1b 0%, #166534 100%);
  padding: 72px 0 60px;
  border-bottom: 1px solid #1a2822;
}

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

.legal-header .crumb {
  display: inline-block;
  margin-bottom: 20px;
  color: #86EFAC;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-header h1 {
  color: #EAF2EE;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-header .subtitle {
  color: #EAF2EE;
  font-size: 1.05rem;
  max-width: 720px;
}

/* ---------- Content container (max-width must set margin auto + padding) ---------- */

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

.legal-content {
  padding: 48px 0 72px;
}

/* ---------- Table of contents ---------- */

.legal-toc {
  background-color: #101815;
  border: 1px solid #22332b;
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  color: #86EFAC;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
  counter-reset: toc;
}

.legal-toc ol li {
  counter-increment: toc;
}

.legal-toc ol li a {
  color: #9FB8AC;
  font-size: 0.95rem;
  display: inline-flex;
  gap: 10px;
  transition: color 0.2s ease;
}

.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: #15803D;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.legal-toc ol li a:hover {
  color: #EAF2EE;
  text-decoration: none;
}

/* ---------- Sections ---------- */

.legal-content section {
  margin-bottom: 48px;
  padding-bottom: 8px;
}

.legal-content section h2 {
  color: #EAF2EE;
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a2822;
  scroll-margin-top: 24px;
}

.legal-content section h3 {
  color: #86EFAC;
  font-size: 1.12rem;
  margin: 24px 0 12px;
}

.legal-content section p {
  color: #9FB8AC;
  font-size: 1rem;
  margin-bottom: 16px;
}

.legal-content section ul,
.legal-content section ol {
  color: #9FB8AC;
  margin: 0 0 18px 24px;
  display: grid;
  gap: 8px;
}

.legal-content section li {
  font-size: 1rem;
}

.legal-content section strong {
  color: #EAF2EE;
}

.legal-content section a {
  color: #86EFAC;
}

/* ---------- Scope isolation: never leak homepage section backgrounds here ---------- */

.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Footer ---------- */

.legal-footer {
  background-color: #090d0e;
  border-top: 1px solid #1a2822;
  padding: 40px 0;
}

.legal-footer .footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  color: #6E857B;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #86EFAC;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .legal-header {
    padding: 56px 20px 44px;
  }
}
