/* One footer layout for marketing pages, tools and the error page. */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
  padding-block: 2.5rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.site-footer .footer-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
}

.site-footer .brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-footer .brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0;
  max-width: 320px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast, 0.2s) ease;
}

.footer-link:hover,
.footer-meta-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.footer-copy {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast, 0.2s) ease;
}

@media (max-width: 834px) {
  .site-footer {
    padding-block: 1.5rem;
  }

  .site-footer .footer-container {
    max-width: 560px;
    padding-inline: 1.25rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-tagline,
  .footer-col-title {
    display: none;
  }

  .footer-links-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .footer-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .footer-link {
    font-size: 0.8125rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}
