/* ============================================================
   GREEN PAVILION — Legal pages stylesheet
   Shared by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #F7F6F1;
  color: #1A1A1A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1A1A1A;
  background-color: #F7F6F1;
}

a {
  color: #134E4A;
  text-decoration: none;
}

a:hover {
  color: #0C3A37;
  text-decoration: underline;
}

/* Scope isolation: ensure legal content sections never inherit
   a dark homepage section background. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------------- Header ---------------- */
.legal-header {
  background-color: #134E4A;
  border-bottom: 4px solid #C9A24B;
}

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

.legal-header .legal-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A24B;
  margin-bottom: 10px;
}

.legal-header h1 {
  font-size: 38px;
  line-height: 1.2;
  color: #FFFFFF;
}

.legal-header .legal-meta {
  margin-top: 12px;
  font-size: 14px;
  color: #C9DFD8;
}

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

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

.legal-content h2 {
  font-size: 24px;
  line-height: 1.3;
  color: #134E4A;
  margin: 44px 0 14px;
  padding-top: 8px;
}

.legal-content h3 {
  font-size: 18px;
  color: #1A1A1A;
  margin: 24px 0 10px;
}

.legal-content p {
  margin-bottom: 16px;
  color: #2B2B27;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 24px;
  color: #2B2B27;
}

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

.legal-content strong {
  color: #134E4A;
}

/* Table of contents */
.legal-toc {
  background-color: #ECF0EA;
  border: 1px solid #D6D1C2;
  border-left: 4px solid #134E4A;
  border-radius: 4px;
  padding: 22px 26px;
  margin: 8px 0 32px;
}

.legal-toc h2 {
  margin-top: 0;
  padding-top: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #134E4A;
}

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

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

.legal-toc a {
  color: #134E4A;
}

/* ---------------- Footer ---------------- */
.legal-footer {
  background-color: #134E4A;
  padding: 28px 0;
  margin-top: 8px;
}

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

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

.legal-footer a:hover {
  color: #C9A24B;
}

.legal-footer span {
  color: #C9DFD8;
  font-size: 14px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 21px;
  }
}
