/* Aegis (NCLEX-RN Prep) – legal/support page styling.
 * Matches the in-app brand: warm cream surfaces, deep violet accent,
 * Instrument Serif for headings, restrained editorial tone. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #EFE8D9;
  --surface: #FAF6EB;
  --surface-alt: #E2DAC5;
  --hairline: rgba(26, 23, 25, 0.08);
  --text: #1A1719;
  --text-dim: #5C5648;
  --text-muted: #8F8978;
  --primary: #5A3FE0;
  --accent: #5AAA47;
  --amber: #B07820;
  --danger: #C84A3A;
  --radius-card: 24px;
  --max-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--text);
  margin: 0 0 8px;
}

h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 56px 0 12px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: -0.2px;
}

p, ul, ol { color: var(--text-dim); margin: 0 0 14px; }

ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }

strong { color: var(--text); font-weight: 600; }

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--primary); }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.meta strong { color: var(--text-dim); }

.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout--amber {
  background: rgba(176, 120, 32, 0.08);
  border-color: rgba(176, 120, 32, 0.20);
}

.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-dim);
}
th { color: var(--text); font-weight: 600; background: var(--surface-alt); }
tr:last-child td { border-bottom: 0; }

code, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.legalese {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}

.nav {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.nav a {
  display: inline-block;
  margin-right: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 0;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--text); }

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .container { padding: 24px 18px 64px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; margin-top: 44px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
