/* Only these two components are styled here. The approved marketing footer
   has its own markup and remains the visual reference. */
@font-face {
  font-family: BbaInter;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.site-footer.bba-product-footer {
  background: #1b102d;
  color: #dfd4ed;
  border: 0;
  padding: 48px 0 32px;
  font-family: BbaInter, Arial, sans-serif;
}
.bba-product-footer .footer-wrap {
  width: min(1200px, calc(100% - 80px));
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px 48px;
  align-items: start;
}
.bba-product-footer .footer-wrap > :not(nav) { grid-column: 1; }
.bba-product-footer .footer-wrap > .brand { margin: 0; }
.bba-product-footer .footer-wrap > p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 280px; color: #dfd4ed; }
.bba-product-footer :is(.brand, .brand strong, .customer-powered a) { color: #fcfaff; font-family: BbaInter, Arial, sans-serif; }
.bba-product-footer .brand-mark { background: #432764; color: #c4a9ff; border: 0; }
.bba-product-footer .preview-label { color: #dfd4ed; border-color: #67507d; background: transparent; width: fit-content; }
.bba-product-footer .footer-legal {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  text-align: left;
}
.bba-product-footer .bba-footer-column h2 { margin: 0 0 12px; color: #fcfaff; font: 600 14px/1.5 BbaInter, Arial, sans-serif; letter-spacing: 0; }
.bba-product-footer .bba-footer-column :is(a, button) { display: block; margin: 0; padding: 6px 0; color: #dfd4ed; font: 400 14px/1.5 BbaInter, Arial, sans-serif; text-decoration: none; background: none; border: 0; text-align: left; }
.bba-product-footer .bba-footer-column :is(a, button):hover { color: #fff; text-decoration: underline; }
.bba-product-footer .auth-footer-content, .bba-product-footer .customer-powered { display: flex; flex-direction: column; align-items: start; gap: 12px; color: #dfd4ed; font-size: 14px; }
.analytics-consent.bba-product-consent {
  position: fixed;
  z-index: 100;
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  left: 50%; right: auto; bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 24px;
  background: #fff;
  color: #211a2d;
  border: 1px solid #e6e2ed;
  border-radius: 16px;
  box-shadow: 0 12px 32px #28134826;
  font-family: BbaInter, Arial, sans-serif;
}
.analytics-consent.bba-product-consent[hidden] { display: none; }
.bba-product-consent .analytics-consent-copy { min-width: 0; max-width: 640px; }
.bba-product-consent .analytics-consent-copy strong { color: #211a2d; font-size: 14px; }
.bba-product-consent .analytics-consent-copy p { margin: 4px 0; color: #62596f; font-size: 13px; line-height: 1.5; }
.bba-product-consent .analytics-consent-copy a { color: #5926d6; font-size: 13px; }
.bba-product-consent .analytics-consent-actions { display: flex; gap: 12px; flex: none; }
.bba-product-consent .analytics-consent-actions .button { min-height: 48px; min-width: 160px; padding: 12px 16px; border: 1px solid #6f3bf5; border-radius: 10px; background: #6f3bf5; color: #fff; font: 600 14px BbaInter, Arial, sans-serif; box-shadow: none; transform: none; }
.bba-product-consent .analytics-consent-actions .button-secondary { color: #211a2d; background: #fff; border-color: #e6e2ed; }
.bba-product-footer :focus-visible, .bba-product-consent :focus-visible { outline: 3px solid #c4a9ff; outline-offset: 3px; }
@media (max-width: 800px) {
  .bba-product-footer .footer-wrap { width: calc(100% - 48px); grid-template-columns: 1fr; gap: 20px; }
  .bba-product-footer .footer-legal { grid-column: 1; grid-row: auto; margin-top: 12px; gap: 24px; }
  .analytics-consent.bba-product-consent { flex-direction: column; align-items: stretch; gap: 16px; }
  .bba-product-consent .analytics-consent-actions .button { flex: 1; }
}
@media (max-width: 500px) {
  .bba-product-footer .footer-legal { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .bba-product-footer .bba-footer-column:last-child { grid-column: 1 / -1; }
  .bba-product-footer .bba-footer-column :is(a, button) { min-height: 44px; }
  .analytics-consent.bba-product-consent { bottom: 16px; padding: 20px; }
  .bba-product-consent .analytics-consent-actions .button { min-width: 0; font-size: 12px; padding: 12px 8px; }
}

/* Mobile columns read as three aligned groups rather than uneven rows. */
@media(max-width:600px) {
  .bba-product-footer .footer-legal { grid-template-columns:1fr; gap:28px; }
  .bba-product-footer .bba-footer-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; align-items:start; }
  .bba-product-footer .bba-footer-column h2 { grid-column:1/-1; margin-bottom:2px; }
  .bba-product-footer .bba-footer-column :is(a,button) { min-width:0; margin:0; overflow-wrap:break-word; }
}
