/* Scoped footer layout. Native details remain fully usable without JavaScript. */
.footer.footer--responsive {
  padding: 32px 0 24px;
  color: var(--ic-ink);
  text-align: left;
}
.footer--responsive > .container { max-width: 1180px; min-width: 0; }
.footer.footer--responsive .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr 1.3fr 1fr;
  align-items: start;
  gap: 24px;
  margin: 0;
}
.footer--responsive .footer-col { display: block; min-width: 0; margin: 0; }
.footer--responsive .footer-col--brand {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ic-rule);
  color: var(--ic-ink);
  overflow-wrap: anywhere;
}
.footer--responsive .footer-col--brand span { color: var(--ic-muted); font-size: .875rem; }
.footer--responsive .footer-col__title {
  display: block;
  margin: 0 0 8px;
  color: var(--ic-muted);
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer--responsive summary.footer-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.footer--responsive summary::-webkit-details-marker { display: none; }
.footer--responsive summary::after {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.footer--responsive details[open] > summary::after { transform: rotate(225deg); }
.footer--responsive .footer-group__links { display: grid; align-content: start; gap: 0; }
.footer.footer--responsive a {
  /* Undo the legacy mobile footer's 0.78rem !important without affecting other UI. */
  font-size: .875rem !important;
  line-height: 1.45;
  text-decoration: none;
}
.footer.footer--responsive .footer-link-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: var(--ic-ink);
  overflow-wrap: anywhere;
}
.footer--responsive .footer-group__links .footer-link-icon-svg { display: none; }
.footer.footer--responsive .language-links {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.footer.footer--responsive .language-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ic-ink);
  background: transparent;
}
.footer.footer--responsive .language-links a img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.footer.footer--responsive .language-links a[aria-current] {
  border-color: var(--ic-rule);
  background: var(--ic-surface-alt);
}
.footer.footer--responsive a:hover { color: var(--ic-action); text-decoration: underline; text-underline-offset: 3px; }
.footer.footer--responsive :is(a, button, summary):focus-visible {
  outline: 2px solid var(--ic-action);
  outline-offset: 3px;
}
.footer.footer--responsive .footer-app-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-color: var(--ic-rule);
}
.footer.footer--responsive .footer-app-download__link {
  min-height: 48px;
  margin: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: center;
  color: #fff;
}
.footer.footer--responsive .footer-app-download__link:hover,
.footer.footer--responsive .footer-app-download__link:focus-visible {
  color: #fff;
  background: #145bc7;
  text-decoration: none;
}
.footer.footer--responsive .footer-reader-settings { min-height: 44px; margin: 0; font-size: .875rem; }
@media (min-width: 768px) {
  .footer--responsive .footer-col__title { display: flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 980px) {
  .footer.footer--responsive .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer--responsive .footer-col--sections { grid-column: 1; grid-row: 2 / span 2; }
  .footer--responsive .footer-col--trust { grid-column: 2; grid-row: 2; }
  .footer--responsive .footer-col--legal { grid-column: 2; grid-row: 3; }
  .footer.footer--responsive .footer-col--language .language-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .footer.footer--responsive { padding: 24px 0; }
  .footer.footer--responsive .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer--responsive .footer-col--brand { margin-bottom: 8px; padding-bottom: 16px; }
  .footer--responsive .footer-group { border-bottom: 1px solid var(--ic-rule); }
  .footer--responsive summary.footer-col__title {
    min-height: 54px;
    margin: 0;
    color: var(--ic-ink);
    font-size: .9375rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .footer--responsive .footer-group__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-bottom: 12px; }
  .footer--responsive .footer-col--language,
  .footer--responsive .footer-col--social { padding-top: 20px; }
  .footer.footer--responsive .footer-col--language .language-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer.footer--responsive .social-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .footer.footer--responsive .social-links a { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; }
  .footer.footer--responsive .footer-app-download { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer.footer--responsive .footer-app-download__link { width: auto; padding: 12px; }
  .footer.footer--responsive .footer-reader-settings { width: 100%; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .footer.footer--responsive .footer-col--language .language-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .footer.footer--responsive a { transition: none; }
}
