footer .footer-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
  margin-left: auto;
  max-width: 100%;
  gap: 7px;
  line-height: 16px;
  text-align: left;
}
footer .footer-company span { display: block; }
@media (max-width: 750px) {
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-bottom: 32px;
    text-align: center;
  }
  footer .footer-links {
    align-items: center;
    text-align: center;
  }
  footer .footer-links a,
  footer .footer-company {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }
  footer .footer-company {
    align-items: center;
    align-self: center;
    justify-self: center;
    margin-left: 0;
    width: 100%;
    text-align: center;
    order: 1;
  }
}

/* Keep the tagline centered independently of the widths of the side blocks. */
footer > span:nth-child(2) {
  text-align: center;
}
@media (min-width: 751px) {
  footer:has(> span:nth-child(2)) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
  }
  footer > span:nth-child(2) {
    justify-self: center;
  }
}

footer .footer-links { gap: 7px; }
footer .footer-links a { line-height: 16px; }

@media (max-width: 750px) {
  footer > .brand {
    display: block;
    order: -1;
    align-self: center;
    margin: 0;
    color: #222139;
    font: 700 25px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: -1px;
    text-align: center;
  }
  footer > .brand span { color: inherit; }
}
