/* ============================================================
   HUTCHROOTS — Legal page stylesheet (privacy / terms)
   Light orchard-cream theme matching the main site.
   Loaded ONLY on legal pages.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-size: 16px;
  line-height: 1.8;
  color: #33301F;
  background-color: #F7F3E6;
  overflow-x: hidden;
}

a {
  color: #5F7C3A;
  text-decoration: underline;
}

/* Scope isolation: nothing inside the content sections
   inherits a background from elsewhere. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal header ---------- */
.legal-page header.legal-header {
  width: 100%;
  background-color: #33301F;
  padding: 22px 0;
}

.legal-page .legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.legal-page .legal-header-inner .legal-home {
  display: inline-block;
  color: #D9A441;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
}

.legal-page .legal-header-inner .legal-home:hover {
  color: #FCFAF1;
  text-decoration: underline;
}

.legal-page .legal-header-inner .legal-home::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 11px;
  background-color: #5F7C3A;
  border-radius: 0 12px 0 12px;
  margin-right: 8px;
}

/* The h1 color contrasts strongly with the dark header. */
.legal-page .legal-header h1 {
  color: #FCFAF1;
  font-size: 34px;
  line-height: 1.15;
  font-family: Georgia, serif;
  font-weight: 700;
}

.legal-page .legal-header .legal-updated {
  display: block;
  color: #CDC5AF;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ---------- Legal content container ---------- */
.legal-page .legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Legal content ---------- */
.legal-page .legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.legal-page .legal-lead {
  color: #5C5138;
  font-size: 18px;
  line-height: 1.85;
  background-color: #FCFAF1;
  border: 1px solid #E2DCC6;
  border-left: 4px solid #A97E3F;
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 36px;
}

.legal-page .legal-lead p {
  margin-bottom: 10px;
}

.legal-page .legal-lead p:last-child {
  margin-bottom: 0;
}

/* ---------- Table of contents ---------- */
.legal-page .legal-toc {
  background-color: #FCFAF1;
  border: 1px solid #E2DCC6;
  border-radius: 5px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.legal-page .legal-toc h2 {
  font-size: 19px;
  color: #33301F;
  font-family: Georgia, serif;
  margin-bottom: 14px;
}

.legal-page .legal-toc ol {
  margin-left: 20px;
  color: #5C5138;
}

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

.legal-page .legal-toc a {
  color: #5F7C3A;
  text-decoration: none;
  border-bottom: 1px solid #CDC5AF;
}

.legal-page .legal-toc a:hover {
  color: #4A4330;
  border-bottom-color: #5F7C3A;
}

/* ---------- Legal sections ---------- */
.legal-page .legal-content section {
  margin-bottom: 34px;
}

.legal-page .legal-content h2 {
  font-size: 22px;
  color: #5F7C3A;
  font-family: Georgia, serif;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2DCC6;
}

.legal-page .legal-content h3 {
  font-size: 18px;
  color: #33301F;
  font-family: Georgia, serif;
  margin: 16px 0 8px;
}

.legal-page .legal-content p {
  color: #33301F;
  margin-bottom: 14px;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 16px 24px;
  color: #33301F;
}

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

.legal-page .legal-content strong {
  color: #5F7C3A;
}

/* ---------- Legal footer ---------- */
.legal-page footer.legal-footer {
  background-color: #232014;
  padding: 34px 0 26px;
}

.legal-page .legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.legal-page .legal-footer-inner .legal-back-home {
  color: #FCFAF1;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

.legal-page .legal-footer-inner .legal-back-home:hover {
  text-decoration: underline;
}

.legal-page .legal-footer-inner .legal-hr {
  width: 46px;
  height: 3px;
  background-color: #A97E3F;
  border: 0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.legal-page .legal-footer-inner .legal-address {
  color: #CDC5AF;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-page .legal-header h1 {
    font-size: 26px;
  }
  .legal-page .legal-content h2 {
    font-size: 20px;
  }
  .legal-page .legal-lead {
    font-size: 16px;
    padding: 16px 18px;
  }
}
