.footer {
  margin-top: 3rem;
  padding-block: 3rem 2rem;
  background-color: var(--background);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__brand .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer__brand .custom-logo {
  display: block;
  width: auto;
  max-height: 5rem;
  height: auto;
}

.footer__site-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: inherit;
}

.footer__nav {
  flex: 1;
  min-width: 0;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__menu a {
  color: #333;
  font-size: 0.95rem;
  transition: color 300ms;
}

.footer__menu a:hover {
  color: var(--primary);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer__social {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: #111;
  color: #fff;
  transition: background-color 300ms, scale 300ms;
}

.footer__social:hover {
  background-color: var(--primary);
  scale: 0.96;
}

.footer__social-icon.icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background-color: transparent;
  background-image: var(--icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  mask-image: none;
  -webkit-mask-image: none;
  filter: brightness(0) invert(1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e0da;
}

.footer__copyright {
  margin: 0;
  color: #888;
  font-size: 0.8125rem;
}

.footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-menu a {
  color: #888;
  font-size: 0.8125rem;
  transition: color 300ms;
}

.footer__legal-menu a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__menu {
    justify-content: center;
  }
}
