/*
 * InspireSphere Theme — Legal Pages (Privacy Policy & Terms and Conditions)
 *
 * Shared stylesheet for any page using the "Legal Page" template.
 *
 * Desktop layout:
 *   .section--legal: white bg, 48px top / 80px bottom padding
 *   .legal__inner: max-width 860px (left-aligned inside 1320px container)
 *   h1.legal__title: 40px Bold, #034083 (blue), 40px bottom margin
 *   .legal__content: prose typographic styles for WP block-editor output
 *     h2 / .wp-block-heading: 20px Bold dark-navy, 40px top gap, 12px bottom
 *     p: 16px Regular dark-navy, 20px gap between paragraphs
 *     ul / ol: disc / decimal, 20px gap, 4px between items
 *     strong: bold weight (used as inline sub-section labels)
 *     a: blue, underline on hover
 *
 * Mobile (≤ 768px):
 *   h1 scales to 28px, section padding tightens, h2 spacing reduces
 */

/* ── Section wrapper ─────────────────────────────────────────────────── */
.section--legal {
  background: var(--color-white);
  padding-block: 48px 80px;
}

/* ── Content column (left-aligned, max-width per Figma proportions) ──── */
.legal__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Page title (h1) ─────────────────────────────────────────────────── */
.legal__title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
  line-height: normal;
  margin-bottom: 56px;
}

/* ── Prose typographic styles for WP block-editor output ──────────────── */

/* Section headings generated by WP (h2, wp-block-heading) */
.legal__content h2,
.legal__content .wp-block-heading {
  font-size: var(--font-size-h4);
  /* 20px Bold per Figma */
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-navy);
  line-height: normal;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal__content h2:first-child,
.legal__content .wp-block-heading:first-child {
  margin-top: 0;
}

/* h3/h4 if editor ever uses them */
.legal__content h3,
.legal__content h4 {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-navy);
  line-height: normal;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* Body paragraphs */
.legal__content p {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-dark-navy);
  line-height: normal;
  margin-bottom: 20px;
}

.legal__content p:last-child {
  margin-bottom: 0;
}

/* Strong / bold inline labels (sub-section titles authored as <p><strong>) */
.legal__content p>strong,
.legal__content strong {
  font-weight: var(--font-weight-bold);
}

/* Unordered + ordered lists */
.legal__content ul,
.legal__content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal__content ul {
  list-style: disc;
}

.legal__content ol {
  list-style: decimal;
}

.legal__content li {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-dark-navy);
  line-height: normal;
  margin-bottom: 4px;
}

/* Links within content */
.legal__content a {
  color: var(--color-blue);
  text-decoration: none;
}

.legal__content a:hover,
.legal__content a:focus {
  text-decoration: underline;
}

/* Hide WP "Suggested text:" tutorial labels (default Privacy Policy boilerplate) */
.legal__content .privacy-policy-tutorial {
  display: none;
}

/* ── Mobile (≤ 768px) ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section--legal {
    padding-block: 32px 48px;
  }

  .legal__title {
    font-size: var(--font-size-h1-mobile);
    margin-bottom: 24px;
  }

  .legal__content h2,
  .legal__content .wp-block-heading {
    margin-top: 32px;
    margin-bottom: 10px;
  }

  .legal__content p {
    margin-bottom: 16px;
  }
}