/* ============================================================= */
/* LEGAL PAGES (v2) — Terms and Conditions (Figma 11168:178) and   */
/* Privacy Policy (Figma 11163:36). Both are a hero band, a stack  */
/* of cards with the key-points accordion after the first card or  */
/* two, and a contact band above the footer.                       */
/* ============================================================= */
.lg-v2 {
  font-family: Poppins, sans-serif;
  color: var(--c-text);
}

/* style-v2.css capitalizes every heading and greys every <p>; Figma uses
   the copy's own casing and #3D3D3D body text. */
.lg-v2 h1,
.lg-v2 h2,
.lg-v2 h3 {
  text-transform: none;
}

.lg-v2 p {
  color: var(--c-text);
}

/* ============================================================= */
/* HERO — Figma 11168:526 / 11163:1608 (1440 x 280)                */
/* The artwork crops to the band; its low-res copy (image 1219)    */
/* lies over the whole band at 60%. --hero-top / --hero-pos hold   */
/* each page's Figma offset and crop.                              */
/* ============================================================= */
.lg-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 40px 0;
  overflow: hidden;
}

.lg-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lg-hero-bg {
  position: absolute;
  top: var(--hero-top, 0px);
  left: 0;
  width: 100%;
  height: calc(100% - var(--hero-top, 0px));
  object-fit: cover;
  object-position: var(--hero-pos, 50% 50%);
}

.lg-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.lg-hero .container-page {
  position: relative;
  width: 100%;
}

.lg-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.lg-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 9.069px;
  background: rgba(39, 55, 117, 0.1);
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 9.976px;
  text-transform: capitalize;
  white-space: nowrap;
}

.lg-hero-title {
  margin: 0;
  color: var(--c-blue);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.8922px;
}

/* ============================================================= */
/* CARDS — Figma 11190:2 / 11190:15                                */
/* White cards (8px radius, M3 elevation 3) with a 3px blue-to-    */
/* orange top border; 32px between cards, 20px between the parts   */
/* of a card.                                                      */
/* ============================================================= */
.lg-body {
  padding: 60px 0;
}

.lg-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lg-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-top: 3px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--c-blue) 0%, var(--c-orange) 100%) border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
  scroll-margin-top: 120px;
  word-break: break-word;
}

.lg-card-title {
  margin: 0;
  color: var(--c-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

/* Figma sets some titles in a fixed-height row (24.5px or 46px). */
.lg-card-title--fixed {
  display: flex;
  align-items: center;
  height: var(--title-h);
}

/* Sub-headings — Figma H4 (Poppins SemiBold 24 / 1.4). */
.lg-card-sub {
  margin: 0;
  color: var(--c-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.lg-card-text {
  font-size: 16px;
  line-height: 1.56;
}

.lg-card-text p,
.lg-card-text ul {
  margin: 0 0 8px;
}

.lg-card-text ul {
  padding: 0;
  list-style: disc;
}

.lg-card-text li {
  margin: 0 0 4px 24px;
}

/* The PHI list sits one level deeper in Figma (48px). */
.lg-card-text .lg-bullets--indent li {
  margin-left: 48px;
}

.lg-card-text li:last-child {
  margin-bottom: 0;
}

.lg-card-text > :last-child {
  margin-bottom: 0;
}

/* ============================================================= */
/* COOKIE TABLE — Figma 11168:26 (1200 x 252)                      */
/* Two tinted header pills, then 48px rows split by a 1px rule at  */
/* 414px; adjacent row borders stack to 2px, as in Figma.          */
/* ============================================================= */
.lg-table {
  overflow: hidden;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 7.8px rgba(0, 0, 0, 0.12);
}

.lg-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.lg-table col:first-child {
  width: 414px;
}

.lg-table th {
  padding: 7px 0 4px 7px;
  font-weight: 600;
}

.lg-table th + th {
  padding: 7px 5px 4px 4px;
}

.lg-table th span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  background: var(--c-bg-blue);
  color: var(--c-blue);
  font-size: 20px;
  line-height: 1.4;
}

.lg-table th + th span {
  background: #fff1f1;
  color: var(--c-orange);
}

.lg-table td {
  height: 48px;
  padding: 0 16px 0 19.5px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.56;
  vertical-align: middle;
}

.lg-table td + td {
  padding-left: 24.5px;
  border-left: 1px solid #e5e7eb;
  font-weight: 400;
  line-height: 1.3;
}

.lg-table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================= */
/* KEY POINTS ACCORDION — Figma 11168:537 / 11163:1624             */
/* ============================================================= */
.lg-keys {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #f6f8f8;
}

.lg-keys-head {
  margin: 0;
}

.lg-keys-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 74px;
  padding: 8px 31.5px 8px 22.5px;
  border: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
  background: var(--c-blue);
  box-shadow: 0 0 7.8px rgba(0, 0, 0, 0.12);
  color: #fff;
  font: inherit;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.lg-keys:not(.is-open) .lg-keys-toggle {
  border-radius: 16px;
}

.lg-keys-toggle:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.lg-keys-chevron {
  flex: none;
  transition: transform 0.25s ease;
}

.lg-keys.is-open .lg-keys-chevron {
  transform: rotate(180deg);
}

.lg-keys-panel {
  padding: 24px;
  border-radius: 0 0 24px 24px;
  background: var(--c-bg-blue);
}

.lg-keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-keys-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.56;
}

/* Centre the 20px tick on the first 24.96px text line. */
.lg-keys-list img {
  flex: none;
  margin-top: 2.48px;
}

/* ============================================================= */
/* CONTACT — Figma 11174:764 / 11168:70 (1440 x 342)               */
/* ============================================================= */
.lg-contact {
  padding: 32px 0;
  background: var(--c-bg-blue);
}

.lg-contact .container-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lg-contact-title {
  margin: 0;
  color: var(--c-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.lg-contact-lead,
.lg-contact-details p {
  margin: 0;
  font-size: 16px;
  line-height: 1.56;
}

.lg-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-contact-details b {
  color: var(--c-blue);
  font-weight: 600;
}

.lg-contact-details a {
  color: inherit;
  text-decoration: none;
}

.lg-contact-details a:hover {
  color: var(--c-blue);
  text-decoration: underline;
}

.lg-contact-details .lg-contact-name {
  color: var(--c-blue);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.lg-contact-details .lg-contact-updated {
  font-style: italic;
  font-weight: 600;
  line-height: normal;
}

/* ============================================================= */
/* RESPONSIVE                                                      */
/* ============================================================= */
@media (max-width: 1199px) {
  .lg-table col:first-child {
    width: 34%;
  }
}

@media (max-width: 991px) {
  .lg-hero-title {
    font-size: 36px;
  }

  .lg-card-title,
  .lg-keys-toggle,
  .lg-contact-title {
    font-size: 28px;
  }

  .lg-card-sub {
    font-size: 22px;
  }

  .lg-body {
    padding: 48px 0;
  }
}

@media (max-width: 575px) {
  .lg-hero {
    min-height: 220px;
  }

  .lg-hero-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .lg-body {
    padding: 40px 0;
  }

  .lg-list {
    gap: 24px;
  }

  .lg-card {
    gap: 16px;
    padding: 16px;
  }

  .lg-card-title,
  .lg-contact-title {
    font-size: 24px;
  }

  .lg-card-title--fixed {
    height: auto;
  }

  .lg-card-sub {
    font-size: 20px;
  }

  .lg-card-text .lg-bullets--indent li {
    margin-left: 24px;
  }

  .lg-table {
    border-radius: 16px;
  }

  .lg-table th span {
    height: 40px;
    font-size: 16px;
  }

  .lg-table td {
    height: auto;
    padding: 10px 10px 10px 12px;
    font-size: 14px;
  }

  .lg-table td + td {
    padding-left: 12px;
  }

  .lg-keys-toggle {
    min-height: 60px;
    padding: 12px 16px;
    font-size: 20px;
  }

  .lg-keys-chevron {
    width: 24px;
    height: 24px;
  }

  .lg-keys-panel {
    padding: 16px;
  }
}
