/*
 * Marketing footer, shared by public marketing and Docs pages
 * (templates/includes/marketing_footer.html). Class names keep the original
 * home-footer-* prefix.
 */

/* A vertical wordmark on the left, with one quiet row of tagline and legal
   links set along its foot. No link columns and no divider. */
.home-footer {
  background: var(--varial-marketing-dark, #232629);
  color: var(--varial-white, #ffffff);
  padding: 2.5rem clamp(1.5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  row-gap: 1rem;
}

.home-footer-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.home-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.home-footer-legal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.home-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* !important on color: the global .content a rule otherwise wins and paints
   these Bootstrap link blue. */
.home-footer-legal-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.home-footer-legal-link:hover {
  color: var(--varial-white, #ffffff) !important;
}

/* Turned 90 degrees to read bottom to top: vertical writing mode lays it out
   as a tall, narrow column, and the half turn flips it to read upward. */
.home-footer-wordmark {
  grid-column: 1;
  grid-row: 1 / span 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--varial-marketing-serif, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--varial-white, #ffffff) !important;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.home-footer-wordmark:focus-visible {
  outline: 3px solid var(--varial-marketing-x-accent, #1fcaa0);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .home-footer {
    padding-inline: 1rem;
  }

  .home-footer-copy {
    flex-basis: 100%;
  }
}
