footer {
  display: flex;
  flex-direction: column;
  align-items: center;

  @media screen and (min-width: 1200px) {
    --width: min(1296px, 100vw);
    width: var(--width);
    transform: translateX(calc((1200px - var(--width)) / 2));
  }

  @media screen and (max-width: 1200px) {
    width: 100vw;
    transform: translateX(-16px);
  }

  a {
    transition: 100ms all ease;
  }

  a:not(.btn):not(:has(img)) {
    transform-origin: left center;
  }

  a:hover {
    color: #5f30e2;
    /* transform: scale(1.05); */
  }

  a:active {
    color: #ffbc11;
    /* transform: scale(0.95); */
  }

  .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  > .content {
    width: 100%;
    /* padding: 0 calc(((100vw - 1200px) / 2)); */
    padding: 32px;
    padding-top: 32px;
    padding-bottom: 72px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;

    border-radius: 48px;
    background: #290a48;
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.1);

    .row {
      width: 100%;
      display: flex;
      gap: 24px;
      align-items: center;
      flex-wrap: wrap;

      &:has(.actions) {
        justify-content: space-between;

        @media screen and (max-width: 600px) {
          justify-content: center;
        }
      }

      &:has(.col) {
        align-items: flex-start;
        justify-content: space-between;
      }

      &:has(.terms) {
        align-items: center;
        justify-content: space-between;
      }
    }

    .col {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    img.logo {
      width: 100px;
    }

    .logos {
      justify-content: center;
      gap: 70px;

      > img {
        height: 90px;
      }
    }

    .terms,
    .social {
      display: flex;
      gap: 16px;
    }

    .social {
      display: flex;
      align-items: center;
    }

    .social img {
      height: 36px;
    }

    .newsletter-wrapper {
      margin-left: 16px;
    }

    a {
      font-size: 14px;
      white-space: nowrap;
      display: flex;
      align-items: center;

      &.title {
        font-size: 16px;
        font-weight: 600;
      }

      &.btn {
        height: 34px;
      }
    }

    .rights {
      font-size: 12px;
    }
  }
}

@media screen and (max-width: 1440px) {
  footer .content {
    border-radius: 48px 48px 0 0;
    margin-bottom: -16px;
  }
}

@media screen and (max-width: 1200px) {
  footer .content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media screen and (max-width: 1000px) {
  footer .content {
    width: 100vw;
  }

  .logos {
    gap: 40px !important;
  }
}

@media screen and (max-width: 600px) {
  footer .content {
    width: calc(100vw);

    .row:has(.terms) {
      justify-content: center;
    }

    .terms,
    .rights {
      justify-content: center;
      text-align: center;
      flex: 1 1 100%;
    }
  }

  .logos {
    gap: 24px !important;
  }
}

@media screen and (max-width: 460px) {
  footer .content {
    .actions {
      flex-wrap: wrap;
      justify-content: center;
    }
    .newsletter-wrapper {
      flex: 1 0 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
