:root {
  --ls-green:   #047857;
  --ls-green-dk:#065f46;
  --ls-green-lt:#d1fae5;
  --text:       #1A1A1A;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --cream:      #f0fdf4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  background: var(--ls-green-dk);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: .95rem; font-weight: 700; color: #fff;
}
.nav-logo svg { width: 28px; height: 28px; color: #fff; }
.nav-back {
  color: rgba(255,255,255,.55); font-size: .8rem; text-decoration: none;
}
.nav-back:hover { color: #fff; }

/* ── Hero strip ── */
.legal-hero {
  background: var(--ls-green-dk);
  padding: 48px 40px 40px;
  text-align: center;
}
.legal-hero .tag {
  display: inline-block;
  background: rgba(16,185,129,.2);
  color: #6ee7b7;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: 2rem; font-weight: 800;
  color: #fff; margin-bottom: 8px;
}
.legal-hero p { color: rgba(255,255,255,.5); font-size: .88rem; }

/* ── Nav cards ── */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.legal-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  transition: all .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-card:hover { border-color: var(--ls-green); box-shadow: 0 4px 20px rgba(4,120,87,.12); }
.legal-card.active { border-color: var(--ls-green); background: var(--ls-green-lt); pointer-events: none; }
.legal-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ls-green-lt);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.legal-card.active .icon { background: rgba(4,120,87,.15); }
.legal-card h3 { font-size: .95rem; font-weight: 700; color: var(--ls-green-dk); }
.legal-card p  { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.legal-card .arrow { font-size: .8rem; color: var(--ls-green); font-weight: 600; margin-top: auto; }

/* ── Sections ── */
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ls-green-dk); margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ls-green);
  display: inline-block;
}
.legal-section p, .legal-section li {
  font-size: .92rem; line-height: 1.85;
  color: #374151; margin-bottom: 10px;
}
.legal-section ul { padding-left: 20px; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section a { color: var(--ls-green); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* ── Page footer ── */
.legal-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.legal-footer a { color: var(--ls-green); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .legal-hero { padding: 36px 20px 28px; }
  .legal-hero h1 { font-size: 1.5rem; }
  .legal-body { padding: 36px 16px 64px; }
  .legal-footer { flex-direction: column; gap: 6px; }
}
