/* ============================================================
   MMNTM REAL ESTATE, LLC — Shared Legal Stylesheet
   Used by privacy.html and terms-of-service.html only
   ============================================================ */

.legal-page {
  background-color: #F6F7F9;
  color: #1F2329;
  font-size: 16px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* Scope isolation: legal content sections must never inherit
   background colors that could paint over the legal text. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL HEADER
   ============================================================ */

.legal-header {
  background-color: #3A4048;
  color: #FFFFFF;
  padding: 56px 24px 52px;
}

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

.legal-wordmark {
  display: inline-block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
}

.legal-wordmark:hover {
  color: #C3CAD4;
}

.legal-kicker {
  margin-top: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C3CAD4;
}

.legal-header h1 {
  margin-top: 10px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #FFFFFF;
}

.legal-updated {
  margin-top: 14px;
  font-size: 14px;
  color: #C3CAD4;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

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

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

.toc {
  background-color: #FFFFFF;
  border: 1px solid #E4E8ED;
  border-radius: 12px;
  padding: 30px 32px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3A4048;
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  font-size: 15px;
  color: #3A4048;
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  color: #1F2329;
  text-decoration: underline;
}

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

.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1F2329;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #3A4048;
  margin: 26px 0 10px;
}

.legal-content p {
  font-size: 16px;
  color: #1F2329;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 4px 0 18px 24px;
}

.legal-content li {
  font-size: 16px;
  color: #1F2329;
  margin-bottom: 10px;
  line-height: 1.75;
}

.legal-content a {
  color: #3A4048;
  text-decoration: underline;
}

.legal-content strong {
  color: #1F2329;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E4E8ED;
  padding: 34px 24px;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-footer p {
  font-size: 14px;
  color: #3A4048;
}

.legal-footer a {
  font-size: 14px;
  color: #3A4048;
  font-weight: 700;
  text-decoration: none;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 34px;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .legal-content section {
    margin-bottom: 40px;
  }
}
