/* ─── Menevo legal / public content pages (privacy, terms) ───────────
   Lightweight public shell: a simple brand header (logo + language) and
   readable prose. Deliberately NOT the authed app-header — these pages
   are linked from /signin and /signup, so a logged-out visitor should
   not see the app navigation or an empty user-menu. Uses the shared
   .site-footer (css/shared/footer.css). */

:root {
  --lg-bg:     #FDF3D7;
  --lg-navy:   #003E54;
  --lg-accent: #F9CD2D;
  --lg-muted:  #5c6b70;
  --lg-card:   #ffffff;
  --lg-border: rgba(0, 62, 84, 0.12);
}

* { box-sizing: border-box; }

body.legal-page {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-navy);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── public header ── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: #FCF4DB;
  border-bottom: 1px solid rgba(0, 62, 84, 0.08);
}

.legal-header .legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--lg-navy);
  font-weight: 700;
  font-size: 18px;
}

.legal-header .legal-logo img {
  height: 1.7rem;
  width: auto;
  display: block;
}

.legal-header .legal-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-header .legal-back {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 62, 84, 0.7);
  text-decoration: none;
}
.legal-header .legal-back:hover { color: var(--lg-navy); }

/* ── content ── */
.legal-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 1.75rem) 3rem;
}

.legal-card {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(0, 62, 84, 0.07);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin: 0 0 6px;
}
/* accent text needs enough contrast on white — darken slightly */
.legal-eyebrow { color: #b8860b; }

.legal-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.15;
}

.legal-updated {
  font-size: 13px;
  color: var(--lg-muted);
  margin: 0 0 8px;
}

.legal-beta-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lg-navy);
  background: rgba(249, 205, 45, 0.16);
  border: 1px solid rgba(249, 205, 45, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 28px;
}

.legal-section { margin: 0 0 26px; }
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.7;
  color: #33474e;
  margin: 0 0 10px;
}

.legal-section ul {
  margin: 0 0 10px;
  padding-left: 1.25rem;
}

.legal-section a { color: #0a6b78; }
.legal-section a:hover { color: var(--lg-navy); }
