/* Only pages opting into the minimal legal footer use these rules. */
.footer.footer--legal {
  display: block;
  width: 100%;
  margin: 0;
  border-top: 1px solid #ffffff35;
  padding: 28px 0;
  color: #fff;
  background: #090909;
  text-align: left;
}

.footer.footer--legal .legal-footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer.footer--legal .footer-brand-logo {
  display: block;
  width: 138px;
  height: auto;
  margin: 0;
}

.footer.footer--legal .footer-copyright {
  color: #ffffffad;
  font-size: 11px;
  line-height: 1.5;
}

.footer.footer--legal .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer.footer--legal .footer-legal a {
  color: #ffffffad;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.footer.footer--legal .footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer.footer--legal a:focus-visible {
  outline: 2px solid #ff66c4;
  outline-offset: 4px;
}

.footer-disclosures[data-footer-disclosures] {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  color: #bdbdc7;
  background: #10111f;
  text-align: left;
}

.footer-disclosures[data-footer-disclosures] p {
  max-width: none;
  margin: 0 0 12px;
  color: #bdbdc7;
  font-size: 12px;
  line-height: 1.65;
}

.footer-disclosures[data-footer-disclosures] p:last-child {
  margin-bottom: 0;
}

/* Keep any closing-section flex spacer above both blocks, not between them. */
.closing > .footer-disclosures[data-footer-disclosures] {
  margin-top: auto;
}

.closing > .footer.footer--legal {
  margin-top: 0;
}

@media (max-width: 640px) {
  .footer.footer--legal .legal-footer-inner {
    width: calc(100% - 32px);
    flex-direction: column;
    text-align: center;
  }

  .footer.footer--legal .footer-legal {
    justify-content: center;
  }

  .footer-disclosures[data-footer-disclosures] {
    padding: 24px 16px;
  }
}
