.g4a-site-footer {
  display: block;
  position: relative !important;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0 !important;
  margin: 0;
  padding: 14px 16px 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #fff;
  font: 13px/1.35 Arial, Helvetica, sans-serif;
  overflow: hidden;
}
.g4a-site-footer .g4a-footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 32px minmax(220px, 1fr) minmax(250px, auto) minmax(160px, 1fr) auto;
  grid-template-areas: "toggle links center logo language";
  align-items: center;
  gap: 12px 18px;
}
.g4a-site-footer .g4a-footer-toggle {
  grid-area: toggle;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
}
.g4a-site-footer .g4a-footer-caret {
  display: block;
  font-size: 16px;
  line-height: 1;
  transform: rotate(180deg);
  transition: transform .22s ease;
}
.g4a-site-footer .g4a-footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 18px;
  min-width: 0;
}
.g4a-site-footer .g4a-footer-link {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.g4a-site-footer .g4a-footer-link:hover { opacity: 1; border-bottom-color: currentColor; }
.g4a-site-footer .g4a-footer-center {
  grid-area: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}
.g4a-site-footer .g4a-footer-logo-box {
  grid-area: logo;
  display: flex;
  align-items: center;
  min-width: 0;
}
.g4a-site-footer .g4a-footer-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}
.g4a-site-footer .g4a-footer-language {
  grid-area: language;
  display: flex;
  justify-content: flex-end;
  min-width: 116px;
}
.g4a-site-footer .g4a-footer-language .g4a-lang-selector {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.g4a-site-footer .g4a-footer-language .g4a-lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: 700 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.g4a-site-footer .g4a-footer-language .g4a-lang-btn.is-active {
  background: #fff;
  color: #111;
  box-shadow: none;
}
.g4a-site-footer.is-collapsed {
  padding-top: 8px;
  padding-bottom: 8px;
  background: #000 !important;
}
.g4a-site-footer.is-collapsed .g4a-footer-caret { transform: rotate(0deg); }
.g4a-site-footer.is-collapsed .g4a-footer-links,
.g4a-site-footer.is-collapsed .g4a-footer-logo-box { display: none; }
.g4a-site-footer.is-collapsed .g4a-footer-inner {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-areas: "toggle center language";
  gap: 10px;
}
body.has-site-footer:not(.dashboard-page) { flex-direction: column; align-items: center; }
body.has-site-footer > .g4a-lang-selector { display: none !important; }
.app-screen.has-site-footer { display: flex; flex-direction: column; min-height: 100dvh; }
.app-screen.has-site-footer > .g4a-site-footer,
body.has-site-footer > .g4a-site-footer { margin-top: auto; }
body:not(.dashboard-page) .app-screen.has-site-footer { padding-bottom: 0; }

@media (max-width: 768px) {
  .g4a-site-footer,
  .g4a-site-footer.is-collapsed {
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom,0px));
    background: var(--g4a-footer-bg) !important;
  }
  .g4a-site-footer .g4a-footer-inner,
  .g4a-site-footer.is-collapsed .g4a-footer-inner {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "logo"
      "links"
      "center";
    gap: 20px;
  }
  .g4a-site-footer .g4a-footer-toggle,
  .g4a-site-footer .g4a-footer-language { display: none !important; }
  .g4a-site-footer .g4a-footer-logo-box,
  .g4a-site-footer.is-collapsed .g4a-footer-logo-box {
    display: flex;
    justify-content: center !important;
  }
  .g4a-site-footer .g4a-footer-logo { max-height: 58px; max-width: min(210px,72vw); }
  .g4a-site-footer .g4a-footer-links,
  .g4a-site-footer.is-collapsed .g4a-footer-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: center;
    gap: 11px 16px;
    width: 100%;
  }
  .g4a-site-footer .g4a-footer-link {
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .g4a-site-footer .g4a-footer-center {
    padding: 4px 0 0;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
  }
  body.map-page.has-site-footer .g4a-site-footer {
    margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 420px) {
  .g4a-site-footer,
  .g4a-site-footer.is-collapsed { padding-inline: 14px; }
  .g4a-site-footer .g4a-footer-links,
  .g4a-site-footer.is-collapsed .g4a-footer-links { gap: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .g4a-site-footer .g4a-footer-caret { transition: none; }
}