.header-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-identity strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.18;
}

.header-identity small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.2;
}

.header-identity .powered-by {
  margin-top: .12rem;
  font-size: .78rem;
}

.privacy-notice {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: #d6dee6 !important;
  font-size: .82rem;
  line-height: 1.5;
}

.compliance-footer {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(390px, 1.15fr) minmax(300px, 1fr);
  align-items: start;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-cobranding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.25);
}

.footer-brand strong,
.footer-company strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  line-height: 1.3;
}

.footer-identity .footer-powered {
  margin-top: .2rem;
  font-size: .82rem;
}

.footer-brand small,
.footer-company small {
  display: block;
  color: #aebac5;
  font-size: .72rem;
  line-height: 1.4;
}

.licensing-block p {
  margin: 0 0 .35rem;
}

.licensing-block strong {
  color: #fff;
}

.licensing-block a {
  color: #e3c889;
  text-underline-offset: .2rem;
}

.equal-housing {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  margin-top: .85rem;
  padding: .55rem .75rem .55rem .55rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
}

.housing-icon {
  display: block;
  width: 62px;
  height: auto;
  padding: 2px;
  border-radius: 3px;
  background: #fff;
}

.equal-housing p {
  margin: 0;
  line-height: 1.35;
}

.equal-housing strong,
.equal-housing span {
  display: block;
}

.equal-housing span {
  margin-top: .15rem;
  color: #aebac5;
  font-size: .75rem;
}

.compliance-footer .legal {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1220px) {
  .site-header .menu {
    display: block;
    border: 1px solid var(--line);
    background: #fff;
    padding: .55rem .8rem;
    font: inherit;
    font-weight: 600;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding: .75rem;
  }

  .compliance-footer {
    grid-template-columns: 1fr 1.3fr;
  }

  .compliance-footer .legal {
    grid-column: 1 / -1;
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .site-header nav {
    top: 72px;
  }

  .compliance-footer {
    grid-template-columns: 1fr;
  }

  .compliance-footer .legal {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header .brand {
    gap: .4rem;
  }

  .header-identity strong {
    max-width: 185px;
    font-size: .76rem;
  }

  .header-identity small {
    display: block;
    font-size: .6rem;
  }

  .header-identity .powered-by {
    max-width: 185px;
    font-size: .65rem;
  }

  .footer-cobranding {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand-divider {
    width: 100%;
    height: 1px;
  }
}
