/* Ordinary footer navigation must reflow instead of requiring sideways scrolling. */
#footer-base .nav-scroller {
  height: auto;
  min-height: 2.75rem;
  overflow: visible;
}

#footer-base .nav {
  flex-wrap: wrap;
  padding-bottom: 0;
  white-space: normal;
  overflow: visible;
}

#footer-base .overflow-hint::after {
  display: none;
}

#footer-links .nav-link {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#copyright .nav > div {
  min-width: 0;
  max-width: 100%;
}

#copyright .order-1 {
  flex: 1 1 24rem;
}

#copyright p {
  margin-bottom: 0 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  #footer-links .nav {
    column-gap: .5rem;
  }

  #footer-links .nav-link {
    padding-right: .75rem;
  }

  #copyright .nav-scroller {
    padding-right: 0 !important;
  }

  #copyright p {
    margin-bottom: 1rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}
