@import "mixins";

.footer__bottom-copyright {
  display: flex;
  flex-direction: column;
  height: 80px;
  justify-content: center;
}

.footer__bottom-logotypes {
  border-bottom: 0.1rem solid #dfddd7;
  border-top: 0.1rem solid #dfddd7;
  display: grid;
  grid-template-columns: repeat(3, auto);
  height: 80px;
  margin-left: calc(1.6rem / -2);
  margin-right: calc(1.6rem / -2);

  > a,
  > div {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.footer__links-disclaimer{
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 100;
  letter-spacing: 1px;
  color: var(--footer_disclaimer_text_color, #ffffff);
}

.footer {
  .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(1.6rem / 1.5);
    padding-right: calc(1.6rem / 1.5);
    max-width: calc(1150px + 1.6rem * 2);
    width: 100%;
    position: relative;
  }

  ul,ol{
    li{
      list-style: none;
    }
  }
}

.footer__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 0 1.6rem;

  a {
    color: var(--footer_text_color);
    font-size: 0.9rem;
    margin: 0.8rem 1.6rem 0.8rem 0;
    text-decoration: underline;
  }
}

.footer__bottom {
  background-color: var(--footer_color_secondary);
  color: #0b152d;
  font-size: 0.85rem;
  padding-top: 0.4rem;
}

.footer {
  .badge__container {
    position: relative;
  }
}

.footer__social {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 3.2rem 0 2.4rem;
}

.footer__social-item {
  margin: 0.8rem;

  &::first-of-type {
    margin-left: 0;
  }
  .icon {
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    vertical-align: middle;
    height: 3rem;
    width: 3rem;
  }
}

.footer__responsibility {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4.8rem 0 0;
}
.footer__responsibility-item {
  opacity: 0.5;
  padding: 0.4rem;
  transition: opacity 0.15s ease-in-out;
}

.footer__menu {
  a {
    color: var(--footer_text_color);
    text-decoration: none;
    transition: color 0.15s ease-in-out;

    &:hover {
      color: var(--footer_text_color_hover);
    }
  }
}

.footer__menu-column {
  .footer-menu {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0px;
  }

  .footer-menu__item {
    margin-bottom: 0.8rem;

    a {
      font-size: 0.9rem;
    }
  }

  > a,
  span {
    color: var(--footer_text_color);
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(1.6rem * -1);

  > * {
    flex-shrink: 0;
    margin-top: 1.6rem;
    max-width: 100%;
    width: 100%;
  }
}

.footer {
  .badge {
    background-color: #514751;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
    height: 2.2rem;
    justify-content: center;
    left: 0;
    padding: 0 1.6rem;
    text-transform: uppercase;
    position: absolute;
    top: 0;

    &::after {
      border-right: 1.6rem solid transparent;
      border-top: 2.2rem solid #514751;
      content: "";
      display: block;
      height: 1.6rem;
      right: -1.6rem;
      width: 1.6rem;
      position: absolute;
      top: 0;
    }

    &.badge--light {
      background-color: #dfddd7;
      color: #0b152d;

      &::after {
        border-top-color: #dfddd7;
      }
    }
  }
}

.footer__main {
  background-color: var(--footer_color_main);
  color: var(--footer_text_color);
  overflow: hidden;

  .row {
    margin-top: 0;
  }

  .footer_as-featured-on {
    background-color: var(--footer_color_main);

    .container {
      padding-top: calc(3.2rem / 2);
    }
  }

  .footer__brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2.6rem 0;

    img {
      height: 1.5rem;
      margin: 1.2rem 1rem 0;
      opacity: 0.8;
      width: auto;
    }
  }
}

@include md {
  .footer__bottom-copyright {
    flex-grow: 1;
    text-align: right;
  }

  .footer__as-featured-on {
    > .container {
      padding-top: 3.2rem;
    }
  }

  .footer {
    .container {
      padding-left: calc(1.6rem / 2);
      padding-right: calc(1.6rem / 2);
    }
  }

  .footer {
    .badge__container.container {
      > .badge {
        left: calc(1.6rem / 2);
      }
    }
  }

  .footer__brands {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 0;
  }

  .footer__brands img {
    margin: 0 1.6rem;
  }

  .footer__responsibility {
    flex-wrap: nowrap;
    padding: 4rem 0 4rem;
  }

  .footer__responsibility-item {
    margin-bottom: 0;
    margin-top: 0;

    img {
      max-width: 22rem;
    }
  }
}

@include sm {
  .footer__responsibility-item {
    img {
      max-width: 19rem;
    }
  }

  .footer__menu {
    padding-top: 1.4rem;
  }

  .footer__menu-column {
    > a,
    span {
      margin-bottom: 1.6rem;
    }
  }

  .footer {
    .col-md-8 {
      flex: 0 0 auto;
      width: 66.6666666667%;
    }
  }
  .footer {
    .col-md-3,
    .col-md-4,
    .col-md-6 {
      font-size: 1.1rem;
      line-height: 1.2;
    }
  }

  .footer {
    .col-md-3 {
      flex: 0 0 auto;
      width: 25%;
    }
  }

  .footer {
    .col-md-1 {
      flex: 0 0 auto;
      width: 8.3333333333%;
    }
  }

  .footer__social {
    border-top: 1px solid #514751;
    flex-wrap: nowrap;
    padding: 3rem 0 4rem;
  }

  .footer__links {
    border-top: 1px solid #514751;
    padding: 2.3rem 0;

    a {
      margin-bottom: 0;
      margin-top: 0;
      &:hover {
        color: var(--footer_text_color_hover);
      }
    }
  }

  .footer__bottom {
    .container {
      align-items: center;
      display: flex;
      height: 80px;
      justify-content: space-between;
    }
  }

  .footer__bottom-logotypes {
    border-bottom: 0;
    border-left: 0.1rem solid #dfddd7;
    border-right: 0.1rem solid #dfddd7;
    border-top: 0;
    flex-grow: 0;
    height: 100%;
    margin: 0;

    > a,
    > div {
      padding: 0 2rem;
    }

    .footer__bottom-copyright {
      flex-grow: 1;
      font-weight: 600;
      text-align: right;
    }
  }
}

//NEW

@include xxs {
  .footer__responsibility {
    border-top: 1px solid #514751;
    justify-content: space-around;
    padding: 1.8rem 0 0;
  }

  .footer__main {
    .footer__brands {
      padding-top: 2.6rem;
      padding-bottom: 2rem;
    }
  }

  .footer__responsibility-item {
    margin-top: 1.6rem;
    opacity: 0.5;
    padding: 0.4rem;
    transition: opacity 0.15s ease-in-out;
  }
}

@include xs {
}

@include sm {
  .footer__bottom-label {
    display: block;
    flex-grow: 0;
    height: auto;
    padding-right: 1.2rem;
  }

  .footer__bottom-logotypes {
    border: 0px;
  }
}

@include md {
  .footer__main {
    .footer__brands {
      padding-top: 0;
      padding-bottom: 1.5rem;
    }
  }
}
