// Footer
.c-footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  color: $footer-color;
  align-content: center;
  height: $footer-height;
  padding: $footer-padding;
  z-index: $footer-z-index;
  line-height: $footer-height;
  font-size: $footer-font-size;
  justify-content: space-between;
  border-top: $footer-border-top;
  font-family: $footer-font-family;
  background-color: $footer-bg-color;

  &-link {
    line-height: 1.4;
    align-items: center;
    display: inline-flex;
    padding-right: $space-0;
    color: $footer-color-link;
    font-size: $footer-font-size;
    background-color: transparent;

    &::after {
      cursor: default;
      padding-left: inherit;
      vertical-align: middle;
      margin: $footer-links-margin;
      content: $footer-links-divider;
      color: $footer-links-divider-color;
    }

    &:last-child::after {
      display: none;
    }

    &:last-child {
      margin-right: $space-0;
    }

    .c-a {
      text-decoration: underline;
    }
  }

  &.c-footer-transparent {
    background-color: transparent;
  }

  &.c-footer-inverse {
    color: $footer-color-inverse;
    height: $footer-height-inverse;
    line-height: $footer-height-inverse;
    background-color: $footer-bg-inverse;

    .c-footer-link {
      color: $footer-color-inverse;

      &::after {
        content: $footer-links-inverse-divider;
        color: $footer-links-inverse-divider-color;
      }

      .c-a {
        text-decoration: none;
        color: $footer-color-inverse;
      }
    }
  }

  &.c-footer-lg {
    left: 0;
    bottom: 0;
    border-top: 0;
    position: fixed;
    align-items: center;
    padding: 0 $space-sm 0 $space-md;
    transition: height .51s, visibility .51s;

    .c-footer-logo,
    .c-footer-links {
      opacity: 0;
      display: none;
      visibility: hidden;
    }

    .c-footer-left {
      flex: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .c-footer-expand-text {
      padding-right: $space-md;
    }

    .c-footer-right {
      display: flex;

      a {
        color: white;
      }
    }

    &.c-footer-open {
      align-items: center;
      height: $global-footer-height-open;
      padding: $space-xs $space-sm $space-xs $space-md;

      .c-footer-logo,
      .c-footer-links {
        opacity: 1;
        display: flex;
        visibility: visible;
      }

      .c-footer-left {
        justify-content: space-around;
      }

      .c-footer-expand-text {
        display: none;
      }

      .c-footer-right {
        display: flex;

        a {
          display: flex;
          align-self: flex-start;
        }
      }
    }
  }
}
