/* Shared layout and legal page content – same look as homepage */
html {
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f6f8f4;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

main { min-height: 0; }

/* Legal page content container */
.legal-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #eef2ea;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
@media (min-width: 768px) {
  .legal-page-content { padding: 80px 40px; }
}

.legal-page-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 24px;
  color: #171717;
}

.legal-page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #262626;
}

.legal-page-content p {
  color: #555;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 16px;
}

.legal-page-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
  color: #555;
  line-height: 1.7;
}

.legal-page-content li {
  margin-bottom: 8px;
}

.legal-page-content a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-page-content a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.legal-page-content .updated {
  color: #737373;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page-content .back-link {
  display: inline-block;
  margin-top: 32px;
  font-weight: 500;
  color: #525252;
}
.legal-page-content .back-link:hover {
  color: #171717;
}

/* Footer – 4 columns, divider */
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 48px 32px 24px;
  background: #eef2ea;
}
@media (min-width: 768px) {
  .site-footer { padding: 48px 40px 24px; }
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
}
@media (min-width: 640px) {
  .site-footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.site-footer-brand p:first-of-type,
.site-footer-brand p:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: #171717;
  margin: 0 0 4px 0;
}
.site-footer-brand p:last-of-type {
  font-size: 0.875rem;
  color: #737373;
  margin: 0;
}
.site-footer-brand a { color: inherit; }

.site-footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737373;
  margin: 0 0 16px 0;
}

.site-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer-column li { margin-bottom: 10px; }
.site-footer-column a {
  font-size: 0.9375rem;
  color: #525252;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer-column a:hover {
  color: #171717;
}

.site-footer-copy {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #f5f5f5;
  font-size: 0.8125rem;
  color: #a3a3a3;
  text-align: center;
}
@media (min-width: 1024px) {
  .site-footer-copy { text-align: left; }
}

/* Waitlist modal (shared with homepage) */
#waitlist-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
}
#waitlist-modal-backdrop.is-open { opacity: 1; visibility: visible; }
#waitlist-modal {
  background: #fff; border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  max-width: 420px; width: 100%; padding: 2rem;
  transform: scale(0.97); transition: transform 0.25s ease;
}
#waitlist-modal-backdrop.is-open #waitlist-modal { transform: scale(1); }
#waitlist-modal .waitlist-form-group { margin-bottom: 1.25rem; }
#waitlist-modal .waitlist-form-group label {
  display: block; font-size: 0.875rem; font-weight: 500; color: #262626; margin-bottom: 0.5rem;
}
#waitlist-modal .waitlist-form-group input[type="email"] {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid #e5e5e5;
  border-radius: 10px; font-size: 1rem; box-sizing: border-box; font-family: 'Inter', sans-serif;
}
#waitlist-modal .waitlist-form-group input[type="email"]:focus {
  outline: none; border-color: #4f7344; box-shadow: 0 0 0 3px rgba(79,115,68,0.15);
}
#waitlist-modal .waitlist-form-group .waitlist-error {
  font-size: 0.8125rem; color: #b91c1c; margin-top: 0.375rem;
}
#waitlist-modal .waitlist-submit {
  width: 100%; padding: 0.875rem 1.25rem; background: #4f7344; color: #fff;
  border: none; border-radius: 10px; font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif; letter-spacing: 0.01em;
  transition: background 0.2s ease;
}
#waitlist-modal .waitlist-submit {
  width: 100%; padding: 0.875rem 1.25rem; background: #4f7344; color: #fff;
  border: none; border-radius: 10px; font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif; letter-spacing: 0.01em;
  transition: background 0.2s ease;
}
#waitlist-modal .waitlist-submit:hover:not(:disabled) { background: #3f5c34; }
#waitlist-modal .waitlist-submit:disabled { opacity: 0.6; cursor: not-allowed; }
#waitlist-modal .waitlist-success, #waitlist-modal .waitlist-duplicate {
  text-align: center; padding: 0.5rem 0;
}
#waitlist-modal .waitlist-success h3, #waitlist-modal .waitlist-duplicate h3 {
  font-size: 1.125rem; font-weight: 600; color: #262626; margin: 0 0 0.5rem;
}
#waitlist-modal .waitlist-success p, #waitlist-modal .waitlist-duplicate p {
  font-size: 0.9375rem; color: #525252; margin: 0;
}
#waitlist-modal .waitlist-close-btn {
  display: block; width: 100%; margin-top: 1.25rem; padding: 0.625rem;
  background: transparent; border: 1px solid #e5e5e5; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; color: #525252; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.2s ease, color 0.2s ease;
}
#waitlist-modal .waitlist-close-btn:hover { background: #f5f5f5; color: #262626; }
