.footer-lower {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
}

.footer-columns, .footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.footer-brand { max-width: 22rem; }
.footer-logo { display: block; height: clamp(4rem, 7vw, 5.5rem); width: auto; }
.footer-brand p:empty, .footer-brand p[hidden] { display: none; }
.footer-region:not(:has(p:not([hidden]):not(:empty))) { display: none; }
.footer-legal .cozy-stats-settings { margin: .4rem 0 0; padding-inline: 0; }

.footer-credits {
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid #fff0de26;
}

.footer-account { display: grid; justify-items: end; }
.footer-login {
  margin-top: .65rem;
  padding: .55rem 0 .4rem .75rem;
  border-top: 1px solid #fff0de40;
  font-size: .875rem;
  line-height: 1.35;
  color: #d8bbad;
}
.footer-login:hover, .footer-login:focus-visible { color: #edaf60; }

@media (max-width: 40rem) {
  .footer-columns, .footer-credits { flex-direction: column; gap: 1.15rem; }
  .footer-account { justify-items: start; }
  .footer-login { padding-inline: 0 .75rem; }
}
