.site-footer-links {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 8px;
}

.site-footer-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
}

.site-footer-label,
.footer-category-title {
  color: var(--cyan, #7de8d4);
  font: 600 11px 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer-row nav {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 12px;
}

.site-footer-row a {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--muted, #9ca6b5) !important;
  text-decoration: none !important;
  border: 0 !important;
  font: 500 12px 'DM Mono', monospace !important;
  line-height: 1.6;
  transition: color .2s ease;
}

.site-footer-row a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--cyan, #7de8d4);
  transition: right .2s ease;
}

.site-footer-row a:hover {
  color: var(--text, #f4f7fb) !important;
}

.site-footer-row a:hover::after {
  right: 0;
}

.footer .site-footer-links,
.seo-footer .site-footer-links,
.api-footer .site-footer-links {
  padding-top: 30px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .1));
}

.legal-footer .site-footer-links {
  margin: 0;
}

.seo-footer,
.api-footer,
.smart-footer {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 16px !important;
  padding-top: 48px !important;
  padding-bottom: 64px !important;
}

.footer {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.15fr) repeat(2, minmax(180px, 1fr)) !important;
  align-items: start !important;
  gap: 48px !important;
  padding-top: 48px !important;
  padding-bottom: 64px !important;
}

.footer-brand-column,
.footer-integrations,
.footer-legal {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  align-content: start !important;
  gap: 12px !important;
}

.footer-brand-column > span,
.footer-integrations a,
.footer-legal a,
.seo-footer > a:not(.brand),
.api-footer > a:not(.brand),
.smart-footer > a:not(.brand) {
  display: block;
  width: max-content;
  max-width: 100%;
  line-height: 1.6;
}

.footer-brand-column > span,
.footer-integrations a,
.footer-legal a {
  color: var(--muted, #9ca6b5) !important;
  text-decoration: none !important;
  font: 500 12px 'DM Mono', monospace !important;
}

.footer-brand-column .brand {
  margin-bottom: 8px;
}

.footer-copyright {
  margin-top: 12px;
}

.legal-footer {
  padding-top: 48px !important;
  padding-bottom: 64px !important;
  align-items: flex-start !important;
}

.legal-footer .site-footer-row {
  width: 100%;
}

@media (max-width: 860px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer-links,
  .footer {
    grid-template-columns: 1fr !important;
  }

  .site-footer-links {
    gap: 34px;
  }

  .footer .site-footer-links,
  .seo-footer .site-footer-links,
  .api-footer .site-footer-links {
    padding-top: 24px;
  }

  .footer,
  .seo-footer,
  .api-footer,
  .smart-footer {
    gap: 32px !important;
    padding-top: 38px !important;
    padding-bottom: 52px !important;
  }

  .legal-footer {
    padding-top: 38px !important;
    padding-bottom: 52px !important;
  }
}
