/* ==========================================================================
   CARTA MAGNA — Shared footer
   ==========================================================================
   The same footer closes every page: brand mark, tagline and the two legal
   links (Aviso legal · Política de privacidad). Kept in its own file so the
   legal pages and the product pages can share it without pulling in the home
   page chrome (and its narrower --shell).
   ========================================================================== */

.bn-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
}
.bn-footer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 34px;
  font-size: var(--fs-caption);
}
.bn-footer__inner img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.bn-footer__inner p {
  margin: 0;
}

/* Legal links — shared by every page footer */
.bn-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-left: auto;
}
.bn-footer__links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-ola), border-color 160ms var(--ease-ola);
}
.bn-footer__links a:hover,
.bn-footer__links a:focus-visible,
.bn-footer__links a[aria-current="page"] {
  color: var(--text-on-dark);
  border-bottom-color: currentColor;
}

@media (max-width: 620px) {
  /* Stack the footer vertically and center each item: logo on its own line,
     then the tagline, then the legal links. */
  .bn-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bn-footer__links {
    margin-left: 0;
    flex-basis: auto;
    justify-content: center;
  }
}
