/* Rodapé — mesmo layout e estilos do projeto Dicionário Informal */
.site-footer {
  --font-ui: "DM Sans", system-ui, sans-serif;
  --t: 180ms ease;
  position: relative;
  z-index: 4;
  background: #1e1e22;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3rem;
  max-width: 100%;
  overflow-x: clip;
}

.footer-main {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1fr auto minmax(12rem, 1.35fr);
  gap: 2rem 2.5rem;
  min-width: 0;
}

.footer-col-spacer {
  height: 1em;
  margin-bottom: 0.85rem;
}

.footer-copyright-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.footer-copyright-line {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.45;
}

.footer-col--copyright .footer-by {
  display: block;
  text-align: right;
}

.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col-title--contact {
  width: 100%;
  text-align: center;
  margin: 0 0 0.85rem 0;
}

.footer-social-nav {
  display: grid;
  grid-template-columns: repeat(3, 2.1rem);
  grid-template-rows: repeat(3, 2.1rem);
  gap: 0.32rem 0.45rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-di-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-di-logo-img {
  height: 40px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--t);
}

.footer-di-nome {
  height: 22px;
  width: auto;
  max-width: min(200px, 40vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--t);
}

.footer-di-brand:hover .footer-di-logo-img,
.footer-di-brand:hover .footer-di-nome { opacity: 0.85; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--t);
}
.footer-contact-link:hover { color: #fff; }

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin: 0 0 0.85rem 0;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-list a,
.footer-link-btn {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  transition: color var(--t);
}
.footer-col-list a:hover,
.footer-link-btn:hover { color: #fff; }
.footer-col-list a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.footer-by {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
}

/* A–Z: 2 linhas horizontais (A–M e N–Z), 13 letras por linha */
.footer-letters-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col-list.footer-letters-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.42rem;
  overflow-x: visible;
  overflow-y: visible;
  padding: 2px 3px 4px;
  box-sizing: border-box;
}

.footer-col-list.footer-letters-row > li {
  flex-shrink: 0;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.footer-store-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.8;
  transition: opacity var(--t);
}
.footer-store-link:hover { opacity: 1; }

.footer-badge {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

.footer-bottom-inner .footer-virtues-link {
  flex-shrink: 0;
}

.footer-virtues-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity var(--t);
}
.footer-virtues-link:hover { opacity: 0.85; color: #fff; }

.footer-virtues-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.footer-virtues-text {
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem 1rem;
  }
  .footer-brand-col,
  .footer-col--copyright {
    grid-column: 1 / -1;
  }
  .footer-main > .footer-col,
  .footer-main > .footer-brand-col {
    min-width: 0;
  }
  .footer-col--letters {
    justify-self: end;
    text-align: right;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .footer-col--letters .footer-col-title {
    text-align: right;
    width: 100%;
  }
  .footer-col--letters .footer-letters-grid {
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .footer-col--letters .footer-col-list.footer-letters-row {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
    overflow-y: visible;
    gap: 0.28rem;
    padding-inline: 4px;
  }
  .footer-col--social {
    justify-self: end;
    align-items: flex-end;
  }
  .site-footer .footer-col--social .footer-col-title--contact {
    text-align: right;
  }
  .footer-col--social .footer-social-nav {
    margin-left: auto;
    margin-right: 0;
  }
  .footer-copyright-block,
  .footer-col--copyright .footer-by {
    text-align: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
  .footer-bottom-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-bottom-inner .footer-virtues-link {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 0.75rem;
    padding: 1.5rem 1rem 1.75rem;
    align-items: start;
  }
  .footer-col--dic .footer-link-btn,
  .footer-col--dic a,
  .footer-col--legal a,
  .footer-contact-link {
    overflow-wrap: normal;
    word-break: normal;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-col--copyright {
    grid-column: 1 / -1;
  }
  .footer-col--copyright .footer-copyright-block,
  .footer-col--copyright .footer-by {
    text-align: center;
  }
  .footer-bottom-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 0.55rem 0.4rem;
    padding: 1rem 0.85rem 1.25rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .footer-bottom-badges {
    display: contents;
  }
  .footer-bottom-inner .footer-store-link {
    flex: none;
    min-width: 0;
    justify-content: center;
  }
  .footer-bottom-inner .footer-virtues-link {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    margin: 0;
  }
  .footer-badge {
    max-height: 42px;
    margin: 0 auto;
  }
}

/* Marca textual Loteca no rodapé (no lugar do wordmark do outro projeto) */
.footer-loteca-brand {
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-loteca-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color var(--t), opacity var(--t);
}

.footer-loteca-brand:hover .footer-loteca-title {
  color: rgba(255, 255, 255, 0.88);
}

.footer-loteca-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer-loteca-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: opacity var(--t);
}

.footer-loteca-brand:hover .footer-loteca-img {
  opacity: 0.88;
}
