#site-footer {
  border-top: 1px solid rgba(26, 47, 35, 0.2);
  background: var(--earth-beige);
  color: var(--forest);
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr 2fr;
  gap: 2rem;
  border-bottom: 1px solid rgba(26, 47, 35, 0.1);
  padding-bottom: 3rem;
}

.footer-grid > * {
  min-width: 0;
}

.footer-logo img {
  width: 14rem;
}

.footer-about p {
  max-width: 24rem;
  color: rgba(26, 47, 35, 0.8);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #dc2626;
  animation: pulse 1.6s ease-in-out infinite;
}

.footer-col h3 {
  border-bottom: 1px solid rgba(26, 47, 35, 0.1);
  padding-bottom: 0.35rem;
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0.5rem 0 0.25rem;
  color: rgba(26, 47, 35, 0.72);
  font-size: 0.75rem;
  line-height: 1.55;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0.75rem 0;
}

.footer-col a,
.footer-col button {
  padding: 0;
  background: transparent;
  color: rgba(26, 47, 35, 0.7);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--forest);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  margin-top: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.studio-login-link {
  color: rgba(124, 140, 127, 0.72);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.studio-login-link:hover {
  color: var(--forest);
}

.back-to-top {
  background: transparent;
  color: var(--sage);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-notice {
  margin-top: 2rem;
  border-top: 1px solid rgba(26, 47, 35, 0.1);
  padding-top: 1rem;
  color: rgba(124, 140, 127, 0.75);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-bottom: 2rem;
  }

  .footer-bottom,
  .footer-bottom-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  #site-footer {
    padding: 3rem 0 2.25rem;
  }

  .footer-logo img {
    width: 11.5rem;
  }

  .footer-col li {
    margin: 0.55rem 0;
  }

  .footer-bottom {
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .footer-notice {
    margin-top: 1.5rem;
    letter-spacing: 0.16em;
  }
}
