/* Site footer, final build (style guide §4, amended 2026-11-01: Wave 19, Figma 642:127 / 642:186). Navy edge to edge, every text
   and link white (visited column links #C9A7FF): brand + contact block, five link columns (Life insurance / Cost / Health conditions /
   Reviews / Company), the standard compliance paragraph, legal row © · Licensing · Privacy · Terms.
   src/partials/footer-v4.partial on every page (scripts/build-partials.mjs). Self-contained; loaded without blocking render.
   Phone: brand block, columns two per row, 48 px link rows. Desktop (>= 1024): brand block 280 wide + the five columns in one row. */
.f-ftr { --ff-navy: #104975; --ff-white: #FFFFFF; --ff-visited: #C9A7FF; --ff-rule: rgba(255, 255, 255, .22);
  --ff-font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ff-navy); color: var(--ff-white); padding: 48px 0 32px; font: 400 17px/1.5 var(--ff-font); }
.f-ftr *, .f-ftr *::before, .f-ftr *::after { box-sizing: border-box; }
.f-ftr ul { list-style: none; margin: 0; padding: 0; }
.f-ftr p { margin: 0; }
/* Old-template pages colour every p and li (global.css); the footer's own rules (same or higher weight, later) set sizes */
.f-ftr :where(p, li) { color: var(--ff-white); font: inherit; }
.f-ftr a { color: var(--ff-white); }
.f-ftr :focus-visible { outline: 3px solid var(--ff-white); outline-offset: 2px; border-radius: 4px; }
.f-ftr-in { display: grid; gap: 36px; max-width: 1248px; margin: 0 auto; padding: 0 20px; }

/* Brand + contact block */
.f-ftr-brand { display: grid; align-content: start; justify-items: start; gap: 6px; }
.f-ftr .f-ftr-logo { display: inline-flex; align-items: center; min-height: 48px; color: var(--ff-white); }
.f-ftr-logo svg { display: block; width: 116px; height: auto; }
.f-ftr .f-ftr-tag { margin-bottom: 4px; font-size: 17px; }
.f-ftr .f-ftr-tel { display: inline-flex; align-items: center; min-height: 48px; font: 600 22px/1.2 var(--ff-font); text-decoration: none; }
.f-ftr .f-ftr-mail { display: inline-flex; align-items: center; min-height: 48px; text-decoration: underline; text-underline-offset: .18em; }
.f-ftr .f-ftr-tel:hover { text-decoration: underline; text-underline-offset: .18em; }
.f-ftr .f-ftr-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 12px; padding: 0 26px; border-radius: 999px;
  background: var(--ff-white); color: var(--ff-navy); font: 700 17px/1.2 var(--ff-font); text-decoration: none; transition: box-shadow .15s; }
.f-ftr .f-ftr-cta:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

/* Five link columns: two per row on phones */
.f-ftr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.f-ftr .f-ftr-h { margin-bottom: 4px; font: 600 17px/1.3 var(--ff-font); }
.f-ftr .f-ftr-col a { display: flex; align-items: center; min-height: 48px; font: 400 17px/1.3 var(--ff-font); text-decoration: none; }
.f-ftr .f-ftr-col a:hover, .f-ftr .f-ftr-row a:hover { text-decoration: underline; text-underline-offset: .18em; }
.f-ftr .f-ftr-col a:visited, .f-ftr .f-ftr-row a:visited { color: var(--ff-visited); }

/* Compliance paragraph and legal row */
.f-ftr-legal { padding-top: 32px; border-top: 1px solid var(--ff-rule); font-size: 16px; line-height: 1.55; }
.f-ftr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 16px; }
.f-ftr-row ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.f-ftr .f-ftr-row a { display: inline-flex; align-items: center; min-height: 48px; font: 600 16px/1.3 var(--ff-font); text-decoration: underline; text-underline-offset: .18em; }

@media (min-width: 768px) {
  .f-ftr-in { padding: 0 32px; }
  .f-ftr-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .f-ftr { padding: 72px 0 36px; }
  .f-ftr-in { grid-template-columns: 280px minmax(0, 1fr); column-gap: 64px; row-gap: 40px; padding: 0 24px; }
  .f-ftr-nav { grid-template-columns: repeat(5, max-content); justify-content: space-between; gap: 24px; }
  .f-ftr .f-ftr-col a { font-size: 16px; }
  .f-ftr .f-ftr-h { margin-bottom: 6px; font-size: 16px; }
  .f-ftr-legal { grid-column: 1 / -1; padding-top: 40px; }
  .f-ftr-row { grid-column: 1 / -1; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .f-ftr-in { grid-template-columns: minmax(0, 1fr); }
  .f-ftr-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .f-ftr .f-ftr-cta { transition: none; } }
