/* ==========================================================================
 * Páginas legales — aviso legal / privacidad / cookies
 * Estética editorial minimal, alineada con el sitio (dark theme, acento
 * amarillo #FFD42C, Cardo display, Inter cuerpo). Maquetado con Elementor:
 * las clases viajan en el wrapper del widget, por eso los selectores incluyen
 * tanto la propia clase como `.clase <tag>` para tocar el elemento interno.
 * Especificidad alta (doble clase / !important puntual) para ganar al CSS
 * del tema Leksa y del kit de Elementor, que pintan los h1/h2 con tamaños y
 * colores globales muy agresivos.
 * ======================================================================= */

.ss-legal.ss-legal {
    --legal-accent: #FFD42C;
    --legal-text: rgba(255, 255, 255, 0.82);
    --legal-text-strong: #ffffff;
    --legal-muted: rgba(255, 255, 255, 0.45);
    --legal-rule: rgba(255, 255, 255, 0.12);
    color: var(--legal-text);
}

.ss-legal .ss-legal__article {
    width: 100%;
    max-width: 720px;
}

/* Hero ------------------------------------------------------------------ */
.ss-legal .ss-legal__eyebrow,
.ss-legal .ss-legal__eyebrow .elementor-heading-title {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--legal-accent);
    line-height: 1;
}

.ss-legal .ss-legal__title,
.ss-legal .ss-legal__title .elementor-heading-title {
    font-family: Cardo, Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--legal-text-strong);
    margin: 0;
}

.ss-legal .ss-legal__updated,
.ss-legal .ss-legal__updated .elementor-heading-title {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: var(--legal-muted);
    letter-spacing: 0.02em;
    font-weight: 400;
    margin: 0;
}

/* Body ------------------------------------------------------------------ */
.ss-legal .ss-legal__body,
.ss-legal .ss-legal__body .elementor-widget-container {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--legal-text);
    letter-spacing: normal;
}

.ss-legal .ss-legal__body h1 { display: none; }

.ss-legal .ss-legal__body h2 {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.005em !important;
    color: var(--legal-text-strong) !important;
    margin: 48px 0 16px !important;
    padding-top: 32px !important;
    border-top: 1px solid var(--legal-rule);
    position: relative;
    text-transform: none;
}

.ss-legal .ss-legal__body h2::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--legal-accent);
}

.ss-legal .ss-legal__body h2:first-child,
.ss-legal .ss-legal__body .elementor-widget-container > h2:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0;
}
.ss-legal .ss-legal__body h2:first-child::before,
.ss-legal .ss-legal__body .elementor-widget-container > h2:first-child::before { display: none; }

.ss-legal .ss-legal__body h3 {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--legal-text-strong) !important;
    margin: 28px 0 10px !important;
    letter-spacing: normal;
    text-transform: none;
}

.ss-legal .ss-legal__body p {
    margin: 0 0 18px;
    color: var(--legal-text);
}

.ss-legal .ss-legal__body strong {
    color: var(--legal-text-strong);
    font-weight: 600;
}

.ss-legal .ss-legal__body em {
    color: var(--legal-muted);
    font-style: italic;
}

.ss-legal .ss-legal__body a {
    color: var(--legal-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .18s ease;
}
.ss-legal .ss-legal__body a:hover { color: var(--legal-text-strong); }

.ss-legal .ss-legal__body ul,
.ss-legal .ss-legal__body ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.ss-legal .ss-legal__body ul li,
.ss-legal .ss-legal__body ol li { margin-bottom: 8px; }

.ss-legal .ss-legal__body ul li::marker { color: var(--legal-accent); }

.ss-legal .ss-legal__body code {
    background: rgba(255, 212, 44, 0.08);
    color: var(--legal-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

.ss-legal .ss-legal__body blockquote {
    border-left: 2px solid var(--legal-accent);
    padding: 4px 0 4px 18px;
    margin: 20px 0;
    color: var(--legal-muted);
    font-style: italic;
}

.ss-legal .ss-legal__body > *:last-child,
.ss-legal .ss-legal__body .elementor-widget-container > *:last-child { margin-bottom: 0; }
