/* Little Genius — Legal Pages shared styles */
:root {
  --ink: #1E1B4B;
  --ink-2: #312E81;
  --accent: #4338CA;
  --accent-soft: #EDE9FE;
  --muted: #6B7280;
  --bg: #F4F0FF;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --danger: #DC2626;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #111827;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: var(--ink);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
}
.topbar .logo { font-size: 34px; }
.topbar h1 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.topbar p { margin: 0; color: #A5B4FC; font-size: 13px; font-weight: 700; }

nav.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px;
  background: var(--ink-2);
}
nav.menu a {
  color: #C7D2FE;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
}
nav.menu a:hover, nav.menu a.active { background: rgba(255,255,255,0.12); color: #fff; }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--accent-soft);
  border-radius: 20px;
  padding: 26px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(30,27,75,0.06);
}

.effective {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

h2 { color: var(--ink); font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin: 0 0 8px; }
h3 { color: var(--ink-2); font-size: 17px; font-weight: 800; margin: 24px 0 6px; }
p, li { color: #374151; font-size: 15px; }
a { color: var(--accent); font-weight: 700; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }

.callout {
  background: #ECFDF5;
  border: 1.5px solid #6EE7B7;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  color: #065F46;
  margin: 16px 0;
}
.callout.warn { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.home-grid a {
  display: block;
  background: var(--card);
  border: 1.5px solid var(--accent-soft);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.home-grid a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,27,75,0.12); }
.home-grid .emoji { font-size: 30px; }
.home-grid .t { display: block; color: var(--ink); font-weight: 900; font-size: 16px; margin-top: 8px; }
.home-grid .d { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }

footer {
  text-align: center;
  padding: 26px 16px 40px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
footer a { color: var(--accent); }
