/* The legacy footer is replaced at every viewport size. */
footer.legacy-footer {
  display: none !important;
}

footer.mobile-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #f1f0e6;
  text-align: left;
}

.mobile-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 24px 45px;
  background: #272928;
}

.mobile-footer__company {
  flex: 0 1 auto;
  margin: 0 0 0 calc(50% + 29.5px);
  color: #f1f0e6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.mobile-footer__logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(180px, 19vw, 230px);
  max-width: 30%;
  height: auto;
  margin: 0 0 0 auto;
}

.mobile-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.mobile-footer__legal span[aria-hidden="true"] {
  color: #000;
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) and (max-height: 600px) {
  .mobile-footer__top {
    gap: 12px;
    padding: 18px 23px 20px;
  }

  .mobile-footer__company {
    margin-left: 7px;
  }

  .mobile-footer__logo {
    width: min(54vw, 214px);
    max-width: calc(100% - 118px);
  }

  .mobile-footer__legal {
    box-sizing: border-box;
    gap: 10px;
  }

  .mobile-footer__legal span {
    flex: 0 0 auto;
    margin: 0;
  }
}
