/* Stavo legal site — Emerald Premium */
:root {
  color-scheme: light dark;
  --page: #f8fcfa;
  --footer-bg: #eef7f3;
  --header-bg: linear-gradient(135deg, #003f38 0%, #007e6e 58%, #0aa88f 100%);
  --ink: #102522;
  --muted: #5c706c;
  --line: #d8e5e1;
  --surface: #ffffff;
  --surface-soft: #f1f8f5;
  --brand: #007e6e;
  --brand-dark: #00584e;
  --brand-soft: #c7eee4;
  --amber: #b66a00;
  --shadow: 0 18px 50px rgba(15, 77, 68, .12);
}

/* Dark theme: follows the system, or the Stavo app theme when shown in its in-app viewer. */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a1210;
    --footer-bg: #0d1916;
    --header-bg: linear-gradient(135deg, #00221e 0%, #004f45 58%, #03705f 100%);
    --ink: #e2eeea;
    --muted: #9fb5af;
    --line: #22403a;
    --surface: #121f1c;
    --surface-soft: #0f2622;
    --brand: #4fd8bd;
    --brand-dark: #7fe6cf;
    --brand-soft: #134a40;
    --amber: #f0a742;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--brand-dark); font-weight: 700; }
a:hover { color: var(--brand); }

.site-header {
  background: var(--header-bg);
  color: white;
}

.nav,
.hero,
.content,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  vertical-align: middle;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.nav-links a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: .92rem;
}

.nav-links a:hover { color: white; }

.hero { padding: 82px 0 94px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-header .eyebrow { color: #a8f5e4; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { margin: 42px 0 14px; font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { margin: 26px 0 8px; font-size: 1.15rem; }

.hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.83); font-size: 1.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  color: #00584e;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary { background: rgba(255,255,255,.13); color: white; border: 1px solid rgba(255,255,255,.35); }

.content { padding: 54px 0 88px; }
.content > p, .content > ul, .content > ol, .content > h2, .content > h3 { max-width: 820px; }

.notice,
.card-grid,
.contact-card {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice { padding: 20px 24px; background: var(--surface-soft); }
.notice strong { color: var(--brand-dark); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.card { padding: 26px; background: var(--surface); }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }

li { margin: 8px 0; }

.contact-card { padding: 28px; }
.contact-card p:last-child { margin-bottom: 0; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--muted);
}

.footer-inner { padding: 28px 0; }
.footer p { margin: 4px 0; font-size: .9rem; }
.footer a { color: var(--brand-dark); }

.legal-meta { color: var(--muted); font-size: .92rem; }

@media (max-width: 760px) {
  .nav, .hero, .content, .footer-inner { width: min(100% - 28px, 1120px); }
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav-links { justify-content: flex-start; }
  .hero { padding: 58px 0 68px; }
  .card-grid { grid-template-columns: 1fr; }
}
