/**
 * Public marketing shell — layout + footer (self-contained; must work without kuza-system.css).
 */

.kz-public-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex: 1 1 auto;
}

.kz-public-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.kz-public-body:has(.sacco-public) .kz-site-header,
.kz-public-body:has(.vz-public) .kz-site-header {
  display: none;
}

/* —— Public footer —— */
.kz-public-footer {
  width: 100%;
  flex-shrink: 0;
  overflow-x: clip;
  margin-top: auto;
  background: #f7f8fa;
  border-top: 1px solid #e6e6e6;
  color: #0f172a;
}

.kz-public-footer__inner {
  box-sizing: border-box;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.kz-public-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .kz-public-footer__brand {
    flex-direction: row;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
  }
}

.kz-public-footer__brand img,
.kz-public-footer__brand .kuza-header-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.kz-public-footer__tagline {
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
  font-size: 0.875rem;
  color: #64748b;
}

.kz-public-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  width: 100%;
}

@media (min-width: 480px) {
  .kz-public-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .kz-public-footer__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.kz-public-footer__col {
  min-width: 0;
}

.kz-public-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.kz-public-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kz-public-footer__links li + li {
  margin-top: 0.15rem;
}

.kz-public-footer__links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  line-height: 1.45;
}

.kz-public-footer__links a:hover {
  color: #00b050;
}

.kz-public-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kz-public-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.kz-public-footer__social a:hover {
  border-color: #00b050;
  color: #00b050;
}

.kz-public-footer__social .material-symbols-outlined {
  font-size: 1.15rem;
}

.kz-public-footer__contact {
  margin: 0;
  font-size: 0.875rem;
}

.kz-public-footer__contact a {
  color: #64748b;
  text-decoration: none;
}

.kz-public-footer__contact a:hover {
  color: #00b050;
}

.kz-public-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e6e6;
  text-align: center;
}

.kz-public-footer__bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

@media (min-width: 640px) {
  .kz-public-footer__bottom {
    text-align: left;
  }
}

.kz-public-body:has(.vz-footer) .kz-public-footer {
  display: none;
}

.kuza-auth-footer {
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.kuza-auth-footer .kz-public-footer {
  margin-top: 0;
}

.kuza-auth-footer--compact {
  padding: 0.85rem 1rem 1.25rem;
  border-top: 1px solid #e6e6e6;
  background: #fff;
  text-align: center;
}

.kuza-auth-footer--compact p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.kuza-auth-footer--compact a {
  color: #00b050;
  font-weight: 600;
  text-decoration: none;
}

.kuza-auth-footer--compact a:hover {
  text-decoration: underline;
}
