/* =========================================================
   Mumford Company — Terms of Service / Privacy Policy
   Works inside page.php (.default-page .wrap) — no custom
   padding-top needed (default-page already handles header offset).
   ========================================================= */

/* ---- Remove default-page content padding so legal layout takes over ---- */
body.page-tos-privacypolicy .default-page {
  padding-top: 120px;
  padding-bottom: 84px;
}

/* ---- Page heading — matches site standard (same as default-page__title) ---- */
.legal-head {
  padding: 6px 0 2px;
  text-align: center;
  margin-bottom: 40px;
}
.legal-head .page-title {
  font-family: var(--f-head);
  font-weight: 400;
  color: var(--forest);
  font-size: clamp(28px, 4vw, 44px); /* matches .default-page__title exactly */
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.15;
}
.legal-head .updated {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 16px 0 0;
}
.legal-head .title-rule {
  width: 120px;
  height: 3px;
  background: var(--forest);
  margin: 18px auto 0;
  border: 0;
}

/* ---- Centered document column ---- */
.legal-doc {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- Section card ---- */
.legal-section {
  background: #E7ECEF;
  border-radius: 16px;
  padding: 44px 52px 48px;
  margin-bottom: 30px;
  /* prevent layout shift on reveal animation */
  min-height: 60px;
}

/* H2 — major part heading */
.legal-section > h2 {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--forest);
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.22;
  letter-spacing: .005em;
  margin: 0 0 8px;
  padding: 0 0 18px;
  border-bottom: 2px solid rgba(46,125,75,.22);
}

/* H3 — numbered subsections */
.legal-section h3 {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 18.5px;
  letter-spacing: .005em;
  margin: 30px 0 10px;
}
.legal-section h3:first-of-type { margin-top: 24px; }

/* Body text */
.legal-section p { font-size: 16px; line-height: 1.78; color: var(--ink); margin: 0 0 16px; }
.legal-section p:last-child { margin-bottom: 0; }

/* Ordered lists */
.legal-section ol { margin: 0 0 16px; padding-left: 26px; }
.legal-section ol li { font-size: 16px; line-height: 1.74; color: var(--ink); margin: 0 0 12px; padding-left: 6px; }
.legal-section ol li::marker { font-family: var(--f-head); font-weight: 700; color: var(--forest); }
.legal-section ol ol { margin: 14px 0 6px; }

/* Unordered lists */
.legal-section ul { list-style: none; margin: 0 0 16px; padding: 0; }
.legal-section ul li {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.74;
  color: var(--ink);
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--forest);
  border-radius: 50%;
}

/* Closing note between sections */
.legal-note {
  text-align: center;
  font-style: italic;
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 4px auto 30px;
  max-width: 820px;
}

/* Contact footer block */
.legal-contact {
  max-width: 820px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
.legal-contact a { color: var(--forest); font-weight: 700; }
.legal-contact a:hover { text-decoration: underline; }

/* =========================================================
   PREVENT LAYOUT SHIFT DURING REVEAL ANIMATION
   ========================================================= */
.legal-section.reveal:not(.in):not(.always-in) {
  opacity: 0;
  transform: translateY(20px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 680px) {
  .legal-section { padding: 34px 24px 36px; }
  body.page-tos-privacypolicy .default-page { padding-top: 100px; }
}
