/* Shared footer. About is the visual source; route styles do not own this shell. */
body > footer.site-footer {
  --footer-unit: var(--site-unit, 1px);
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: calc(14 * var(--footer-unit)) 0 0;
  border: 0;
  background: transparent;
  color: #315e95;
  font-size: max(14px, calc(12 * var(--footer-unit)));
}
.footer-projects, .footer-legal {
  width: min(var(--site-content, 960px), calc(100% - 128px));
  margin: 0 auto;
}
.footer-project-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(14 * var(--footer-unit)); }
.footer-project {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  min-height: calc(100 * var(--footer-unit));
  padding: calc(17 * var(--footer-unit)) calc(24 * var(--footer-unit));
  gap: 7px;
  border-radius: 13px;
  background: rgba(207,234,253,.57);
  color: var(--navy);
}
.footer-project-title { display: flex; align-items: center; justify-content: center; gap: 9px; }
.footer-project-title strong { font-size: calc(20 * var(--footer-unit)); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.footer-project-title svg { width: 18px; height: 18px; flex: none; color: #0969c6; transition: transform .25s var(--ease); }
.footer-project-description { font-size: max(14px, calc(13 * var(--footer-unit))); line-height: 1.4; color: #315e95; }
.footer-project:hover strong { color: #0969c6; }
.footer-project:hover svg { transform: translate(2px,-2px); }
.site-footer .footer-legal-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; transition: color .18s ease; }
.site-footer .footer-legal-links a:hover { color: #0969c6; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: calc(24 * var(--footer-unit));
  margin-top: calc(16 * var(--footer-unit));
  padding: calc(16 * var(--footer-unit)) 0 calc(24 * var(--footer-unit));
  line-height: 1.5;
}
.footer-identity { min-width: 0; }
.footer-identity p { margin: 0; }
.footer-identity p + p { margin-top: 4px; }
.site-footer .footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px calc(18 * var(--footer-unit)); min-width: 0; }
.site-footer .footer-legal-links a { max-width: 100%; padding: 4px 0; }
@media (max-width: 960px) {
  body > footer.site-footer { padding-top: 16px; }
  .footer-projects, .footer-legal { width: calc(100% - 40px); }
  .footer-project-links { gap: 14px; }
  .footer-project { min-height: 110px; padding: 18px; }
  .footer-project-title strong { font-size: 18px; }
  .footer-legal { grid-template-columns: 1fr; gap: 8px; padding: 16px 0 24px; }
  .site-footer .footer-legal-links { justify-content: flex-start; gap: 4px 20px; }
}
@media (max-width: 640px) {
  .footer-project-links { grid-template-columns: 1fr; gap: 12px; }
  .footer-project { padding: 20px; }
  .footer-legal { gap: 12px; }
}
@media (prefers-reduced-transparency: reduce) { .footer-project { background: #e6f4ff; } }
@media (prefers-contrast: more) { .footer-project-description, .site-footer .footer-legal { color: #163e73; } }
