/* ============================================================
   PLANTED HEALTH — LEGAL PAGE STYLES (HIGH CONTRAST)
   ============================================================ */

.legal-page {
  background: #0f1f16;
  color: #EDEADE;
}

/* ---- HERO ---- */
.legal-hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, #0a1810 0%, #0f1f16 100%);
  border-bottom: 1px solid rgba(125, 175, 122, 0.18);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: 'LEGAL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 700;
  color: rgba(125, 175, 122, 0.05);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
}

.legal-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.legal-hero-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #7DAF7A;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: #EDEADE;
  line-height: 1.1;
  margin: 0 0 24px;
}

.legal-hero h1 em {
  font-style: italic;
  color: #7DAF7A;
}

.legal-hero p {
  font-family: var(--font-sans);
  font-size: 17px;
  color: rgba(237, 234, 222, 0.75);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- TABLE OF CONTENTS ---- */
.legal-toc-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

.legal-toc {
  background: rgba(125, 175, 122, 0.08);
  border: 1px solid rgba(125, 175, 122, 0.22);
  border-radius: 12px;
  padding: 36px 40px;
}

.legal-toc h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7DAF7A;
  margin: 0 0 20px;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  counter-reset: toc-counter;
}

.legal-toc ol li {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal-toc ol li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: #7DAF7A;
  opacity: 0.8;
  flex-shrink: 0;
}

.legal-toc a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: rgba(237, 234, 222, 0.82);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: #EDEADE;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ---- DISCLAIMER BODY ---- */
.legal-body {
  padding: 60px 0 100px;
}

.legal-section {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  padding: 52px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  scroll-margin-top: 120px;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: rgba(125, 175, 122, 0.35);
  line-height: 1;
  padding-top: 4px;
  text-align: right;
}

.legal-section-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #EDEADE;
  margin: 0 0 14px;
  line-height: 1.3;
}

.legal-section-content p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: rgba(237, 234, 222, 0.82);
  line-height: 1.85;
  margin: 0;
}

.legal-section-content a {
  color: #7DAF7A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section-content a:hover {
  color: #EDEADE;
}

/* Alternating subtle background for easier scanning */
.legal-section:nth-child(even) {
  background: rgba(255,255,255,0.015);
  border-radius: 8px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

@media (max-width: 640px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }

  .legal-section-num {
    font-size: 26px;
    text-align: left;
  }

  .legal-container {
    padding: 0 20px;
  }

  .legal-hero-inner {
    padding: 0 20px;
  }

  .legal-toc {
    padding: 24px 20px;
  }
}
