/* Klusto · estilos de páginas internas en DARK MODE
   (legal, blog, changelog, 404, gracias)
   Fondo: klusto-deep · Texto: slate claro · Acentos: klusto-purple */

/* Container principal — sobreescribir el bg-white de los templates */
body.legal-page,
body.single,
body.archive,
body.error404,
body.page:not(.is-frontpage) {
	background-color: #07111f; /* klusto-deep */
}

main.bg-white,
main.legal-main {
	background-color: #07111f !important;
	color: #e2e8f0; /* slate-200 */
}

/* Tipografía dark mode para .legal-content y .prose-klusto */
.legal-content h1,
.prose-klusto h1 {
	color: #ffffff;
}

.legal-content h2,
.prose-klusto h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: #ffffff;
	line-height: 1.3;
}

.legal-content h3,
.prose-klusto h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
	color: #f1f5f9; /* slate-100 */
	line-height: 1.4;
}

.legal-content p,
.legal-content li,
.prose-klusto p,
.prose-klusto li {
	color: #cbd5e1; /* slate-300 */
	line-height: 1.7;
	margin-bottom: 0.75rem;
}

.legal-content ul,
.prose-klusto ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.legal-content ol,
.prose-klusto ol {
	list-style: decimal;
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.legal-content strong,
.prose-klusto strong {
	color: #ffffff;
}

.legal-content em,
.prose-klusto em {
	color: #f1f5f9;
}

.legal-content a,
.prose-klusto a {
	color: #a78bfa; /* purple-300 más legible sobre dark */
	text-decoration: none;
}

.legal-content a:hover,
.prose-klusto a:hover {
	color: #c4b5fd;
	text-decoration: underline;
}

/* v0.2.8 — Excepción: cuando un <a> tiene fondo con gradiente o background sólido,
   forzar texto blanco. Se identifica por las clases bg-klusto-grad / btn-primary / roadmap-cta-btn */
.legal-content a.bg-klusto-grad,
.legal-content a.btn-primary,
.legal-content a.roadmap-cta-btn,
.prose-klusto a.bg-klusto-grad,
.prose-klusto a.btn-primary,
.prose-klusto a.roadmap-cta-btn {
	color: #ffffff !important;
	text-decoration: none !important;
}
.legal-content a.bg-klusto-grad:hover,
.legal-content a.btn-primary:hover,
.legal-content a.roadmap-cta-btn:hover,
.prose-klusto a.bg-klusto-grad:hover,
.prose-klusto a.btn-primary:hover,
.prose-klusto a.roadmap-cta-btn:hover {
	color: #ffffff !important;
	text-decoration: none !important;
}

.legal-content code,
.prose-klusto code {
	background: rgba(124, 58, 237, 0.15);
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-size: 0.875em;
	font-family: 'JetBrains Mono', monospace;
	color: #c4b5fd;
}

.legal-content table,
.prose-klusto table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.875rem;
}

.legal-content th, .legal-content td,
.prose-klusto th, .prose-klusto td {
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.75rem;
	text-align: left;
	vertical-align: top;
	color: #cbd5e1;
}

.legal-content th,
.prose-klusto th {
	background: rgba(255, 255, 255, 0.04);
	font-weight: 600;
	color: #ffffff;
}

.legal-content blockquote,
.prose-klusto blockquote {
	border-left: 4px solid #7C3AED;
	padding-left: 1.25rem;
	font-style: italic;
	color: #cbd5e1;
	margin: 1.5rem 0;
}

/* Aviso interno (banner naranja) — adaptado a dark */
.legal-content + .legal-disclaimer,
.legal-disclaimer {
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.3);
	color: #fcd34d;
}

/* === Changelog específico === */
.release {
	border-left: 2px solid rgba(255, 255, 255, 0.1);
	padding-left: 2rem;
	padding-bottom: 3rem;
	position: relative;
}
.release::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #07111f;
	border: 2px solid #7C3AED;
}
.release.latest::before {
	background: #7C3AED;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.tag {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.tag-added    { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.tag-changed  { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.tag-fixed    { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.tag-removed  { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }
.tag-security { background: rgba(124, 58, 237, 0.15); color: #c4b5fd; }
