/* ============================================================================
   legal.css — the Privacy / Terms body (table of contents + prose sections).

   Source of truth: apps/editor/src/pages/resources/LegalShell.tsx. The page
   hero it sits under is PageShell/PageHero, whose rules live in marketing.css
   because every resource page shares them.

   Each rule is the resolved value of the Tailwind class list quoted above it;
   inline `style={{…}}` values are reproduced as-is.
   ========================================================================= */

/* ═══ Legal body ═══════════════════════════════════════════════════════════ */

/* "max-w-5xl mx-auto px-6 pb-28" */
.legal {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 7rem;
}
/* "grid grid-cols-1 lg:grid-cols-[240px_1fr] gap-12" */
.legal__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}
@media (min-width: 1024px) { .legal__grid { grid-template-columns: 240px 1fr; } }

/* Sticky table of contents: "hidden lg:block" */
.legal__toc { display: none; }
@media (min-width: 1024px) { .legal__toc { display: block; } }
/* "sticky top-28 flex flex-col gap-1" */
.legal__toc-nav {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
/* "text-[11px] font-semibold uppercase tracking-widest mb-3 px-3"
   + colour var(--mk-text-muted) */
.legal__toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: var(--mk-text-muted);
}
/* "px-3 py-1.5 rounded-lg text-[13px] transition-all leading-snug", with the
   active row's colour, tint and left rule set inline in the original. */
.legal__toc-link {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 13px;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.375;
  color: var(--mk-text-muted);
  background: transparent;
  border-left: 2px solid transparent;
}
.legal__toc-link.is-active {
  color: var(--mk-text);
  background: rgba(99, 102, 241, 0.12);
  border-left: 2px solid #818cf8;
}

/* "flex flex-col gap-10 min-w-0" */
.legal__sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}
/* "rounded-2xl border border-slate-200/80 dark:border-white/6 p-8"
   + background var(--mk-card-grad), scrollMarginTop 110px.
   `dark:border-white/6` generates no rule (6 is off Tailwind's opacity
   scale), so the slate-200/80 border stays in dark mode. */
.legal__section {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2rem;
  background: var(--mk-card-grad);
  scroll-margin-top: 110px;
}
/* "text-lg font-bold text-slate-900 dark:text-white mb-4 flex items-baseline gap-3" */
.legal__h2 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.mk-dark .legal__h2 { color: #fff; }
/* "text-sm font-black" + a gradient fill clipped to the text. The original
   sets only the -webkit- properties, which is what Chrome renders. */
.legal__n {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* "flex flex-col gap-3" */
.legal__prose { display: flex; flex-direction: column; gap: 0.75rem; }
/* "text-sm text-[#444444] dark:text-slate-400 leading-[1.8]" */
.legal__p { font-size: 0.875rem; color: #444; line-height: 1.8; }
.mk-dark .legal__p { color: #94a3b8; }
/* "flex flex-col gap-2 mt-1" */
.legal__list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
/* "flex items-start gap-3 text-sm text-[#444444] dark:text-slate-400 leading-relaxed" */
.legal__li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.625;
}
.mk-dark .legal__li { color: #94a3b8; }
/* "w-1 h-1 rounded-full bg-indigo-400 flex-shrink-0 mt-2.5" */
.legal__bullet {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: #818cf8;
  flex-shrink: 0;
  margin-top: 0.625rem;
}
/* "text-xs text-slate-500 dark:text-slate-600 text-center leading-relaxed" */
.legal__foot {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  line-height: 1.625;
}
.mk-dark .legal__foot { color: #475569; }
/* "text-indigo-600 dark:text-indigo-400 hover:text-indigo-600
    dark:hover:text-indigo-400" — the hover colour equals the resting colour,
   so there is deliberately no visible hover change. */
.legal__foot a { color: #4f46e5; }
.mk-dark .legal__foot a { color: #818cf8; }
