:root, [data-color-scheme="light"] {
  --_bic-footer-aacsb-logo: url("./assets/accreditations/aacsb.svg");
  --_bic-footer-amba-logo: url("./assets/accreditations/amba.svg");
  --_bic-footer-equis-logo: url("./assets/accreditations/equis.svg");
}

[data-color-scheme="dark"] {
  --_bic-footer-aacsb-logo: url("./assets/accreditations/aacsb-neg.svg");
  --_bic-footer-amba-logo: url("./assets/accreditations/amba-neg.svg");
  --_bic-footer-equis-logo: url("./assets/accreditations/equis-neg.svg");
}

.bi-footer {
  --bic-footer-color: var(--bi-color-neutral-text);
  --bic-footer-background: var(--bi-color-neutral-surface-subtle);
  width: 100%;
  color: var(--bic-footer-color);
  background-color: var(--bic-footer-background);
  font-family: var(--bi-font-family-plain);
  padding: var(--bi-scale-16x) 0;
  justify-content: center;
  align-items: center;
  gap: var(--bi-scale-10x);
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -1px;
  display: flex;

  & .bi-footer--links-container {
    gap: var(--bi-scale-4x) var(--bi-scale-14x);
    flex-wrap: wrap;
    justify-content: center;
    display: flex;

    @media (width < 768px) {
      flex-direction: column;
    }

    & .bi-footer--links {
      min-height: 44px;
      font: var(--bi-font-label-large);
      flex-direction: row;
      justify-content: center;
      align-items: center;
      margin: auto;
      display: flex;

      @media (width < 768px) {
        flex-direction: column;
      }

      & > p {
        margin: 0 var(--bi-scale-0-50x) 0 0;
        font-weight: 300;

        @media (width < 768px) {
          margin: var(--bi-scale-3x) 0;
        }
      }

      & > div {
        justify-content: center;
        align-items: center;
        gap: var(--bi-scale-3x) var(--bi-scale-10x);
        white-space: nowrap;
        flex-direction: row;
        width: 100%;
        display: flex;

        @media (width < 768px) {
          flex-direction: column;
        }
      }
    }
  }

  & .bi-footer--accreditations {
    justify-content: center;
    align-items: center;
    gap: var(--bi-scale-12x);
    flex-wrap: wrap;
    min-height: 58px;
    display: flex;

    @media (width < 768px) {
      gap: var(--bi-scale-2x) var(--bi-scale-1x);
    }

    & .bi-footer--aacsb, & .bi-footer--amba, & .bi-footer--equis {
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      height: 58px;
      display: block;
    }

    & .bi-footer--aacsb {
      background-image: var(--_bic-footer-aacsb-logo);
      width: 127px;
    }

    & .bi-footer--amba {
      background-image: var(--_bic-footer-amba-logo);
      width: 122px;
    }

    & .bi-footer--equis {
      background-image: var(--_bic-footer-equis-logo);
      width: 104px;
    }
  }

  & .bi-footer--socials {
    justify-content: center;
    align-items: center;
    gap: var(--bi-scale-8x);
    flex-wrap: wrap;
    display: flex;

    @media (width < 768px) {
      gap: var(--bi-scale-2x);
    }
  }

  & .bi-footer--copyright {
    text-align: center;
    font: var(--bi-font-body-large);
    font-weight: var(--bi-font-weight-regular);
    margin: 0;
  }
}
