.bnacbr-footer {
  flex: 0 0 auto;
  margin-top: auto;
  background: var(--bnacbr-color-header);
  color: var(--bnacbr-color-muted);
}

.bnacbr-footer__frame {
  padding: 40px clamp(20px, 2.8vw, 56px);
}

.bnacbr-footer__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bnacbr-color-line);
}

.bnacbr-footer__identity {
  min-width: 0;
}

.bnacbr-footer__brand {
  display: inline-flex;
  width: 120px;
  border-radius: 4px;
}

.bnacbr-footer__brand img {
  display: block;
  width: 100%;
  height: 24px;
  object-fit: contain;
}

.bnacbr-footer__summary {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.bnacbr-footer__actions {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
}

.bnacbr-footer__button {
  min-width: 144px;
  min-height: 40px;
  margin: 0;
  padding: 10px 24px;
  border: 1px solid var(--bnacbr-color-text);
  border-radius: 6px;
  background: transparent;
  color: var(--bnacbr-color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.bnacbr-footer__button--primary {
  border-color: var(--bnacbr-color-accent);
  background: var(--bnacbr-color-accent);
}

.bnacbr-footer__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: start;
  gap: clamp(32px, 4vw, 72px);
  padding-block: 32px;
}

.bnacbr-footer__menu {
  display: grid;
  width: 100%;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.bnacbr-footer__group {
  min-width: 0;
}

.bnacbr-footer__heading {
  margin: 0 0 20px;
  color: var(--bnacbr-color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.bnacbr-footer__links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bnacbr-footer__link {
  color: var(--bnacbr-color-muted);
  font-size: 14px;
  line-height: 22px;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.bnacbr-footer__link[aria-current="page"] {
  color: var(--bnacbr-color-text);
}

.bnacbr-footer__trust {
  min-width: 0;
  align-self: center;
}

.bnacbr-footer__sponsors {
  padding-bottom: 24px;
  text-align: center;
}

.bnacbr-footer__caption {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 20px;
}

.bnacbr-footer__partners,
.bnacbr-footer__credentials,
.bnacbr-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bnacbr-footer__partners {
  gap: 32px;
}

.bnacbr-footer__partners li,
.bnacbr-footer__credentials li,
.bnacbr-footer__socials li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnacbr-footer__partners img,
.bnacbr-footer__credentials img {
  display: block;
  object-fit: contain;
}

.bnacbr-footer__club {
  width: 48px;
  height: 48px;
}

.bnacbr-footer__partner {
  height: 48px;
}

.bnacbr-footer__credentials {
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bnacbr-color-line);
}

.bnacbr-footer__age {
  width: 32px;
  height: 32px;
}

.bnacbr-footer__flutter {
  width: 69px;
  height: 16px;
}

.bnacbr-footer__ebac {
  width: 70px;
  height: 24px;
}

.bnacbr-footer__seal {
  width: 38px;
  height: 40px;
}

.bnacbr-footer__ibjr {
  width: 90px;
  height: 33px;
}

.bnacbr-footer__legal {
  display: grid;
  min-width: 0;
  gap: 20px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bnacbr-footer__legal p {
  margin: 0;
}

.bnacbr-footer__warning {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bnacbr-footer__warning img {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  object-fit: contain;
}

.bnacbr-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--bnacbr-color-line);
  font-size: 12px;
  line-height: 1.6;
}

.bnacbr-footer__socials {
  justify-content: flex-end;
  gap: 24px;
}

.bnacbr-footer__socials img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (hover: hover) {
  .bnacbr-footer__link:hover {
    color: var(--bnacbr-color-text);
  }

  .bnacbr-footer__button:hover {
    background: var(--bnacbr-color-surface-hover);
  }

  .bnacbr-footer__button--primary:hover {
    border-color: var(--bnacbr-color-accent-hover);
    background: var(--bnacbr-color-accent-hover);
  }
}

@media (max-width: 1100px) {
  .bnacbr-footer__details {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .bnacbr-footer__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 32px;
  }

  .bnacbr-footer__sponsors {
    padding: 0;
  }

  .bnacbr-footer__credentials {
    padding: 0;
    border: 0;
  }
}

@media (max-width: 1000px) {
  .bnacbr-footer__intro {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 800px) {
  .bnacbr-footer__trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .bnacbr-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .bnacbr-footer__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .bnacbr-footer__frame {
    padding-block: 32px;
  }

  .bnacbr-footer__actions {
    width: 100%;
    gap: 12px;
  }

  .bnacbr-footer__button {
    min-width: 0;
    flex: 1;
    padding-inline: 16px;
  }

  .bnacbr-footer__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .bnacbr-footer__group:first-child {
    grid-row: 1 / span 2;
  }

  .bnacbr-footer__group:nth-child(n + 2) {
    grid-column: 2;
  }

  .bnacbr-footer__partners,
  .bnacbr-footer__credentials {
    gap: 24px;
  }

  .bnacbr-footer__warning {
    align-items: flex-start;
    gap: 12px;
  }
}
