.m-footer {
  flex-shrink: 0;
  background-color: var(--footer-background-color);
}

.m-footer__content {
  color: $white;
  text-align: center;
  padding: 50px $mobile-space;

  @include respond-to('medium') {
    padding: 75px 0;
    max-width: 680px;
    margin: 0 auto;
  }
}

.m-footer__nav-secondary {
  margin-bottom: 25px;

  .m-secondary-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    li {
      @include respond-to('medium') {
        margin: 0 5px;
      }
    }
  }
}

.m-footer-copyright {
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  line-height: 1.7;
  margin-bottom: $mobile-space;

  span {
    display: block;

    @include respond-to('medium') {
      display: inline;
    }

    &:nth-child(2) {
      display: none;

      @include respond-to('medium') {
        display: inline;
      }
    }
  }

  a {
    text-decoration: underline;
  }

  &.jslicense {
    opacity: 0.7;
    margin-bottom: 0;
  }
}

.m-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;

  a {
    display: inline-block;
    color: $white;
    margin: 0 15px;

    span {
      color: inherit;
      font-size: 1rem;
    }
  }
}

.rtl {
  .m-footer-social {
    direction: ltr;
  }
}
