/* Translated company and legal labels must not widen the footer grid. */
.footer .footer-top > div { min-width: 0; }
.footer .footer-top > div:not(:first-child) > :is(a, h2) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.footer .footer-top .footer-socials { flex-wrap: wrap; }
.footer .footer-top .footer-socials > a { flex-shrink: 0; }
@media (min-width: 701px) and (max-width: 1100px) {
  .footer .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer .footer-top > div:first-child { grid-column: 1 / -1; }
}

/* Touch, mouse and keyboard share the sustainability link's green feedback. */
html .footer .footer-top > div:not(:first-child) > a:is(
  [href$="/fr/ecoresponsabilite/"], [href$="/en/sustainability/"],
  [href$="/it/ecosostenibilita/"], [href$="/pl/ekologia/"],
  [href$="/pt/sustentabilidade/"], [href$="/es/sostenibilidad/"],
  [href$="/de/nachhaltigkeit/"], [href$="/ua/ekolohichnist/"],
  [href$="/us/sustainability/"], [href$="/ar/sostenibilidad/"]
) {
  --footer-eco-ink: #00843f;
  --footer-eco-glow: rgba(0, 200, 83, .36);
  -webkit-tap-highlight-color: rgba(0, 200, 83, .18);
}

html[data-theme="dark"] .footer .footer-top > div:not(:first-child) > a {
  --footer-eco-ink: #79e4ae;
  --footer-eco-glow: rgba(87, 214, 152, .24);
}

html:root .footer .footer-top > div:not(:first-child) > a:is(
  [href$="/fr/ecoresponsabilite/"], [href$="/en/sustainability/"],
  [href$="/it/ecosostenibilita/"], [href$="/pl/ekologia/"],
  [href$="/pt/sustentabilidade/"], [href$="/es/sostenibilidad/"],
  [href$="/de/nachhaltigkeit/"], [href$="/ua/ekolohichnist/"],
  [href$="/us/sustainability/"], [href$="/ar/sostenibilidad/"]
):is(:hover, :active, :focus-visible) {
  color: var(--footer-eco-ink) !important;
  text-shadow: 0 0 14px var(--footer-eco-glow) !important;
  outline-color: var(--footer-eco-ink);
}
