/* ==========================================================================
   RealHarvest — shared legal stylesheet (privacy.html / terms-of-service.html)
   Dark theme · golden accent · loaded ONLY by legal pages
   ========================================================================== */

.legal-page {
  background-color: #11130F;
  color: #F5F1E6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 16px;
}

.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

.legal-page h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #FDE68A;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #2A2E24;
}

.legal-page h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #F5F1E6;
  margin-top: 26px;
}

.legal-page p {
  color: #C9C5B6;
  margin: 0 0 16px;
}

.legal-page ul,
.legal-page ol {
  color: #C9C5B6;
  margin: 0 0 16px 0;
  padding-left: 24px;
}

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

.legal-page a {
  color: #EAB308;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: #FDE68A;
}

.legal-page strong {
  color: #F5F1E6;
}

/* Header — solid/gold gradient, dark title text for strong contrast */
.legal-header {
  background: linear-gradient(135deg, #EAB308 0%, #FDE68A 60%, #EAB308 100%);
  border-bottom: 1px solid #CA8A04;
  padding: 64px 0 48px;
}

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

.legal-header .legal-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4A3A00;
  margin-bottom: 14px;
}

.legal-header h1 {
  color: #11130F;
  margin-bottom: 14px;
}

.legal-header .legal-meta {
  color: #3A2E00;
  font-size: 0.98rem;
  margin: 0;
}

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

/* Scope isolation — legal body content sections never paint dark backgrounds
   over the text that a shared selector might otherwise target */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

/* Table of contents */
.toc {
  background-color: #171A14;
  border: 1px solid #3A3F31;
  border-left: 4px solid #EAB308;
  border-radius: 10px;
  padding: 24px 26px;
  margin: 8px 0 40px;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FDE68A;
  margin-bottom: 14px;
}

.toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
  columns: 1;
}

.toc li {
  margin-bottom: 6px;
  color: #C9C5B6;
}

.toc a {
  color: #F5F1E6;
  text-decoration: none;
}

.toc a:hover {
  color: #EAB308;
}

/* Footer link back to homepage */
.legal-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #2A2E24;
  text-align: center;
}

.back-home {
  display: inline-block;
  color: #F5F1E6;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid #EAB308;
  border-radius: 999px;
  padding: 12px 28px;
}

.back-home:hover {
  background-color: #EAB308;
  color: #11130F;
}

.legal-footer .legal-crumb {
  display: block;
  margin-top: 18px;
  color: #C9C5B6;
  font-size: 0.85rem;
}

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

  .legal-page h2 {
    font-size: 1.32rem;
  }

  .legal-header {
    padding: 44px 0 36px;
  }

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