/* ─────────────────────────────────────────────────────────────
   Basta — pages/privacy.css
   Standalone Privacy Policy page - legal document styling
   ───────────────────────────────────────────────────────────── */

/* ─── PAGE HERO ─────────────────────────────────────────────── */
.legal-hero {
  padding: 140px 0 56px;
  background: var(--cream);
  text-align: center;
  border-bottom: 1px solid rgba(92, 107, 58, 0.1);
}
.legal-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}
.legal-headline {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.legal-headline em {
  font-style: italic;
  color: var(--olive);
}
.legal-dates {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.legal-dates .date-label {
  color: var(--terracotta);
  margin-right: 6px;
}

/* ─── LEGAL DOCUMENT BODY ─────────────────────────────────── */
.legal-body {
  padding: 72px 0 96px;
  background: var(--cream);
}
.legal-body-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--bark-light);
}

.legal-body-inner .intro {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--bark-light);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(92, 107, 58, 0.1);
}
.legal-body-inner .intro strong {
  color: var(--bark);
  font-weight: 500;
}

.legal-body-inner h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--bark);
  margin-top: 56px;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.legal-body-inner h2:first-of-type {
  margin-top: 0;
}
.legal-body-inner h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--bark);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.legal-body-inner p {
  margin-bottom: 18px;
  color: var(--bark-light);
}
.legal-body-inner p strong {
  font-weight: 500;
  color: var(--bark);
}
.legal-body-inner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.legal-body-inner ul li {
  padding-left: 24px;
  margin-bottom: 10px;
  position: relative;
  line-height: 1.75;
}
.legal-body-inner ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--olive);
  font-size: 22px;
  line-height: 1;
}
.legal-body-inner ol {
  padding-left: 24px;
  margin: 0 0 24px 0;
}
.legal-body-inner ol li {
  margin-bottom: 10px;
  padding-left: 6px;
  line-height: 1.75;
}
.legal-body-inner ol li::marker {
  color: var(--olive);
  font-weight: 500;
}
.legal-body-inner a {
  color: var(--olive);
  border-bottom: 1px solid rgba(92, 107, 58, 0.3);
  transition: all var(--transition);
}
.legal-body-inner a:hover {
  color: var(--olive-light);
  border-bottom-color: var(--olive);
}

/* ─── CONTACT BLOCK ────────────────────────────────────────── */
.legal-contact-block {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--cream-dark);
  border-left: 3px solid var(--olive);
  border-radius: 4px;
}
.legal-contact-block p {
  margin-bottom: 8px;
}
.legal-contact-block p:last-child {
  margin-bottom: 0;
}
.legal-contact-block strong {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--bark);
  font-weight: 600;
}

/* ─── TABLE OF CONTENTS (sticky sidebar on desktop) ────────── */
.legal-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-top: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(196, 103, 58, 0.18);
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc ul li {
  margin-bottom: 8px;
}
.legal-toc ul li a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--warm-grey);
  border-bottom: none;
  transition: color var(--transition);
  display: block;
  padding: 4px 0;
}
.legal-toc ul li a:hover {
  color: var(--olive);
  border-bottom: none;
}
.legal-toc ul li a .toc-num {
  display: inline-block;
  width: 20px;
  font-family: var(--font-mono);
  color: var(--olive-muted);
  font-size: 11px;
}

/* ─── SCROLL TARGETS ───────────────────────────────────────── */
.legal-body-inner h2 {
  scroll-margin-top: 90px;
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-hero { padding: 110px 0 40px; }
  .legal-body { padding: 48px 0 72px; }

  .legal-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: relative;
    top: auto;
    max-height: none;
    padding: 20px 24px;
    background: var(--cream-dark);
    border-radius: 8px;
  }

  .legal-body-inner h2 {
    margin-top: 40px;
    font-size: var(--fs-lg);
  }
  .legal-body-inner h3 {
    margin-top: 24px;
    font-size: var(--fs-md);
  }
  .legal-contact-block {
    padding: 20px 22px;
  }
  .legal-dates {
    gap: 16px;
    flex-direction: column;
  }
}
