/*
 * The footer.
 *
 * It carries a lot of links because the site has to show its policies and its
 * sources, so the job here is structure rather than reduction. Several rules
 * carry !important: the site's base stylesheet puts a bottom border under
 * every footer link and turns the helpline into a filled button, which between
 * them doubled the height of this block and made it read as a table.
 *
 * Load after the main stylesheet:
 *   <link rel="stylesheet" href="assets/css/footer.css">
 */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e6e4dc;
  color: #4a4945;
  margin-top: 56px;
  padding: 0;
  border: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 32px 20px;
}

/* Intro and helpline */

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6e4dc;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: #1c1c1a;
  margin: 0 0 6px;
}

.footer-brand p {
  margin: 0;
  font-size: 13.5px;
  color: #6b6a65;
  max-width: 56ch;
}

.site-footer .footer-help {
  background: transparent;
  border: 0;
  border-left: 2px solid #d8a33a;
  border-radius: 0;
  padding: 2px 0 2px 16px;
  margin: 0;
}

.site-footer .footer-help-lead {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b6a65;
  margin: 0 0 2px;
}

.site-footer .footer-help-number {
  display: inline-block;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #b8791a !important;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.site-footer .footer-help-number:hover { color: #8a5a12 !important; text-decoration: underline; }

.site-footer .footer-help-note {
  font-size: 12px;
  color: #898781;
  margin: 3px 0 0;
  line-height: 1.45;
}

/* Link columns */

.site-footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  padding: 24px 0 20px;
  border: 0;
}

.site-footer .footer-col { min-width: 0; border: 0; }

.site-footer .footer-heading {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1c1c1a;
  margin: 0 0 10px;
  padding: 0 !important;
  border: 0 !important;
}

.site-footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer .footer-col li {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
}

.site-footer .footer-col a {
  display: block;
  padding: 3px 0 !important;
  border: 0 !important;
  color: #33322f;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  transition: color .15s ease;
}

.site-footer .footer-col a:hover { color: #1c1c1a; text-decoration: underline; }

/* Disclaimer and bottom row */

.site-footer .footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.6;
  color: #57564f;
  background: none;
  border: 0;
  border-left: 2px solid #d6d4ca;
  border-radius: 0;
  padding: 0 0 0 14px;
  margin: 0 0 18px;
  max-width: 92ch;
}

.site-footer .footer-disclaimer strong { color: #1c1c1a; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid #e6e4dc;
}

.footer-copyright {
  font-size: 12.5px;
  color: #898781;
  margin: 0;
}

.site-footer .footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  text-align: left;
  border: 0;
}

.site-footer .footer-legal-row a {
  display: inline;
  padding: 0 !important;
  border: 0 !important;
  font-size: 12px;
  color: #898781;
  text-decoration: none;
}

.site-footer .footer-legal-row a:hover { color: #1c1c1a; text-decoration: underline; }
.site-footer .footer-legal-row .footer-staff { color: #a3a19a; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .footer-inner { padding: 26px 18px 18px; }
  .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
