/* Shared EN/PT footer. Keep page-specific content and header styles independent. */
.site-footer[data-shared-footer] {
  --footer-width: 90rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
}
.site-footer[data-shared-footer] .footer-grid {
  width: min(calc(100% - 2rem), var(--footer-width));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 1fr) minmax(14rem, .7fr);
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.site-footer[data-shared-footer] .footer-identity {
  display: block;
  grid-column: auto;
  min-width: 0;
}
.site-footer[data-shared-footer] .footer-identity strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}
.site-footer[data-shared-footer] .footer-identity p {
  max-width: 34rem;
  margin: .5rem 0 0;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.65;
}
.site-footer[data-shared-footer] .footer-nav,
.site-footer[data-shared-footer] .footer-contact {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-content: stretch;
  min-width: 0;
  gap: .45rem;
}
.site-footer[data-shared-footer] .footer-heading {
  display: block;
  grid-column: auto;
  margin: 0 0 .35rem;
  color: var(--ink);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.65;
}
.site-footer[data-shared-footer] .footer-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1.5rem;
}
.site-footer[data-shared-footer] .footer-link-list {
  display: grid;
  align-content: start;
  gap: .45rem;
}
.site-footer[data-shared-footer] .footer-nav a,
.site-footer[data-shared-footer] .footer-contact a {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: none;
}
.site-footer[data-shared-footer] a:hover {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.site-footer[data-shared-footer] a:focus-visible,
.site-footer[data-shared-footer] button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}
.site-footer[data-shared-footer] .footer-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: .4rem .6rem;
}
.site-footer[data-shared-footer] .footer-email-address {
  overflow-wrap: anywhere;
  user-select: text;
}
.site-footer[data-shared-footer] .email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  margin: 0;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.site-footer[data-shared-footer] .email-copy:hover { border-color: var(--purple); }
.site-footer[data-shared-footer] .email-copy-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
}
.site-footer[data-shared-footer] .email-copy-status:empty { display: none; }
.site-footer[data-shared-footer] .footer-bottom {
  display: block;
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.65;
}
.site-footer[data-shared-footer] .footer-bottom > span {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.site-footer[data-shared-footer] #copyright-year {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
@media (max-width: 68rem) {
  .site-footer[data-shared-footer] .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer[data-shared-footer] .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
  .site-footer[data-shared-footer] { padding-block: 2rem; }
  .site-footer[data-shared-footer] .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer[data-shared-footer] .footer-contact { grid-column: auto; }
  .site-footer[data-shared-footer] .footer-nav a,
  .site-footer[data-shared-footer] .footer-contact > a { display: flex; align-items: center; min-height: 2.5rem; }
}
@media print { .site-footer[data-shared-footer] { display: none !important; } }
