.site-footer.preview-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 48px;
  row-gap: 24px;
}

.preview-footer .footer-intro {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.site-footer.preview-footer .footer-brand {
  display: inline-flex;
  max-width: 100%;
  color: var(--text);
  line-height: 1.1;
  text-decoration: none;
}

.preview-footer .footer-intro > p {
  margin: 0;
}

.preview-footer .footer-actions {
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: 14px;
}

.preview-footer .footer-links {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer.preview-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}

.site-footer.preview-footer .footer-links a:hover,
.site-footer.preview-footer .footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #7ba800;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.site-footer.preview-footer .footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #b0ff00;
  background: #b0ff00;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer.preview-footer .footer-cta:hover {
  border-color: #a3ed00;
  background: #a3ed00;
}

.preview-footer .footer-brand:focus-visible,
.preview-footer .footer-links a:focus-visible,
.preview-footer .footer-cta:focus-visible {
  outline: 2px solid #526c00;
  outline-offset: 4px;
}

.preview-footer .footer-legal {
  grid-column: 1 / -1;
}

@media (min-width: 861px) and (max-width: 1100px) {
  .preview-footer .footer-links {
    gap: 16px;
  }

  .site-footer.preview-footer .footer-links a {
    font-size: 13px;
  }

  .site-footer.preview-footer .footer-cta {
    gap: 8px;
    padding-inline: 14px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .site-footer.preview-footer {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .preview-footer .footer-actions {
    width: 100%;
    max-width: 320px;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .site-footer.preview-footer {
    background: var(--bg);
  }

  .preview-footer .footer-intro {
    justify-items: center;
    text-align: center;
  }

  .preview-footer .footer-actions {
    margin-inline: auto;
    gap: 20px;
  }

  .preview-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .site-footer.preview-footer .footer-links a {
    min-height: 40px;
  }

  .site-footer.preview-footer .footer-cta {
    padding-inline: 12px;
    font-size: 14px;
  }
}
