/* ================================================================
   LEGAL PAGES TEMPLATE (Privacy Policy, Terms & Conditions, …)
   Hero mirrors the Opportunities template (co-hero).
   Depends on: ../../style.css (design tokens + layout utilities)
   Prefix: lg-
   ================================================================ */


/* ================================================================
   S1 — HERO BANNER
   Full-bleed photo card, dark gradient, centred eyebrow + H1.
   Opportunities parity: outer px-[32px] py-[20px] · rounded card.
   ================================================================ */

.lg-hero {
  background: #fff;
  padding: 20px 32px;
}

/* Card — rounded, shadow, photo fills the whole surface */
.lg-hero__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  overflow: hidden;
  padding: 115px var(--site-px, 118px);
  box-shadow: var(--shadow-1, 0 0 12px rgba(0, 0, 0, 0.09));
  min-height: 380px;
}

/* ── Background layers ───────────────────────────────────────── */

.lg-hero__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--color-primary, #071D49);
}

.lg-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* Dark navy fade for text contrast */
.lg-hero__gradient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--hero-gradient);
}

/* ── Content (centred) ───────────────────────────────────────── */

.lg-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 800px;
}

/* Navy eyebrow pill */
.lg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--color-primary, #071D49);
  color: #fff;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead, 16px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* H1 — Playfair Display SemiBold, white */
.lg-hero__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}


/* ================================================================
   S2 — LEGAL CONTENT
   Long-form prose from the WP editor. Boxed, readable measure.
   ================================================================ */

.lg-content {
  background: #fff;
  padding-top: var(--site-py-flush, 40px);
  padding-bottom: var(--site-py, 80px);
}

.lg-content__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--site-px, 118px);
  box-sizing: content-box;
}

/* Subtle modified-date line above the prose */
.lg-content__updated {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s, 14px);
  font-weight: var(--fw-body-s, 300);
  line-height: var(--lh-body-s, 1.4);
  letter-spacing: var(--ls-body-s, 0.01em);
  color: var(--color-text, #1E153D);
  opacity: 0.6;
  margin: 0 0 32px;
}

/* ── Prose typography ────────────────────────────────────────── */

.lg-content__body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body, 18px);
  font-weight: var(--fw-body, 300);
  line-height: var(--lh-body, 1.4);
  letter-spacing: var(--ls-body, 0.01em);
  color: var(--color-text, #1E153D);
}

.lg-content__body h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h3, 32px);
  font-weight: var(--fw-h3, 600);
  line-height: var(--lh-h3, 1.1);
  letter-spacing: var(--ls-h3, 0.03em);
  color: var(--color-text, #1E153D);
  margin: 1.75em 0 0.6em;
}

.lg-content__body h3 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h4, 24px);
  font-weight: var(--fw-h4, 700);
  line-height: var(--lh-h4, 1.1);
  letter-spacing: var(--ls-h4, 0.03em);
  color: var(--color-text, #1E153D);
  margin: 1.5em 0 0.5em;
}

.lg-content__body h4 {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-h5, 18px);
  font-weight: 500;
  line-height: var(--lh-h5, 1.1);
  letter-spacing: var(--ls-h5, 0.01em);
  color: var(--color-text, #1E153D);
  margin: 1.5em 0 0.5em;
}

.lg-content__body h2:first-child,
.lg-content__body h3:first-child,
.lg-content__body p:first-child {
  margin-top: 0;
}

.lg-content__body p {
  margin: 0 0 1em;
}

.lg-content__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-content__body a:hover { opacity: 0.7; }

.lg-content__body strong { font-weight: 500; }

.lg-content__body ul,
.lg-content__body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.lg-content__body li { margin-bottom: 0.4em; }

.lg-content__body hr {
  border: 0;
  border-top: 1px solid var(--color-stroke, #E8EDF6);
  margin: 2em 0;
}

/* Tables (e.g. cookie lists) */
.lg-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: var(--fs-body-s, 14px);
}

.lg-content__body th,
.lg-content__body td {
  border: 1px solid var(--color-stroke, #E8EDF6);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.lg-content__body th {
  background: var(--color-stroke, #E8EDF6);
  font-weight: 500;
}


/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .lg-hero {
    padding: 20px 20px;
  }

  .lg-hero__card {
    padding: 80px 48px;
  }

  .lg-hero__heading {
    font-size: 44px;
  }
}


/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .lg-hero {
    padding: 0;
  }

  .lg-hero__card {
    border-radius: 0;
    box-shadow: none;
    padding: 80px 20px;
    min-height: auto;
  }

  .lg-hero__heading {
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .lg-pill {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* Long tables scroll instead of breaking the layout */
  .lg-content__body table {
    display: block;
    overflow-x: auto;
  }
}
