/* The site footer (components/SiteFooter.ejs). Everything is under .site-footer and sets its own
   margins, colours and fonts: the footer stands on pages with different site CSS (main_page.css resets
   every element, bootstrap colours links). Logical properties, so /ar (dir="rtl") mirrors by itself. */
.site-footer {
  border-top: 1px solid #e6e8ef;
  background: #fff;
  padding: 56px 0 28px;
  font-family: "Inter", Roboto, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #141414;
  text-align: start;
}
.site-footer * { box-sizing: border-box; }
/* :where keeps the reset as weak as one class: the rules below set their own margins */
.site-footer :where(p),
.site-footer__list,
.site-footer__inline { margin: 0; padding: 0; }
.site-footer__list,
.site-footer__inline { list-style: none; }
.site-footer a { color: #6b7280; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #4450f2; text-decoration: underline; }

.site-footer__inner { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.site-footer__top { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; }

.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: auto; height: 40px; }
.site-footer__about { margin-top: 16px; color: #6b7280; line-height: 22px; }
.site-footer__contact { margin-top: 12px; }
.site-footer__contact a { color: #141414; font-weight: 500; }

.site-footer__columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer__heading { margin-bottom: 14px; font-weight: 600; color: #141414; }
.site-footer__list li + li { margin-top: 10px; }

.site-footer__countries { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef0f4; }
.site-footer__inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__countries .site-footer__heading { margin-bottom: 12px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eef0f4;
  font-size: 13px;
}
.site-footer__copy { color: #6b7280; }
.site-footer__legal { margin-inline-start: auto; }

@media (max-width: 992px) {
  .site-footer { padding: 40px 0 24px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 576px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { margin-inline-start: 0; }
}
