:root {
  --footer-bg: #0d0d0f;
  --footer-bar: #09090b;
  --footer-text: #d6d6db;
  --footer-muted: #8f8f98;
  --footer-link: #fff;
  --footer-line: #ffffff1a;
}
.site-footer.site-footer-shared {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: "DM Sans", sans-serif;
  text-align: left;
}
.site-footer-shared .section-shell {
  width: min(1160px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
}
.site-footer-shared .sf-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 44px 0 36px;
  border: 0;
}
.site-footer-shared .sf-col {
  min-width: 0;
  overflow-wrap: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer-shared .sf-col > span {
  color: var(--footer-text);
  font:
    400 14.5px/1.5 "DM Sans",
    sans-serif;
}
.site-footer-shared .sf-col > .sf-label {
  margin-bottom: 4px;
  color: var(--footer-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer-shared a {
  color: var(--footer-link);
  text-decoration: none;
}
.site-footer-shared a:hover {
  text-decoration: underline;
}
.site-footer-shared .sf-bar {
  background: var(--footer-bar);
  border-top: 1px solid var(--footer-line);
}
.site-footer-shared .sf-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border: 0;
}
.site-footer-shared .sf-bottom > span,
.site-footer-shared .sf-bottom > a {
  font:
    400 13px/1.5 "DM Sans",
    sans-serif;
  color: var(--footer-muted);
}
.site-footer-shared .sf-bottom > :first-child {
  justify-self: start;
}
.site-footer-shared .sf-bottom > :nth-child(2) {
  justify-self: end;
}
.site-footer-shared .sf-bottom > a {
  justify-self: end;
  color: var(--footer-text);
  font-weight: 600;
}
.site-footer-shared strong {
  display: inline;
  color: var(--footer-link);
}
@media (max-width: 900px) {
  .site-footer-shared .section-shell {
    width: calc(100% - 40px);
  }
  .site-footer-shared .sf-cols {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 0 28px;
  }
  .site-footer-shared .sf-bottom {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 0;
  }
  .site-footer-shared .sf-bottom > :nth-child(2),
  .site-footer-shared .sf-bottom > a {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .site-footer.site-footer-shared .sf-bottom {
    padding-block: 14px;
  }
  body .site-footer.site-footer-shared .sf-bottom > span {
    font-size: 13px;
    white-space: normal;
  }
}

/* Blocos com fundo próprio mantêm um respiro antes do rodapé. */
body:has(.site-footer-shared) main > :last-child:not(dialog):not(.faq-cta) {
  margin-bottom: 0;
}
body:has(.site-footer-shared) main > :is(.section-block, .section-shell):last-child {
  padding-bottom: 32px;
}
body:has(.site-footer-shared) .catalog-content {
  padding-bottom: 32px;
}

.site-footer-shared .section-shell {
  width: var(--site-content-width, min(1160px, calc(100% - 48px)));
}

/* Créditos em linhas inteiras, sem comprimir letras ou quebrar nomes. */
@media (max-width: 700px) {
  .site-footer.site-footer-shared .sf-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
  }
  body .site-footer.site-footer-shared .sf-bottom > span {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }
  .site-footer-shared .sf-col > span {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .site-footer.site-footer-shared .sf-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Alinhamento compartilhado também pelo catálogo de Brindes. */
.site-footer-shared .sf-contact {
  grid-column: 1;
  text-align: left;
}
.site-footer-shared .sf-company {
  grid-column: 2;
  text-align: center;
}
.site-footer-shared .sf-address {
  grid-column: 3;
  text-align: right;
}
body:has(.site-footer-shared) main > .faq-cta:last-child {
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .site-footer-shared .sf-cols .sf-col {
    grid-column: 1;
    text-align: center;
  }
}
@media (max-width: 700px) {
  body:has(.site-footer-shared) main > .faq-cta:last-child {
    margin-bottom: 24px;
  }
}
