.footer-border {
  left: 0;
  bottom: -0.3125rem;
  background-position: left 0 top 0;
  width: 100%;
  height: 0.3125rem;
  background-image: linear-gradient(var(--greyBackground), var(--greyBackgroundDark));
  background-repeat: repeat-x;
  content: "";
  margin-top: 3rem;
}

footer {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  background-color: var(--greyBackground);
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

footer .footer-row.centered {
  justify-content: center;
}

.legal,
.contact,
.social-networks {
  display: flex;
  list-style-type: none;
  padding: 0;
  flex-wrap: wrap;
  margin: 0;
}

.legal li,
.contact li,
.social-networks li {
  margin: 0.3125rem;
}

.footer-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--lightColorDark);
  cursor: pointer;
  text-transform: capitalize;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-btn:hover {
  color: var(--primaryColor);
}

.footer-btn img {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.social-networks .footer-btn {
  background: var(--primaryColor);
  color: var(--greyBackground);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s, background-color 0.2s;
}

.social-networks .footer-btn:hover {
  background: var(--secundaryColor);
  color: var(--greyBackgroundLight);
  opacity: 0.8;
}

@media(max-width: 31.375rem) {
  footer {
    align-items: center;
  }

  footer .footer-row {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .legal,
  .contact,
  .social-networks {
    justify-content: center;
  }
}