footer .footer {
  background: var(--color-white);
  color: var(--color-black);
  font-size: var(--body-font-size-xs);
  padding: 30px;
}

footer .footer > div {
  max-width: 1920px;
  margin: auto;
}

footer .footer-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer .footer-logo {
  margin: auto;
}

footer .footer-menu {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  width: 100%;
}

footer .footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

footer .footer-menu h1 {
  margin: 0;
  font-size: var(--body-font-size-l);
  font-weight: 600;
}

footer .footer-main ul li {
  font-size: var(--body-font-size-l);
  font-weight: 400;
  margin: 10px 0;
}

footer .footer-main ul li a {
  border-bottom: none !important;
}

footer .footer-main ul li a svg {
  fill: var(--color-black)
}

footer .footer-main a:hover, footer .footer-main a:focus {
  border-bottom: none !important;
}

footer .footer-main ul li .icon {
  width: auto;
  height: 1em;
  position: relative;
  bottom: -2px;
  margin-right: 5px;
}

footer .footer-main ul li ul {
  transition:  max-height 0.25s ease-in-out;
  max-height: 1000px;
  padding-left: 16px;
}

footer .footer-main ul li[aria-expanded="false"] ul {
  max-height: 0;
}

footer .footer-main ul li .footer-menu-expand-button {
  font-weight: normal;
  width: 97% !important;
}

footer .footer-copyright {
  font-size: var(--body-font-size-l);
  border-top: 1px solid var(--color-light-cool-gray);
  border-bottom: 1px solid var(--color-light-cool-gray);
  padding: 15px 0;
  margin-top: 0;
}

footer .footer-copyright p {
  margin: 0;
  line-height: 1.75;
}

footer div.footer-menu button.footer-menu-expand-button {
  padding: 0;
  margin: 0;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

footer div.footer-menu button.footer-menu-expand-button svg {
  width: 8px;
  height: 8px; 
  transition: .3s ease-in-out;
  filter: invert(100%);
}

footer div.footer-menu button.footer-menu-expand-button[aria-expanded="true"]  svg {
  transform: rotate(180deg);
}

footer .footer-ribbon {
  display: none;
  background: var(--color-white);
  max-width: 1920px;
  margin: auto;
  padding: 0 0 40px;
}

footer .footer-partners-wrapper {
  font-size: var(--heading-font-size-l);
  letter-spacing: 6px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  max-width: 1400px !important;
  margin: auto;
}

footer .footer-partners-wrapper a:hover, 
footer .footer-partners-wrapper a:focus {
  border-bottom: none !important;
}

footer .footer-partners-wrapper p {
  margin: 0;
  letter-spacing: .4em;
  font-weight: 500;
  font-size: var(--heading-font-size-s);
  font-family: var(--heading-font-family);
}

footer .footer-partner {
  width: 300px;
  margin: 0 auto;
  border: none;
  display: block;
}

footer .footer-partner:nth-child(1) {
  height: 150px;
}

footer .footer-partner:nth-child(2) {
  height: 150px;
}

footer .footer-partner:nth-child(3) {
  height: 150px;
}

footer .footer #ot-sdk-btn.ot-sdk-show-settings,
footer .footer #ot-sdk-btn.optanon-show-settings,
footer .footer #ot-sdk-btn.ot-sdk-show-settings:hover,
footer .footer #ot-sdk-btn.optanon-show-settings:hover {
  color: var(--color-black);
  padding: 0;
  cursor: pointer;
  font-size: unset;
  border: unset;
  background-color: unset;
}

/* mobile */
@media (max-width: 767px) {
  footer div.footer-menu > div {
    position: relative;
    padding: 10px 0;
    border-top: 1px solid var(--color-light-cool-gray);
    transition: all 0.3s ease-in-out;
  }

  footer div.footer-menu-item {
    display: grid;
    grid-template-rows: 1fr;
    transition:  grid-template-rows 0.25s ease-in-out;
  }
  
  footer div.footer-menu-item[aria-expanded="false"] {
    grid-template-rows: 0fr;
  }
}

/* tablet */
@media (min-width: 768px) {
  footer .footer {
    padding: 30px 0;
  }

  footer .footer-main {
    padding: 0 35px;
    gap: 50px;
    flex-direction: row;
  }

  footer .footer-logo {
    margin: 0;
  }

  footer .footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    row-gap: 60px;
    column-gap: 20px;
  }

  footer .footer-copyright {
    margin: 30px 35px 0;
  }

  footer .footer-partners-wrapper {
    font-size: var(--heading-font-size-xxl);
  }

  footer .footer-partners-wrapper p {
    font-size: var(--heading-font-size-l);
  }
  
  footer .footer-partner {
    height: 100% !important;
    width: 100%;  
    border: none;
    display: block;
    margin: 0;
  }
  
  footer .footer-partner:nth-child(1) {
    flex-basis: 280px;
  }
  
  footer .footer-partner:nth-child(2) {
    flex-basis: 380px;
  }

  footer .footer-partner:nth-child(3) {
    flex-basis: 280px;
  }
}

/* desktop */
@media (min-width: 1280px) {
  footer .footer-menu h1 {
    font-size: var(--body-font-size-xxl);
  }

  footer .footer-main ul li {
    font-size: var(--body-font-size-xl);
  }

  footer .footer-copyright {
    font-size: var(--body-font-size-xl);
  }

  footer .footer-partners-wrapper {
    font-size: var(--heading-font-size-xxxl);
  }

  footer .footer-menu {
    grid-template-columns: repeat(4, 1fr);
  }

  footer .footer-partner:nth-child(1) {
    flex-basis: 400px;
  }

  footer .footer-partner:nth-child(2) {
    flex-basis: 540px;
  }

  footer .footer-partner:nth-child(3) {
    flex-basis: 420px;
  }

  footer .footer-partners-wrapper p {
    font-size: var(--heading-font-size-xl);
  }
}
