/* Shared footer: two reading columns, then full-width links and copyright. */
.footer {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 26px 64px;
  padding: 36px 40px 28px;
}
.footer > * { min-width: 0; }
.footer > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer .footer-logo { display: block; width: 132px; height: auto; max-width: 100%; margin: 0; flex: none; }
.footer .footer-logo img { display: block; width: 100%; height: auto; }
.footer > div:first-child p { margin: 0; white-space: normal; font-size: 13px; line-height: 1.85; }
.footer > div:nth-child(2) > a {
  display: inline-block; max-width: 100%; font-size: 15px; font-weight: 600; line-height: 1.8;
}
.footer > div:nth-child(2) p {
  max-width: 650px; margin: 10px 0 0; font-size: 13px; line-height: 1.9;
  overflow-wrap: break-word; word-break: normal; text-wrap: pretty;
}
.footer .reader-footer-links {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 26px; margin: 0; padding: 18px 0 0; border-top: 1px solid #ded7da;
}
.footer .reader-footer-links a {
  display: inline-flex; align-items: center; min-height: 40px; max-width: 100%;
  font-size: 13px; line-height: 1.8; white-space: nowrap;
}
.footer .reader-copyright {
  grid-column: 1 / -1; width: 100%; max-width: none; margin: 0;
  font-size: 12px; line-height: 1.8; white-space: nowrap;
}
@media (max-width: 1000px) { .footer { column-gap: 40px; padding-inline: 28px; } }
@media (max-width: 800px) {
  .footer { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 20px 26px; }
  .footer > div:first-child { flex-direction: row; align-items: center; gap: 20px; }
  .footer .footer-logo { width: 100px; }
  .footer > div:first-child p { max-width: 230px; font-size: 13px; }
  .footer > div:nth-child(2) > a { font-size: 15px; }
  .footer > div:nth-child(2) p { font-size: 13px; }
  .footer .reader-footer-links { gap: 4px 22px; padding-top: 14px; }
}
@media (max-width: 360px) {
  .footer { padding-inline: 16px; }
  .footer > div:first-child { gap: 16px; }
  .footer .footer-logo { width: 88px; }
  .footer .reader-footer-links { column-gap: 18px; }
}
