.footer {
  border-top: 1px solid var(--divider);
  color: var(--text-main);
  overflow: hidden;
}

.footer__container {
  padding: 80px var(--gutter) 48px;
}

.footer__cta {
  margin-bottom: 80px;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  color: var(--text-main);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer__cta svg {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-out);
}

.footer__cta span {
  position: relative;
}

a.footer__cta span::after {
  bottom: -0.08em;
  height: 2px;
}

.footer__cta:hover svg {
  transform: translate(3px, -3px);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer__label {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
}

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

.footer__list--nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
}

.footer__list a {
  position: relative;
  color: var(--text-main);
  font-size: var(--fs-ui);
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Same hover as the header menu: a line grows under the link. */
.footer__list a::after,
.footer__cta span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}

.footer__list a:hover::after,
.footer__cta:hover span::after {
  transform: scaleX(1);
}

.footer__socials {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.footer__social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--divider-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: opacity .2s ease;
}

.footer__social:hover {
  opacity: .65;
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__privacy .footer__label {
  color: var(--green-text);
}

.footer__privacy-text {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  text-wrap: pretty;
}

.footer__bottom {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--text-soft);
  font-size: var(--fs-small);
}

.footer__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__clock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-text);
}

.footer__clock time {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

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

  .footer__privacy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer__container {
    padding-top: 56px;
    padding-bottom: 36px;
  }

  .footer__cta {
    margin-bottom: 56px;
    align-items: flex-start;
  }

  .footer__cta svg {
    margin-top: 0.12em;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__bottom {
    margin-top: 40px;
  }
}
