/* ============================================================
   MATTHEWS.XYZ — shared legal stylesheet (privacy + terms)
   Loaded by legal pages ONLY (not style.css).
   ============================================================ */

.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #C6F63E;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ---------- Header (NOT a <section>, must keep its background) ---------- */
.legal-header {
  background: linear-gradient(135deg, #0F141F 0%, #121a14 55%, #131022 100%);
  border-bottom: 1px solid #252E44;
  padding: 72px 24px 48px;
  text-align: center;
}

.legal-header .crumb {
  display: inline-block;
  color: #9BA5B7;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.legal-header .sub {
  margin: 14px auto 0;
  max-width: 640px;
  color: #9BA5B7;
  font-size: 1rem;
}

.legal-header .meta {
  margin-top: 18px;
  color: #C6F63E;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Content wrapper ---------- */
.legal-content {
  padding: 48px 0 56px;
}

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

/* Scope isolation: never let homepage section styling bleed in */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  color: #F3F4F6;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 800;
}

.legal-content h3 {
  color: #E8EAED;
  font-size: 1.12rem;
  margin: 22px 0 10px;
  font-weight: 700;
}

.legal-content p {
  color: #C6CBD4;
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #C6CBD4;
}

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

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #151B2A;
  border: 1px solid #252E44;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C6F63E;
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  color: #C6CBD4;
  column-count: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.legal-toc a {
  color: #C6CBD4;
}

.legal-toc a:hover {
  color: #C6F63E;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0F141F;
  border-top: 1px solid #252E44;
  padding: 32px 24px;
  text-align: center;
  color: #9BA5B7;
  font-size: 0.9rem;
}

.legal-footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.legal-footer .links a {
  color: #E8EAED;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-toc ol {
    column-count: 1;
  }
}
