.brand-logo {
  flex: 0 1 340px;
  width: min(340px, 32vw);
  max-width: 340px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
  letter-spacing: 0;
}

.brand-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.site-header .brand-logo {
  margin: 8px 0;
}

.site-footer .brand-logo {
  width: min(320px, 32vw);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 9px;
}

.legal-modal .modal-panel {
  width: min(100%, 900px);
}

.legal-modal .modal-content {
  max-width: 78ch;
}

.legal-modal .modal-content h3 {
  margin-top: 2rem;
}

.legal-modal .modal-content h4 {
  margin-top: 1.35rem;
}

@media (max-width: 900px) {
  .brand-logo,
  .site-footer .brand-logo {
    width: min(285px, 31vw);
  }

  .footer-inner {
    gap: 20px;
  }
}

@media (max-width: 650px) {
  .brand-logo,
  .site-footer .brand-logo {
    width: min(245px, calc(100vw - 88px));
  }

  .site-header .brand-logo {
    margin: 7px 0;
  }

  .main-navigation {
    top: 89px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
