/* ============================================================
   Personality Institute — Global Stylesheet
   Brand tokens: Navy #1B2D4F | Sapphire #2563EB | Cloud #F0F4F8
   Typography: Georgia (display) | system-ui (body)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1B2D4F;
  --navy-deep: #0F1D33;
  --sapphire:  #2563EB;
  --sapphire-light: #93C5FD;
  --cloud:     #F0F4F8;
  --slate:     #CBD5E1;
  --ink:       #1A1A2E;
  --white:     #FFFFFF;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, Arial, Helvetica, sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  --max-w: 1140px;
  --section-gap: 96px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-gap) 0; }
.section--cloud { background: var(--cloud); }
.section--navy  { background: var(--navy);  color: var(--white); }
.section--dark  { background: var(--navy-deep); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --section-gap: 64px; }
}

/* ── Typography ───────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: bold;
  line-height: 1.15;
}
.display-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  line-height: 1.2;
}
.display-md {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: bold;
  line-height: 1.3;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.body-lg { font-size: 1.1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

.text-sapphire { color: var(--sapphire); }
.text-light    { color: var(--sapphire-light); }
.text-slate    { color: #4b5563; }

/* Restore light slate on dark / navy backgrounds */
.section--navy .text-slate,
.section--dark .text-slate,
.hero .text-slate,
.page-hero .text-slate,
.community-hero .text-slate,
.icf-hero .text-slate,
.contact-hero .text-slate,
.org-hero .text-slate,
.ea-hero .text-slate,
.insights-hero .text-slate,
.cta-section .text-slate,
[class*="--dark"] .text-slate {
  color: var(--slate);
}
.text-white    { color: var(--white); }
.text-navy     { color: var(--navy); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27, 45, 79, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__mark {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__wordmark { display: flex; flex-direction: column; gap: 1px; }
.nav__wordmark-top {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: var(--white);
  line-height: 1;
}
.nav__wordmark-bot {
  font-family: var(--font-serif);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a.active { border-bottom: 1px solid var(--sapphire); padding-bottom: 2px; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--sapphire);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav__cta:hover {
  background: #1D4ED8;
  box-shadow: 0 0 16px rgba(37,99,235,0.4);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.nav__mobile a:hover { background: rgba(255,255,255,0.04); }
.nav__mobile .nav__cta {
  margin: 16px 24px 20px;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--sapphire);
  color: var(--white);
}
.btn--primary:hover {
  background: #1D4ED8;
  box-shadow: 0 0 24px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
}
.btn--outline {
  border: 1px solid var(--sapphire);
  color: var(--sapphire);
  background: transparent;
}
.btn--outline:hover {
  background: var(--sapphire);
  color: var(--white);
}
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ── Hero (dark) ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 140px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sapphire) 0%, transparent 65%);
  opacity: 0.07;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sapphire) 0%, transparent 65%);
  opacity: 0.04;
  pointer-events: none;
}
.hero--inner {
  position: relative;
  z-index: 1;
}

/* ── Page hero (lighter) ──────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sapphire) 0%, transparent 65%);
  opacity: 0.08;
  transform: translate(30%, -30%);
}

/* ── Sapphire rule ────────────────────────────────────────── */
.rule {
  height: 2px;
  background: var(--sapphire);
  border: none;
  width: 48px;
  margin: 20px 0;
}
.rule--full { width: 100%; opacity: 0.12; }
.rule--center { margin-left: auto; margin-right: auto; }

/* ── Badge / pill ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--sapphire {
  background: rgba(37,99,235,0.1);
  color: var(--sapphire);
  border: 1px solid rgba(37,99,235,0.25);
}
.badge--navy {
  background: rgba(27,45,79,0.08);
  color: var(--navy);
  border: 1px solid rgba(27,45,79,0.15);
}
.badge--ghost {
  background: rgba(37,99,235,0.08);
  color: var(--sapphire-light);
  border: 1px solid rgba(37,99,235,0.3);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.card--dark:hover {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-3px);
}

/* ── Framework card ───────────────────────────────────────── */
.framework-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.framework-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.25);
}
.framework-card__icon {
  width: 44px; height: 44px;
  background: var(--cloud);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.framework-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--navy);
}
.framework-card__desc {
  font-size: 0.875rem;
  color: #5a6a7a;
  line-height: 1.6;
  flex: 1;
}
.framework-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.framework-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sapphire);
  letter-spacing: 0.04em;
  margin-top: 4px;
  transition: gap 0.2s;
}
.framework-card__link:hover { gap: 10px; }

/* ── Pricing card ─────────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: box-shadow 0.25s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--sapphire);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}
.pricing-card__tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sapphire);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-card__amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--navy);
  line-height: 1;
}
.pricing-card__period {
  font-size: 0.85rem;
  color: #6b7280;
}
.pricing-card__desc {
  font-size: 0.875rem;
  color: #5a6a7a;
  line-height: 1.6;
}
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink);
}
.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%232563EB' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%232563EB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ── Pillar grid ──────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  padding: 32px 24px;
  background: rgba(27, 45, 79, 0.65);
  transition: background 0.2s;
}
.pillar:hover { background: rgba(37,99,235,0.12); }
.pillar__icon { margin-bottom: 16px; }
.pillar__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.pillar:hover .pillar__title { color: var(--sapphire-light); }
.pillar__body {
  font-size: 0.8rem;
  color: rgba(203,213,225,0.8);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ── Stat strip ───────────────────────────────────────────── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ── Framework badge strip ────────────────────────────────── */
.fw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 36px;
}
.fw-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(37,99,235,0.35);
  color: var(--sapphire-light);
  background: rgba(37,99,235,0.08);
}

/* ── Section header ───────────────────────────────────────── */
.section-header {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header .rule--center { display: block; }

/* ── Split CTA ────────────────────────────────────────────── */
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-cta__panel {
  padding: 48px 40px;
  background: rgba(27,45,79,0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.split-cta__panel:hover { background: rgba(37,99,235,0.1); }
.split-cta__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sapphire-light);
}
.split-cta__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
}
.split-cta__body {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
}
@media (max-width: 680px) {
  .split-cta { grid-template-columns: 1fr; }
}

/* ── Comparison table ─────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.compare-table tr:nth-child(even) td { background: var(--cloud); }
.compare-table .check { color: var(--sapphire); font-size: 1.1rem; }
.compare-table .cross { color: #9ca3af; }
.compare-table .highlight td { background: rgba(37,99,235,0.06); font-weight: 600; }

/* ── Waitlist form ────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.waitlist-form input[type="email"]:focus { border-color: var(--sapphire); }
@media (max-width: 500px) {
  .waitlist-form { flex-direction: column; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
}
.footer__domain {
  font-size: 0.8rem;
  color: var(--sapphire-light);
  margin-top: 8px;
}
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 0.78rem; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer__legal a:hover { color: var(--white); }
@media (max-width: 680px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Utility ──────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.opacity-50 { opacity: 0.5; }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-hero {
  background: var(--navy);
  padding: 120px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sapphire-light);
  margin-bottom: 16px;
}
.legal-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: bold;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--slate);
}
.legal-hero__meta span { display: flex; align-items: center; gap: 6px; }
.legal-hero__meta strong { color: rgba(255,255,255,0.7); }
.legal-body { padding: 64px 0 96px; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
.legal-toc { position: sticky; top: 88px; }
.legal-toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sapphire);
}
.legal-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc__list a {
  display: block;
  font-size: 0.82rem;
  color: #4B5563;
  padding: 5px 10px;
  border-radius: 4px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.legal-toc__list a:hover,
.legal-toc__list a.active { background: var(--cloud); color: var(--sapphire); }
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--navy);
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--cloud);
}
.legal-content h2:first-child { margin-top: 0; border-top: none; }
.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.legal-content p { font-size: 0.95rem; line-height: 1.75; color: #374151; margin-bottom: 14px; }
.legal-content ul { list-style: none; margin: 10px 0 18px; padding: 0; }
.legal-content ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  padding: 5px 0 5px 22px;
  position: relative;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sapphire);
}
.legal-content strong { color: var(--navy); font-weight: 600; }
.legal-content a { color: var(--sapphire); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--navy); }
.legal-callout {
  background: #EFF6FF;
  border-left: 3px solid var(--sapphire);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #1D4ED8;
  line-height: 1.65;
}
.legal-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #92400E;
  line-height: 1.65;
}
.legal-contact-card {
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 20px;
}
.legal-contact-card p { margin: 4px 0; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sapphire);
  letter-spacing: 0.04em;
  margin-top: 48px;
  text-decoration: none;
}
.back-top:hover { color: var(--navy); }

/* ── Assessment framework detail cards ───────────────────── */
@media (max-width: 680px) {
  article.card { display: block; }
}

/* ── Scroll animation ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
