/* Footer — footer nav + info grid. */

/* Scoped to .et-l--footer .et-menu (stable) — not the order-based .et_pb_menu_N class Divi
   renumbers on save (that renumbering silently broke this before). */

/* Desktop (≥981px) — items fill the row, evenly spaced. */
@media (min-width: 981px) {
  .et-l--footer .et_pb_menu__wrap,
  .et-l--footer .et_pb_menu__menu,
  .et-l--footer .et_pb_menu__menu > nav {
    width: 100%;
  }
  .et-l--footer .et-menu {
    display: flex !important;
    width: 100%;
    justify-content: space-between !important;
  }
}

/* Tablet/mobile (≤980px) — stack vertically, centered, 1rem gap, no item padding. */
@media (max-width: 980px) {
  .et-l--footer .et-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
    text-align: center !important;
  }
  .et-l--footer .et-menu > li {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    text-align: center !important;
  }
  .et-l--footer .et-menu > li > a {
    padding: 0 !important;        /* kill Divi's padding-bottom:29px on the link */
    display: inline-block !important;
  }
}
