/* =========================================================
   SAYYESNOW LEGAL STYLESHEET
   Light theme, yes-stamp magenta accent
   ========================================================= */

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

body.legal-page {
  background-color: #FAF8F3;
  color: #3C3C46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Scope isolation: never let home styling bleed into legal content */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Legal header — must be header/div, never section */
.legal-header {
  background-color: #FFFFFF;
  border-bottom: 8px dashed #B3356E;
  padding: 40px 0 32px;
  position: relative;
}
.legal-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.legal-header .legal-kicker {
  display: inline-block;
  background-color: #B3356E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.legal-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #A02A5E;
  margin-bottom: 10px;
}
.legal-header .legal-meta {
  color: #5E6670;
  font-size: 14px;
}
.legal-header .legal-back {
  display: inline-block;
  margin-top: 16px;
  color: #B3356E;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.legal-header .legal-back:hover { text-decoration: underline; }

/* Layout */
.legal-body {
  background-color: #FAF8F3;
  padding: 40px 0 12px;
}
.legal-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Table of contents */
.legal-toc {
  flex: 0 0 260px;
  background-color: #FFFFFF;
  border: 1px solid #E4DED2;
  border-top: 4px solid #B3356E;
  padding: 24px 20px;
  position: sticky;
  top: 24px;
}
.legal-toc h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2B2B33;
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}
.legal-toc li {
  margin-bottom: 8px;
  counter-increment: toc;
}
.legal-toc li::before {
  content: counter(toc) ".";
  color: #B3356E;
  font-weight: 700;
  margin-right: 8px;
}
.legal-toc a {
  color: #2B2B33;
  font-size: 14px;
  line-height: 1.4;
}
.legal-toc a:hover { color: #B3356E; text-decoration: underline; }

/* Content */
.legal-content {
  flex: 1 1 auto;
  max-width: 760px;
}

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

.legal-content h2 {
  font-size: 24px;
  color: #A02A5E;
  border-bottom: 1px solid #E4DED2;
  padding: 16px 0 8px;
  margin: 28px 0 14px;
  scroll-margin-top: 90px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 18px;
  color: #2B2B33;
  margin: 22px 0 8px;
}

.legal-content p {
  color: #3C3C46;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 16px 24px;
  color: #3C3C46;
}
.legal-content li { margin-bottom: 8px; }

.legal-content .back-top {
  display: inline-block;
  margin-top: 8px;
  color: #B3356E;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-content .back-top:hover { text-decoration: underline; }

/* Legal footer */
.legal-footer {
  background-color: #2B2B33;
  margin-top: 40px;
  padding: 36px 0;
}
.legal-footer .legal-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #E4DED2;
  font-size: 14px;
  line-height: 1.9;
}
.legal-footer a { color: #FFFFFF; }
.legal-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .legal-layout { flex-direction: column; }
  .legal-toc {
    flex: 1 1 auto;
    position: static;
    width: 100%;
  }
  .legal-header h1 { font-size: 28px; }
}
