/* ==========================================================================
   kfe_site_footer — the closing band
   --------------------------------------------------------------------------
   Neutral by contract: the ground is the shared `deep` preset (so the whole
   band inherits `.kfe-dark`), every colour is a --kfe-* token read with
   today's value as its fallback, and no token is DECLARED here (ADR-0004
   decision 2). The band's padding is `section_padding`, its width
   `content_width`, its copy `body_color`/`body_size` — all frame controls, all
   per instance. Written literally: only the small fixed geometry the reference
   draws the same way at every size (the 9px link gap, the badge row's rules).

   The grid tracks the columns that REALLY rendered — a link column whose menu
   is unset, deleted, or mapped to nothing in this language prints nothing at
   all, and `data-cols` drops by one — so an empty track is never left behind.
   ========================================================================== */

.kfe .kfe-site-footer {
  font-size: var(--kfe-body-size, inherit);
  line-height: 1.7;
}
.kfe .kfe-site-footer p { margin: 0 0 6px; }
.kfe .kfe-site-footer a { color: inherit; text-decoration: none; transition: color 0.15s; }
.kfe .kfe-site-footer a:hover,
.kfe .kfe-site-footer a:focus-visible { color: var(--kfe-white); }

/* ---------- the column grid ---------- */
.kfe .kfe-site-footer-cols {
  display: grid;
  gap: 30px;
  align-items: start;
  grid-template-columns: 1fr;
}
.kfe .kfe-site-footer-head {
  color: var(--kfe-white);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.kfe .kfe-site-footer-col ul { list-style: none; margin: 0; padding: 0; }
.kfe .kfe-site-footer-col li { margin: 0 0 9px; }

/* ---------- the brand column ---------- */
.kfe .kfe-site-footer-logo { display: block; max-width: 100%; height: auto; margin: 0 0 20px; }
.kfe .kfe-site-footer-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block-start: 18px; }
.kfe .kfe-site-footer-cta { margin: 0; }
.kfe .kfe-site-footer-secondary,
.kfe .kfe-site-footer-tel {
  font-weight: 600;
  border-block-end: 1px solid currentColor;
  padding-block-end: 2px;
}
.kfe .kfe-site-footer-tel { white-space: nowrap; }

/* ---------- the accreditation row ---------- */
.kfe .kfe-site-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 54px;
  margin-block-start: 52px;
  padding-block: 34px 30px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.13);
}
.kfe .kfe-site-footer-badges img { display: block; opacity: 0.92; max-width: 100%; height: auto; }

/* ---------- the reviews slot: empty unless the consent layer filled it ---------- */
.kfe .kfe-site-footer-reviews { display: flex; justify-content: center; padding-block: 6px 26px; }
.kfe .kfe-site-footer-reviews > * { width: 100%; max-width: 420px; }

/* ---------- the bottom bar ---------- */
.kfe .kfe-site-footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: 20px 26px;
  text-align: center;
  font-size: 14px;
}
.kfe .kfe-site-footer-bottom p { margin: 0 0 6px; }
.kfe .kfe-site-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.kfe .kfe-site-footer-legal a { border-block-end: 1px solid transparent; }
.kfe .kfe-site-footer-legal a:hover { border-block-end-color: currentColor; }

/* ==========================================================================
   The widths. Above 1100 the grid has one track per rendered column and the
   brand column is the wider one; below it the count steps to 3, 2 and 1 at the
   reference's own breakpoints, whatever the rendered count was.
   ========================================================================== */
@media (min-width: 1101px) {
  .kfe .kfe-site-footer-cols[data-cols="2"] { grid-template-columns: 1.35fr 1fr; }
  .kfe .kfe-site-footer-cols[data-cols="3"] { grid-template-columns: 1.35fr 1fr 1.1fr; }
  .kfe .kfe-site-footer-cols[data-cols="4"] { grid-template-columns: 1.35fr 1fr 1.1fr 1fr; }
  .kfe .kfe-site-footer-cols[data-cols="5"] { grid-template-columns: 1.35fr 1fr 1.1fr 1fr 0.85fr; }
  .kfe .kfe-site-footer-cols[data-cols="6"] { grid-template-columns: 1.35fr 1fr 1.1fr 1fr 0.85fr 0.85fr; }
  /* seven or more: equal tracks after the wider brand column */
  .kfe .kfe-site-footer-cols[data-cols="7"],
  .kfe .kfe-site-footer-cols[data-cols="8"],
  .kfe .kfe-site-footer-cols[data-cols="9"] {
    grid-template-columns: 1.35fr repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .kfe .kfe-site-footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .kfe .kfe-site-footer-cols[data-cols="1"] { grid-template-columns: 1fr; }
  .kfe .kfe-site-footer-cols[data-cols="2"] { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 900px) and (min-width: 561px) {
  .kfe .kfe-site-footer-cols { grid-template-columns: 1fr 1fr; }
  .kfe .kfe-site-footer-cols[data-cols="1"] { grid-template-columns: 1fr; }
  .kfe .kfe-site-footer-badges { gap: 32px; }
}
@media (max-width: 560px) {
  .kfe .kfe-site-footer-cols { grid-template-columns: 1fr; }
  .kfe .kfe-site-footer-badges { gap: 32px; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] body .kfe .kfe-site-footer-head { letter-spacing: 0; }
