/* Shared footer: no image cropping; legal links remain visible on small screens. */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px));
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.foot-brand, .foot-col { min-width: 0; }
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  text-decoration: none;
}
.foot-logo img { display: block; width: 48px; height: 48px; border-radius: 12px; flex: none; }
.foot-logo span { display: grid; gap: 5px; min-width: 0; }
.foot-logo strong { font: 800 27px/1.1 var(--font-display); letter-spacing: -.03em; }
.foot-logo small { font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.foot-company { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 18px 0 2px; overflow-wrap: anywhere; }
.foot-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.foot-col h4 { font: 700 13px/1.5 var(--font-display); letter-spacing: .04em; color: var(--ink); margin: 0 0 12px; }
.foot-col nav { display: grid; align-content: start; }
.foot-col a { display: flex; align-items: center; min-height: 40px; padding-block: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.foot-mail:hover, .foot-col a:hover, .foot-col a[aria-current="page"], .foot-record:hover { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; }
.cop { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.8; }
.foot-record { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.6; text-decoration: none; }
/* The footer already includes live chat and application links. */
body.footer-visible .kf, body.application-visible .kf { opacity: 0; visibility: hidden; pointer-events: none; }
body.footer-visible .mcta { visibility: hidden; pointer-events: none; transform: translateY(110%); }
@media (max-width: 1020px) {
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  footer { padding-block: 36px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .foot-top { gap: 28px 20px; padding-bottom: 24px; }
  .foot-col a { min-height: 44px; }
  .foot-bottom { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 20px; }
}
@media (max-width: 540px) {
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { grid-column: 1 / -1; }
  .foot-legal nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .foot-legal h4 { margin-bottom: 4px; }
}
