/* -----------------------------------------------
   MOMOFAWN — Legal stylesheet (privacy + terms)
   Loaded ONLY by legal pages via /css/legal.css
   Light almond-milk theme
----------------------------------------------- */

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

.legal-page {
  background-color: #FBF7F0;
  color: #4A4038;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.legal-page a { color: #8A5A33; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* ===== legal header (div element, solid background) ===== */
.legal-header {
  background-color: #8A5A33;
  color: #FFFDF8;
  padding: 56px 0 46px;
}

.legal-header .inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: #FFFDF8;
  margin-bottom: 12px;
}

.legal-header .legal-updated {
  font-size: 15px;
  color: #FFFDF8;
}

.legal-header .legal-home {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  background-color: #FFFDF8;
  color: #8A5A33;
  border-radius: 999px;
}

.legal-header .legal-home:hover { background-color: #EDE4D5; }

/* ===== layout ===== */
.legal-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

/* ===== table of contents ===== */
.legal-toc {
  position: sticky;
  top: 24px;
  align-self: start;
}

.legal-toc nav.toc {
  background-color: #FFFDF8;
  border: 1px solid #EDE4D5;
  border-radius: 10px;
  padding: 22px;
}

.legal-toc .toc-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8A5A33;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EDE4D5;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.legal-toc a {
  font-size: 14px;
  color: #4A4038;
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
}

.legal-toc a:hover {
  background-color: #D9E4C8;
  color: #3B3229;
}

/* ===== content ===== */
.legal-content .content-inner {
  max-width: 780px;
}

.legal-content section {
  margin-bottom: 40px;
  background-color: transparent !important;
}

.legal-content h2 {
  font-size: 27px;
  color: #6E4A28;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EDE4D5;
  scroll-margin-top: 20px;
}

.legal-content h3 {
  font-size: 20px;
  color: #4A4038;
  margin: 26px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
  color: #4A4038;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #4A4038;
}

.legal-content .legal-intro {
  font-size: 18px;
  background-color: #FFFDF8;
  border: 1px solid #EDE4D5;
  border-left: 4px solid #B07A4A;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 36px;
}

.legal-content .legal-intro p { margin-bottom: 8px; }
.legal-content .legal-intro p:last-child { margin-bottom: 0; }

.legal-content .callout {
  background-color: #D9E4C8;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}

.legal-content .callout h3 {
  color: #3B3229;
  margin-top: 0;
}

.legal-content .callout p { color: #3B3229; }

.legal-content address {
  font-style: normal;
  background-color: #FFFDF8;
  border: 1px solid #EDE4D5;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0;
  color: #4A4038;
  line-height: 1.8;
}

/* back-to-top link */
.legal-backtop {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 700;
  color: #8A5A33;
}

/* scope isolation: only legal content sections transparent */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* any content container with max-width centering */
.legal-content .content-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

/* ===== legal footer ===== */
.legal-footer {
  width: 100%;
  background-color: #3B3229;
  color: #EDE4D5;
  padding: 40px 0;
}

.legal-footer .inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer .brand {
  color: #FFFDF8;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 12px;
}

.legal-footer p { font-size: 14px; margin-bottom: 6px; }
.legal-footer a { color: #EDE4D5; }
.legal-footer a:hover { color: #FFFFFF; text-decoration: underline; }

/* ===== responsive ===== */
@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 32px 20px 50px;
  }
  .legal-toc {
    position: static;
    margin-bottom: 8px;
  }
  .legal-content h2 { font-size: 24px; }
}
