/* ============================================================
   LEGAL PAGES - PRO-HEALTH BLESSING LIMITED
   Standalone stylesheet loaded ONLY by /privacy and
   /terms-of-service. Uses a calm paper palette with strong text
   contrast on a linen ground.
   ============================================================ */

/* Scope isolation: this stylesheet is never co-loaded with the
   main site stylesheet, yet guard against any stray inherited or
   future widget backgrounds within the legal reading area. */
.legal-page .legal-content section {
  background: transparent !important;
}

:root {
  --legal-paper: #F6F2E8;
  --legal-ink: #292621;
  --legal-muted: #51493C;
  --legal-rose: #A85D50;
  --legal-line: #D9CDB4;
  --legal-slab: #FCFAF3;
  --legal-dark: #35312A;
  --legal-foot: #2E2A24;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--legal-ink);
  background-color: var(--legal-paper);
  font-family: 'Trebuchet MS', 'Gill Sans', 'Segoe UI', 'Verdana', sans-serif;
}

a {
  color: var(--legal-rose);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- top legal header, solid background, strong h1 contrast --- */
.legal-header {
  background-color: var(--legal-dark);
  color: #F3EEDF;
}

.legal-header .legal-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 24px 24px;
}

.legal-header .home-recall {
  color: #c9b391;
}

.legal-header .home-recall a {
  color: #F3EEDF;
  font-weight: 700;
}

.legal-header h1 {
  font-size: 40px;
  line-height: 1.15;
  color: #FCFAF3;
  margin: 12px 0 8px;
}

.legal-header .company-line {
  color: #c4b391;
  font-size: 15px;
}

/* table of contents */
.toc {
  background-color: var(--legal-slab);
  border: 1px solid var(--legal-line);
  border-left: 4px solid var(--legal-rose);
  max-width: 940px;
  margin: 26px auto;
  padding: 22px 30px;
  border-radius: 8px 8px 0 0;
}

.toc h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--legal-rose);
  margin-bottom: 14px;
}

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

.toc a {
  color: var(--legal-muted);
  display: inline-block;
  padding: 3px 0;
  font-size: 15px;
}

.toc a:hover {
  color: var(--legal-rose);
}

/* main reading body */
body {
  background-color: var(--legal-paper);
}

.legal-content-wrap {
  background-color: var(--legal-paper);
}

.legal-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 24px 30px;
}

.legal-content section {
  margin: 0 0 30px;
  padding-top: 6px;
}

.legal-content section h2 {
  font-size: 23px;
  color: var(--legal-ink);
  border-bottom: 2px solid var(--legal-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}

.legal-content section p {
  color: var(--legal-muted);
  margin: 10px 0;
}

.legal-content section h3 {
  font-size: 18px;
  color: var(--legal-ink);
  margin: 16px 0 6px;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 10px 22px;
  color: var(--legal-muted);
  list-style-position: outside;
}

.legal-content ul {
  list-style: none;
}

.legal-content ul li {
  padding-left: 20px;
  position: relative;
  margin: 7px 0;
}

.legal-content ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--legal-rose);
  font-weight: 800;
}

.legal-content ol li {
  margin: 8px 0 8px 4px;
  list-style-type: decimal;
}

.intro-para {
  background-color: var(--legal-slab);
  border: 1px solid var(--legal-line);
  border-radius: 8px;
  padding: 20px 24px;
  color: var(--legal-ink);
}

.intro-para strong {
  color: var(--legal-rose);
}

.back-top {
  display: inline-block;
  text-align: center;
  margin: 6px auto 20px;
  color: var(--legal-rose);
  font-weight: 700;
}

.back-top:hover {
  text-decoration: underline;
}

.back-home-band {
  max-width: 940px;
  margin: 0 auto 30px;
  padding: 0 24px;
  text-align: center;
}

.back-home {
  display: inline-block;
  background-color: var(--legal-dark);
  color: #FCFAF3;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 1px;
}



.back-home:hover {
  background-color: var(--legal-rose);
  text-decoration: none;
}

/* footer */
.legal-footer {
  border-top: 6px solid var(--legal-dark);
  background-color: var(--legal-paper);
}

.legal-footer .footer-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 24px 24px;
  text-align: center;
  color: var(--legal-muted);
}

.legal-footer .footer-inner strong {
  display: block;
  color: var(--legal-rose);
  font-size: 17px;
  margin-bottom: 4px;
}

.legal-footer .footer-inner p {
  margin: 4px 0;
}

.legal-footer a {
  color: var(--legal-rose);
  font-weight: 700;
}

.legal-cr {
  border-top: 1px solid var(--legal-line);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 14px;
  color: var(--legal-rose);
}

/* responsive ToC */
@media (max-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
  .legal-header h1 {
    font-size: 30px;
  }
  .legal-content {
    padding: 6px 24px 24px;
  }
  .legal-footer .footer-inner {
    padding: 26px 24px 20px;
  }
}

/* no wasted padding at the very bottom of the page */
.legal-footer .footer-inner:last-child {
  padding-bottom: 26px;
}
