/* ============================================================
   PRIVACY POLICY PAGE STYLES — Blue Rose Financial
   ============================================================ */


/* ── Hero (reuses sect-hero-compact from insights.css) ─────── */
/* No additional hero styles needed — link insights.css         */


/* ── Legal content section ───────────────────────────────────── */
.sect-legal-content {
  background-color: var(--color-white);
}


/* ── Two-column layout ───────────────────────────────────────── */
.legal-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

.legal-toc {
  flex: 0 0 max-content;
  min-width: 0;
}

.legal-content {
  flex: 0 0 860px;
  min-width: 0;
}


/* ── Table of Contents ───────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 90px;
      max-width: 400px;
}

.legal-toc__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-bg-dark);
  margin-bottom: 24px;
}

.legal-toc__list-wrap {
  border-left: 1px solid #51617A;
  padding-left: 24px;
}

.legal-toc__ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc-top;
}

/* Top-level items */
.legal-toc__ol>li {
  counter-increment: toc-top;
}

.legal-toc__ol>li>a {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-bg-dark);
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.legal-toc__ol>li>a:hover {
  opacity: 0.65;
}

/* Nested lists */
.legal-toc__ol ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  counter-reset: toc-sub;
  margin-top: 2px;
}

.legal-toc__ol ol li {
  counter-increment: toc-sub;
}

.legal-toc__ol ol li a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: #51617A;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.2s;
}

.legal-toc__ol ol li a:hover {
  color: var(--color-bg-dark);
}

.legal-toc__ol ol ol {
  padding-left: 16px;
}

.legal-toc__ol ol ol li a {
  font-size: 12px;
  color: #838F9F;
}


/* ── Legal content (right column) ────────────────────────────── */
.legal-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 60px;
}

.legal-section__stripe {
  width: 6px;
  height: 38px;
  flex-shrink: 0;
  margin-top: 43px;
  /* align with heading cap height */
}

.legal-section__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-bg-dark);
}

.legal-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-section__body :where(h1, h2) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  color: var(--color-bg-dark);
}

.legal-section__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-bg-dark);
}

.legal-section__body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-bg-dark);
}

.legal-section__body h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-bg-dark);
}

.legal-section__body h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-bg-dark);
}

.legal-section__body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

.legal-section__body :where(ol, ul) {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
  padding-left: 24px;
  list-style-position: inside;
}

.legal-section__body ol {
  list-style: decimal;
}

.legal-section__body ul {
  list-style: disc;
}

.legal-section__body li:not(:last-child) {
  margin-bottom: 12px;
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .legal-content {
    flex: 1 1 auto;
  }

  .legal-toc__title {
    font-size: 18px;
  }

  .legal-toc__ol>li>a {
    font-size: 13px;
  }

  .legal-section__heading {
    font-size: 26px;
    line-height: 32px;
  }

  .legal-section__body :where(h1, h2) {
    font-size: 34px;
    line-height: 40px;
  }

  .legal-section__body h3 {
    font-size: 28px;
    line-height: 32px;
  }

  .legal-section__body h4 {
    font-size: 22px;
    line-height: 26px;
  }
}

@media (max-width: 767px) {
  .legal-layout {
    gap: 60px;
    flex-wrap: wrap;
  }

  .legal-toc {
    position: static;
  }

  .legal-section {
    margin-bottom: 40px;
    gap: 14px;
  }

  .legal-toc__ol > li > a {
    font-size: 16px;
    font-weight: 400;
  }

}


@media (max-width: 575px) {

  .legal-toc {
    display: none;
  }
  .legal-layout {
    gap: 40px;
  }

  .legal-section {
    margin-bottom: 40px;
    gap: 14px;
  }

  .legal-section__body :where(h1, h2) {
    font-size: 30px;
    line-height: 36px;
  }

  .legal-section__body h3 {
    font-size: 26px;
    line-height: 30px;
  }

  .legal-section__body h4 {
    font-size: 20px;
    line-height: 24px;
  }
}
