/**
 * Site footer — shared by index.html and legal pages.
 */
.footer {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  padding-inline: var(--page-pad-inline);
  border-top: 1px solid var(--border);
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -220px;
  transform: translateX(-50%);
  width: min(92vw, 1100px);
  height: 420px;
  background: var(--violet-blur-gradient-strong);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: var(--content-max-w);
  margin: 0 auto;
}

.footer-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-logo {
  display: inline-block;
}

.footer .nav-logo-img {
  transform: scale(1.2);
  transform-origin: left center;
}

.footer-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
}

.footer-col--contact {
  text-align: left;
  width: 100%;
}

@media (min-width: 900px) {
  .footer-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: start;
  }

  .footer-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-copy {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
    column-gap: 2.5rem;
    row-gap: 0.85rem;
    align-items: start;
  }

  .footer-copy .footer-reg {
    max-width: none;
  }

  .footer-col--contact {
    display: contents;
    width: auto;
  }

  .footer-col--contact .footer-col-title {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    justify-self: end;
  }

  .footer-col--contact .footer-links {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    justify-self: end;
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col--contact .footer-col-title {
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .footer-col--contact .footer-col-title {
    margin-bottom: 0;
  }
}

.footer-links a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 0.65rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-meta .footer-legal {
    margin-top: 0;
  }

  .footer-copyright {
    text-align: right;
    flex-shrink: 0;
  }
}

.footer-legal {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin: 0;
}

.footer-legal a {
  color: var(--text-dim);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-reg {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

.footer-reg a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-reg a:hover {
  color: var(--accent);
}
