/* ==========================================================================
   Prose — readable long-form content for legal pages, about, documentation.
   ========================================================================== */

.prose {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  max-width: 62ch;
}

.prose > * + * { margin-block-start: 1.2em; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-block-start: 1.8em;
  margin-block-end: 0.6em;
  color: var(--text-strong);
}

.prose h2 { font-size: var(--text-2xl); }
.prose h3 { font-size: var(--text-xl); }
.prose h4 { font-size: var(--text-lg); }

.prose p { margin-block-start: 0; }

.prose ul,
.prose ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  opacity: 0.7;
}

.prose ol { counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol) ".";
  width: auto;
  height: auto;
  background: none;
  font-weight: 700;
  color: var(--accent-strong);
  font-size: var(--text-sm);
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.prose a:hover { text-decoration-color: currentColor; }

.prose strong { color: var(--text-strong); font-weight: 650; }

.prose code {
  font-size: 0.86em;
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.prose pre {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #d7deeb;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-5);
  color: var(--text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-block: 1.5em;
}

.prose th,
.prose td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose th {
  font-weight: 700;
  color: var(--text-strong);
  background: var(--surface-2);
}

.prose td { color: var(--text-muted); }

.prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin-block: 2.5em;
}
