/* A spacious institutional close with clear routes and comfortable touch targets. */
.footer.site-footer {
  position: relative;
  isolation: isolate;
  padding: 46px 0 24px;
  color: #f4f8fb;
  background: #0c1d2c;
}
.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.7fr);
  gap: 60px;
}
.site-footer .footer-brand .brand img { width: 166px; height: auto; }
.site-footer .footer-brand p {
  max-width: 305px;
  margin: 19px 0 0;
  color: #b9ceda;
  font-size: 15px;
  line-height: 1.8;
}
.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: 30px;
  min-width: 0;
}
.footer-column { min-width: 0; }
.site-footer .footer-column h3 {
  margin: 0 0 13px;
  color: #f4f8fa;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.5;
}
.footer-column > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #bdcfda;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.footer-column > a:hover,
.footer-legal-links a:hover { color: white; text-decoration-color: #88b6c7; }
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #345062;
  color: #aac4d3;
  font-size: 13px;
  line-height: 1.7;
}
.footer-legal > span { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 28px; }
.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #b5cbd8;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: underline;
  text-decoration-color: #66889c;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.site-footer a:focus-visible { outline: 3px solid #80e6ec; outline-offset: 5px; border-radius: 3px; }

@media (max-width: 1100px) {
  .footer-content { grid-template-columns: minmax(0, .95fr) minmax(0, 2.5fr); gap: 34px; }
  .footer-columns { gap: 22px; }
  .site-footer .footer-brand .brand img { width: 154px; }
}

@media (max-width: 900px) {
  .footer.site-footer { padding-top: 42px; }
  .footer-content { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .footer-brand { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 35px; }
  .site-footer .footer-brand p { max-width: 450px; margin: 0; }
  .footer-columns { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr); gap: 28px; }
  .footer-legal { margin-top: 31px; }
}

@media (max-width: 640px) {
  .footer.site-footer { padding: 38px 0 22px; }
  .footer-content { gap: 32px; }
  .site-footer .footer-brand { display: block; }
  .site-footer .footer-brand .brand img { width: 154px; }
  .site-footer .footer-brand p { max-width: 360px; margin-top: 19px; font-size: 14px; line-height: 1.85; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .footer-formation { grid-column: 1 / -1; }
  .site-footer .footer-column h3 { margin-bottom: 7px; font-size: 16px; }
  .footer-column > a { min-height: 44px; font-size: 14px; }
  .footer-legal { align-items: flex-start; flex-direction: column; gap: 0; margin-top: 28px; padding-top: 17px; }
  .footer-legal-links { gap: 0 23px; }
  .footer-legal-links a { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-column > a, .footer-legal-links a { transition: none; }
}

@media print {
  .footer.site-footer { padding: 28px 0 0; background: white; color: #111; }
  .site-footer .footer-brand .brand { background: #0c1d2c; padding: 10px; }
  .site-footer .footer-column h3, .site-footer .footer-brand p,
  .site-footer a, .footer-legal { color: #111; }
  .footer-content { break-inside: avoid; }
}
