html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
}

.shell {
  flex: 1;
  min-height: 100vh;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main > .site-footer {
  margin-top: auto;
}

.landing,
.legal-content,
.auth {
  flex: 1;
}

.landing,
.auth {
  min-height: auto;
}

.site-footer {
  display: block;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: auto 0 0;
  padding: 32px clamp(16px, 5vw, 72px) 20px;
  background: #fbf8ed;
  color: #087638;
  border-top: 1px solid #e7e2d2;
  font-size: 14px;
}

.site-footer .footer-inner {
  width: min(100%, 1200px);
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(140px, 1fr));
  gap: 24px 36px;
  padding: 22px 24px 12px;
  border: 1px solid #e7e2d2;
  border-radius: 18px;
}

.site-footer .footer-left,
.site-footer .footer-right {
  display: contents;
}

.footer-brand strong {
  display: block;
  color: #087638;
  font-size: 20px;
}

.footer-brand p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: #087638;
  overflow-wrap: anywhere;
}

.footer-group {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
}

.footer-group h2 {
  margin: 0 0 4px;
  color: #064b28;
  font-size: 15px;
}

.footer-group a {
  max-width: 100%;
  color: #087638;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-group a:hover {
  color: #064b28;
  text-decoration: underline;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e7e2d2;
  text-align: center;
  color: #087638;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 32px;
  }
}

@media (max-width: 650px) {
  .main {
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding: 22px 12px 14px;
  }

  .footer-copyright {
    grid-column: 1;
  }
}

@media screen and (max-width: 768px) {
  .site-footer { display: none !important; }
}
