/* ============================================================
   Public footer
   ============================================================ */
.pub-footer {
  background: var(--navy);
  color: var(--white);
  padding:
    var(--space-12)
    max(var(--space-5), env(safe-area-inset-right))
    calc(var(--space-8) + env(safe-area-inset-bottom))
    max(var(--space-5), env(safe-area-inset-left));
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.pub-footer-brand-link {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.pub-footer-logo {
  height: 36px;
  width: auto;
}

.pub-footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
}

.pub-footer-partner {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.pub-footer-partner-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.pub-footer-partner-img {
  height: 20px;
  width: auto;
}

.pub-footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.pub-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pub-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  transition: color 0.2s;
  display: inline-block;
  padding-block: 2px;
  min-height: 44px;
  line-height: 44px;
}

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

.pub-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.pub-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
  margin: 0;
}

@media (max-width: 767px) {
  .pub-footer {
    padding-top: var(--space-10);
  }

  .pub-footer-grid {
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .pub-footer-links a {
    min-height: 40px;
    line-height: 40px;
  }

  .pub-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pub-footer-tagline {
    max-width: none;
  }
}
