footer {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding-bottom: var(--gap-2xl);
}

footer::after {
  content: "";
  display: block;
  position: absolute;
  height: 1rem;
  width: 100%;
  bottom: 1px;
  transform: translateY(100%);
  background: inherit;
}

#footer-products-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #fff;
  padding: var(--gap-2xl) 0;
}

#footer-products-container h2 {
  margin: 0 1.7em 0 0;
  font-weight: 400;
}

#footer-products {
  display: flex;
  gap: var(--gap-sm);
}

#footer-pages-container {
  display: flex;
  flex-direction: column;
  margin: var(--gap-2xl) 0;
}

.footer-pages {
  display: flex;
  justify-content: center;
  gap: var(--gap-2xl);
  flex-wrap: wrap;
  width: 60%;
  margin: auto;
  font-size: var(--text-s);
}

.footer-pages > a:hover {
  text-decoration: underline;
}

#footer-copyrights-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (min-width: 1024px) {
  .footer-pages + .footer-pages {
    margin-top: var(--gap-s);
  }
}

@media screen and (max-width: 1023px) {
  footer {
    padding-bottom: 10vw;
  }
  #footer-products-container {
    flex-direction: column;
  }
  #footer-products-container h2 {
    margin: 0 0 var(--gap-2xl) 0;
    text-align: center;
  }
  #footer-products {
    width: 100%;
    flex-wrap: wrap;
    font-size: 1.7rem;
  }
  #footer-products .card-pay-out-card {
    order: 4;
  }
  #footer-pages-container {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: calc(var(--gap-2xl) * 2);
  }
  .footer-pages {
    flex-direction: column;
    width: 50%;
    gap: 0.8em;
    text-align: center;
    margin: 0;
    font-size: var(--text-m-m);
  }
  .footer-pages:nth-child(1) {
    border-right: 1px solid #fff;
  }
  footer .main-logo img {
    width: 12rem;
  }
}
