/* ============================================================
   GFC Pharma LLC — legal pages shared stylesheet
   Loaded only by privacy.html and terms-of-service.html
   LIGHT clean-bench theme with vial-jade contrast headings
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background-color: #F8FAF7;   /* clean-bench */
  color: #26302A;              /* bench-ink body */
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scope to the legal body content container only */
.legal-page {
  background-color: #F8FAF7;
  color: #26302A;
}
.legal-page a { color: #2F6B52; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* ============================================================
   Header — solid dark bench-ink so h1 contrast is strong
   MUST be <div>/<header>, never a <section>
   ============================================================ */
.legal-page .legal-head {
  background-color: #26302A;   /* bench-ink */
  padding: 90px 8vw 110px;
  position: relative;
  overflow: visible;
}
.legal-page .legal-head .legal-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.legal-page .legal-head .brand-rule {
  color: #8E9A93;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 30px;
}
.legal-page .legal-head h1 {
  color: #FFFFFF;              /* gown-white */
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.legal-page .legal-head .legal-meta {
  margin-top: 22px;
  color: #C9D6CE;
  font-size: 15px;
}
.legal-page .legal-head .legal-meta .meta-item {
  display: inline-block;
  margin-right: 28px;
}
.legal-page .legal-head .back-home {
  display: inline-block;
  margin-top: 30px;
  border: 1px solid #2F6B52;
  color: #A9E0C3;
  font-family: monospace;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px 20px;
}
.legal-page .legal-head .back-home:hover { background-color: #2F6B52; color: #FFFFFF; text-decoration: none; }

/* ============================================================
   Content body
   ============================================================ */
.legal-page .legal-content {
  padding: 70px 8vw 220px;
}
.legal-page .legal-content .legal-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents card */
.legal-page .toc-box {
  background-color: #EBF1ED;   /* tray-steel */
  padding: 30px 34px;
  margin-bottom: 60px;
}
.legal-page .toc-box .toc-title {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2F6B52;
  margin-bottom: 18px;
}
.legal-page .toc-box nav.toc ul {
  list-style: none;
  column-count: 2;
  column-gap: 40px;
}
.legal-page .toc-box nav.toc ul li { margin-bottom: 10px; }
.legal-page .toc-box nav.toc ul a {
  color: #3A4640;
  font-size: 15px;
  border-bottom: 1px solid transparent;
}
.legal-page .toc-box nav.toc ul a:hover { border-bottom-color: #2F6B52; text-decoration: none; color: #2F6B52; }

/* Scope isolation rule */
.legal-page .legal-content section { background-color: transparent !important; }

/* ============================================================
   Section styling
   ============================================================ */
.legal-content section.legal-section {
  margin-bottom: 46px;
  padding-top: 8px;
}
.legal-content h2.legal-h2 {
  color: #2F6B52;              /* vial-jade (deepened contrast on light) */
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 16px;
  scroll-margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #DCE5DE;
}
.legal-content .legal-subflag {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8E9A93;
  margin-bottom: 8px;
}
.legal-content h3.legal-h3 {
  color: #26302A;
  font-size: 19px;
  margin: 22px 0 10px;
}
.legal-content p {
  color: #3A4640;
  font-size: 16px;
  margin-bottom: 16px;
}
.legal-content p.lead {
  color: #3A4640;
  font-size: 18px;
}
.legal-content ul.legal-list {
  margin: 10px 0 20px 22px;
  padding: 0;
}
.legal-content ul.legal-list li {
  color: #3A4640;
  margin-bottom: 12px;
}
.legal-content ul.legal-list li::marker { color: #2F6B52; }
.legal-content ol.legal-ol {
  margin: 10px 0 20px 22px;
  padding: 0;
}
.legal-content ol.legal-ol li { color: #3A4640; margin-bottom: 12px; }

.legal-content .address-card {
  background-color: #FFFFFF;
  border-left: 4px solid #2F6B52;
  padding: 24px 28px;
  margin: 20px 0;
}
.legal-content .address-card p { margin-bottom: 6px; color: #26302A; }

.legal-content .contact-details {
  background-color: #EBF1ED;
  padding: 22px 28px;
  margin: 20px 0;
}
.legal-content .contact-details p { margin-bottom: 6px; color: #26302A; }

.legal-content .waypoint { scroll-margin-top: 12px; }

/* Back to top / homepage links */
.legal-content .legal-footer-links {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid #DCE5DE;
}
.legal-content .legal-footer-links a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 26px;
  font-weight: 600;
}
.legal-content .legal-footer-links .to-top { color: #4E7FB0; }

/* ============================================================
   Footer (legal) — left-aligned, light text on dark
   ============================================================ */
.legal-page .legal-foot {
  background-color: #26302A;
  padding: 56px 8vw 90px;
  position: relative;
  z-index: 1;
}
.legal-page .legal-foot .foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.legal-page .legal-foot .foot-mark {
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.legal-page .legal-foot .foot-links-legal {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.legal-page .legal-foot .foot-links-legal a {
  color: #F4F7F2;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.legal-page .legal-foot .foot-links-legal a:hover { color: #FFFFFF; }
.legal-page .legal-foot .foot-legal {
  color: #8E9A93;
  font-size: 14px;
  line-height: 2;
}
.legal-page .legal-foot .foot-legal a { color: #8E9A93; }
.legal-page .legal-foot .foot-legal a:hover { color: #FFFFFF; }

/* ============================================================
   No wasted bottom padding — content ends clean before </html>
   ============================================================ */
.legal-page .legal-content { padding-bottom: 60px; }

@media (max-width: 800px) {
  .legal-page .toc-box nav.toc ul { column-count: 1; }
  .legal-page .legal-head h1 { font-size: 32px; }
  .legal-page .legal-head, .legal-page .legal-content, .legal-page .legal-foot { padding-left: 5vw; padding-right: 5vw; }
}
