@import './../../styles/variables/index.scss';
@import './../../styles/utils/index.scss';

.footer {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid #dfdfdf;

  @media (min-width: 560px) {
    padding: 40px 0 32px;
  }

  a {
    transition: color 0.3s;

    &:hover {
      color: #2766c4;
    }
  }

  > .container {
    max-width: 1366px;
    display: flex;
    gap: 16px;
    padding: 0 40px;
    position: relative;

    color: $main-blue;
    font-family: $font-family-atak-light;
    font-size: $font-size-xsm;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 20px;
    width: 100%;
    flex-direction: column;

    @media (min-width: 560px) {
      gap: 64px;
      flex-direction: row;
      padding: 0 42px;
    }

    @media (min-width: 900px) {
      gap: ruleOfThree(1366px, 100%, 85px);
    }

    > .container {
      position: static;
      padding: 0;
      display: flex;
      width: 100%;
      @media (min-width: 560px) {
        flex-direction: column;
      }
      > div {
        &:first-child {
          @media (min-width: 560px) {
            gap: ruleOfThree(560px, 100%, 64px);
            display: flex;
            width: 100%;
          }
          @media (min-width: 900px) {
            max-width: 100%;
            gap: ruleOfThree(1366px, 100%, 85px);
          }
        }
        .menus {
          flex: 128px 0;
        }
      }
    }

    .menus {
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
      line-height: 23px;
      font-size: 18px;
      margin: 16px 0;

      @media (min-width: 560px) {
        gap: 8px;
        line-height: 20px;
        font-size: $font-size-xsm;
        margin: 0;
      }
      @media (min-width: 900px) {
        gap: 13px;
      }
    }

    .coFinanced {
      font-size: 15px;
      line-height: 23px;

      font-family: $font-family-atak-light;
      margin-top: 24px;

      @media (min-width: 560px) {
        font-size: 10px;
        margin-top: 40px;
      }

      @media (min-width: 900px) {
        margin-top: 24px;
      }

      a {
        > img {
          width: calc(100% - 41px);
          max-width: 500px;
          @media (min-width: 560px) {
            max-width: 500px;
            width: 100%;
          }
        }
      }

      &.mobile {
        display: block;
        @media (min-width: 560px) {
          display: none;
        }
      }
      &.tablet {
        display: none;
        @media (min-width: 560px) and (max-width: 899px) {
          display: flex;
          align-items: center;
          justify-content: space-between;
          > div {
            &:first-child {
              padding-right: 20px;
            }
          }
        }
      }
      &.desktop {
        display: none;
        @media (min-width: 900px) {
          display: block;
        }

        &.mobile {
          display: block;
          @media (min-width: 560px) and (max-width: 899px) {
            display: none;
          }
        }
      }
    }

    .policies {
      display: flex;
      gap: 12px;
      margin-top: 32px;
      font-size: 12px;

      @media (min-width: 560px) {
        font-size: 11px;
        max-width: 243px;
        justify-content: space-between;
      }

      @media (min-width: 900px) {
        font-size: 13px;
        max-width: 349px;
        gap: 36px;
      }

      > div:first-child {
        @media (min-width: 560px) {
          max-width: 160px;
        }
      }

      > div:nth-child(2) {
        @media (min-width: 560px) {
          max-width: 130px;
        }
      }
      &.desktop {
        display: none;
        @media (min-width: 900px) {
          display: flex;
        }
        &.mobile {
          display: flex;
          @media (min-width: 560px) and (max-width: 899px) {
            display: none;
          }
        }
      }
      &.mobile {
        display: block;
        @media (min-width: 560px) {
          display: none;
        }
      }
      &.tablet {
        display: none;
        @media (min-width: 560px) and (max-width: 899px) {
          display: flex;
        }
      }
    }

    .containerContactsLegacies {
      display: flex;
      flex-direction: column;

      .contacts {
        max-width: 305px;
        display: flex;
        gap: 16px;
        flex-direction: column;
        font-size: 15px;
        margin: 16px 0;

        @media (min-width: 560px) {
          font-size: $font-size-xsm;
          margin: 0;
          gap: 36px;
        }

        @media (min-width: 900px) {
          flex-direction: row;
        }

        > div:first-child {
          @media (min-width: 560px) {
            max-width: 140px;
          }
        }

        > div:nth-child(2) {
          @media (min-width: 560px) {
            max-width: 130px;
          }
        }

        .disclaimer {
          font-size: $font-size-sm;
          opacity: 0.7;
        }
      }
    }

    .socialMedia {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-top: 16px;

      > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
        &:first-child {
          flex: 1;
        }
      }

      .LinkedIn,
      .Facebook {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        line-height: 15px;
      }

      .LinkedIn::before {
        content: '';
        display: inline-block;
        background: url('../../public/imgs/icons/LI.svg');
        width: 9px;
        height: 9px;
        margin-right: 4px;
      }

      .Facebook::before {
        content: '';
        display: inline-block;
        background: url('../../public/imgs/icons/FB.svg');
        width: 6px;
        height: 9px;
        margin-right: 4px;
      }

      &.desktop,
      &.tablet {
        display: none;
      }
      @media (min-width: 560px) {
        &.mobile {
          display: none;
        }
        &.tablet {
          display: flex;
          margin-top: 16px;
        }
      }
      @media (min-width: 900px) {
        &.tablet {
          display: none;
        }
        &.desktop {
          display: flex;
          margin-top: 0;
          width: 15%;
        }
      }
    }
    .affinita {
      font-size: 15px;
      line-height: 23px;
      padding-top: 28px;
      font-family: $font-family-atak-light;

      img {
        width: 100%;
        max-width: 100px;

        @media (min-width: 560px) {
          margin-top: 5px;
          max-width: 155px;
        }
      }
      &.desktop,
      &.tablet {
        display: none;
      }
      @media (min-width: 560px) {
        padding-top: 0;
        font-size: 10px;
        line-height: 13px;

        &.mobile {
          display: none;
        }
        &.tablet {
          display: block;
        }
      }
      @media (min-width: 900px) {
        padding-bottom: 59px;

        &.tablet {
          display: none;
        }
        &.desktop {
          display: block;
        }
      }
    }

    .playItAgainSam {
      position: absolute;
      right: 0;
      top: 0;
      width: 100%;

      @media (min-width: 560px) {
        position: static;
        right: unset;
        width: auto;
      }

      button {
        position: absolute;
        right: 48px;
        display: block;
        transform: rotate(-90deg);
        transform-origin: right;
        margin-top: -10px;
        font-family: $font-family-newsreader;
        font-size: $font-size-xxdefault;
        font-style: italic;
        cursor: pointer;
        border: 0;
        padding: 0;
        background: transparent;
        color: $main-blue;

        @media (min-width: 560px) {
          font-size: $font-size-xsm;
        }
      }
    }
  }
}
