/*
 * MST global footer
 * One physical stylesheet shared by WordPress pages and static Tools pages.
 */
.mst-site-footer {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 18% 0%, rgba(198, 69, 18, 0.13), transparent 32%),
    #171b20;
  color: #f3efe8;
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  padding: 54px 0 28px;
  text-align: left;
}

.mst-site-footer *,
.mst-site-footer *::before,
.mst-site-footer *::after {
  box-sizing: border-box;
}

.mst-footer__inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.mst-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(5, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: start;
}

.mst-footer__brand,
.mst-footer__column {
  min-width: 0;
}

.mst-footer__logo {
  display: inline-flex;
  width: max-content;
  padding: 0;
}

.mst-footer__logo img {
  display: block;
  width: auto;
  height: 52px;
}

.mst-footer__brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: #cbd2dc;
  font-size: 0.86rem;
  line-height: 1.65;
}

.mst-footer__email {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 16px;
  border-bottom: 1px solid #e85b1d;
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.mst-site-footer .mst-footer__column h2 {
  margin: 0 0 14px;
  color: #9fa9b8 !important;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em !important;
  line-height: 1.4;
  text-transform: uppercase;
}

.mst-footer__column a {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  color: #cbd2dc;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.mst-footer__column a:hover,
.mst-footer__column a:focus-visible,
.mst-footer__email:hover,
.mst-footer__email:focus-visible,
.mst-footer__legal-links a:hover,
.mst-footer__legal-links a:focus-visible {
  color: #ff7a36;
}

.mst-footer__column a:hover {
  transform: translateX(2px);
}

.mst-footer__link-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.mst-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #98a3b1;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  line-height: 1.65;
}

.mst-footer__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  max-width: 820px;
}

.mst-footer__identity strong {
  color: #dce1e8;
  font-weight: 600;
}

.mst-footer__identity span:last-child {
  flex-basis: 100%;
}

.mst-footer__legal-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.mst-footer__legal-links a {
  color: #b9c1cc;
  text-decoration: none;
}

html[dir="rtl"] .mst-site-footer {
  text-align: right;
}

html[dir="rtl"] .mst-footer__column a:hover {
  transform: translateX(-2px);
}

html[dir="rtl"] .mst-footer__legal-links {
  justify-content: flex-start;
}

@media (max-width: 1120px) {
  .mst-footer__grid {
    grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mst-footer__inner {
    width: min(100% - 36px, 620px);
  }

  .mst-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mst-footer__brand {
    grid-column: 1 / -1;
  }

  .mst-footer__legal {
    flex-direction: column;
    gap: 14px;
  }

  .mst-footer__legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .mst-site-footer {
    padding-top: 42px;
  }

  .mst-footer__grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .mst-footer__brand {
    grid-column: auto;
  }

  .mst-footer__column a {
    padding: 6px 0;
  }
}
