@import "./mixins.scss";
@import "./variables.scss";

.EgL3uq {
  .site-footer {
    padding-bottom: 64px;

    a {
      color: var(--color-white);
      text-decoration: none;
      font-weight: 300;
    }

    &__inner {
      padding-top: 60px;
    }

    &__row-top {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      @include media-min($medium) {
        grid-template-columns: repeat(4, 1fr);
      }
      @include media-min($large) {
        grid-template-columns: repeat(12, 1fr);
      }
      gap: 48px 16px;
    }

    &__row-bottom {
      padding-top: 60px;
    }

    &__logo-social-container {
      @include media-min($large) {
        grid-column: span 2;
      }
    }

    &__col-links {
      .site-footer__language-links {
        display: none;
        @include media-min($medium) {
          display: inline-block;
        }
      }

      &:nth-of-type(5) {
        margin-top: 60px;
        grid-column: 1 / span 2;
        @include media-min(800px) {
          grid-column: span 8;
          margin-top: 0;
        }
        .site-footer__links-group {
          align-items: center;
          @include media-min($medium) {
            align-items: flex-start;
          }
        }
        .block-cta {
          width: 100%;
        }
        .block-cta__subscribe-form {
          max-width: 360px;
          margin: auto;
          @include media-min($medium) {
            margin: 0;
          }
          .hs-error-msg {
            color: #f00;
            line-height: 20px;
            font-size: 14px;
            font-weight: 300;
          }
          .hs_recaptcha,
          .hs_submit,
          .hs_error_rollup {
            display: none;
          }
        }
        input {
          height: 56px;
          max-width: 360px;
          width: 100%;
          padding: 10px 20px 12px 18px;
          transition: all 0.2s ease-out;
          appearance: none;
          border: 1px solid #5d6974;
          background-color: #000;
          font-weight: 400;
          font-size: 16px;
          line-height: 1.5;
          color: #fff;
          display: block;
          width: 100%;
          outline: none;
        }
        p {
          text-align: center;
          font-size: 16px;
          font-weight: 300;
          color: #fff;
          @include media-min($medium) {
            text-align: left;
          }
        }
      }

      @include media-min($large) {
        &:nth-of-type(1) {
          grid-column: 1 / span 2;
        }

        &:nth-of-type(2) {
          grid-column: 3 / span 2;
        }

        &:nth-of-type(3) {
          grid-column: 5 / span 2;
        }

        &:nth-of-type(4) {
          grid-column: 7 / span 2;
        }

        &:nth-of-type(5) {
          grid-column: 9 / span 4;
          padding-right: 32px;

          p {
            text-align: left;
          }
        }
      }
    }

    &__logo {
      max-height: 32px;
    }

    &__language-links {
      position: relative;
      margin-top: 80px;
      margin-bottom: 32px;
      display: inline-block;
      cursor: pointer;

      @include media-min($medium) {
        display: none;
      }
      i {
        color: #fff;
        font-size: 20px;
        padding-right: 4px;
      }
      a {
        font-size: 14px;
        + a {
          margin-top: 10px;
        }
        &:hover {
          color: #a2adb9;
        }
      }
      &:hover {
        .site-footer__language-options {
          opacity: 1;
        }
      }
    }

    &__language-select {
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 10px;
    }

    &__language-options {
      position: absolute;
      border: 1px solid #5d6974;
      background-color: #000;
      color: #fff;
      display: flex;
      flex-direction: column;
      width: 100px;
      padding: 10px 16px;
      opacity: 0;
    }

    &__social-group {
      margin-top: 32px;
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      @include media-min($medium) {
        margin-top: 48px;
      }
    }

    &__social-icon {
      width: 100%;
      height: 100%;
      max-width: 26px;
      max-height: 25px;
    }

    &__links-group {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;

      & + & {
        margin-top: 20px;
      }
    }

    &__links-group-title {
      font-size: 15px;
      line-height: 21px;
      color: #a2adb9;
      font-family: var(--font-moderat-mono);
      margin-bottom: 16px;
    }

    &__links-group-link {
      font-size: 16px;
      font-weight: 300;
      transition: color var(--default-transition-params);
      display: flex;
      align-items: center;
      gap: 10px;

      &:hover {
        color: #a2adb9;
      }
    }

    &__legal {
      display: flex;
      flex-direction: column;
      gap: 5px;
      color: var(--color-footer-legal);
      align-items: center;

      @include media-min($medium) {
        flex-direction: row;
        gap: 0;
      }

      a {
        transition: color var(--default-transition-params);
        color: var(--color-footer-legal);

        &:hover {
          color: var(--color-white);

          &::before {
            color: var(--color-footer-legal);
          }
        }
      }
    }

    &__legal-top-row,
    &__legal-bottom-row {
      display: flex;
      align-items: center;
    }

    &__design {
      @include media-min($medium) {
        position: relative;

        &::before {
          content: "|";
          padding-left: 8px;
          padding-right: 8px;
        }
      }
    }

    &__menu-legal {
      font-size: 12px;
      color: var(--color-footer-legal);
      @include media-min($medium) {
        position: relative;
        &::before {
          content: "/";
          padding-left: 12px;
          padding-right: 12px;
        }
      }
    }

    &__menu-legal a {
      position: relative;
      color: #a2adb9;
      font-size: 14px;
      font-family: var(--font-moderat-mono);

      &::before {
        content: "/";
        padding-left: 12px;
        padding-right: 12px;
        color: #a2adb9;
      }

      &:first-of-type::before {
        display: none;
      }
    }

    &__copyright {
      font-family: var(--font-moderat-mono);
      font-size: 14px;
      font-weight: 400;
      color: #a2adb9;
      line-height: 20px;
    }

    &__beian {
      color: var(--color-footer-legal);
      a {
        font-size: 12px;
      }
      &-icon {
        width: 16px;
        height: 16px;
        display: inline-block;
        background: url("#{$theme-url-base}/media/images/beian.png") center
          no-repeat;
        background-size: contain;
        vertical-align: middle;
      }
      &-bar {
        &::before {
          content: "|";
          padding: 0 5px;
          color: var(--color-footer-legal);
        }
      }
    }
  }
}
