/*
 * Aviso de privacidad — Automatika Digital
 *
 * Página estática, sin Web Components: es un documento legal que debe poder
 * leerse aunque falle cualquier script. Usa los tokens del sitio para que no
 * parezca una página ajena.
 *
 * La hoja es externa y no un bloque <style>: la CSP del sitio declara
 * style-src 'self', que bloquea las hojas en línea.
 */

body {
    background-color: var(--c-surface-0);
    color: var(--c-on-dark-soft);
}

/* ---------- Encabezado ---------- */
.legal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem var(--section-pad-x);
    background-color: var(--c-surface-0);
    border-bottom: 1px solid var(--c-line);
}

.legal-header .brand-mark {
    display: inline-flex;
    width: var(--brand-mark);
    height: var(--brand-mark);
    flex-shrink: 0;
}

.legal-header .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.legal-brand-name {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-on-dark);
    flex: 1;
}

.legal-back {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--c-on-dark-muted);
    border-bottom: 1px solid var(--c-line-strong);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-back:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
}

/* ---------- Cuerpo ---------- */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px var(--section-pad-x) 80px;
}

.legal-content h1 {
    font-family: var(--font-titles);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-on-dark);
}

.legal-divider {
    width: 80px;
    height: 4px;
    margin: 1.2rem 0 2.4rem;
    border-radius: 2px;
    background-color: var(--c-accent);
}

.legal-intro {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--c-on-dark-muted);
}

.legal-content h2 {
    font-family: var(--font-titles);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--c-on-dark);
    margin: 2.8rem 0 0.8rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--c-accent);
}

.legal-content p {
    margin-bottom: 0.9rem;
    line-height: 1.8;
    color: var(--c-on-dark-muted);
}

.legal-content ul {
    margin: 0 0 1rem 1.3rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
    color: var(--c-on-dark-muted);
}

.legal-content strong {
    color: var(--c-on-dark);
    font-weight: 700;
}

.legal-content a {
    color: var(--c-accent);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* Bloque del responsable: los datos de identificación deben poder localizarse
   de un vistazo, no dentro de un párrafo corrido. */
.legal-identity {
    padding: 1.4rem 1.6rem;
    background-color: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-identity p {
    margin-bottom: 0.2rem;
    color: var(--c-on-dark-soft);
}

.legal-identity .legal-identity-name {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--c-on-dark);
    margin-bottom: 0.6rem;
}

.legal-note {
    padding: 1rem 1.3rem;
    background-color: var(--c-accent-soft);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 6px 6px 0;
    font-size: 0.92rem;
    margin: 1.4rem 0;
}

.legal-note p {
    margin-bottom: 0;
    color: var(--c-on-dark-soft);
}

.legal-updated {
    margin-top: 3.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--c-line);
    font-size: 0.86rem;
    color: var(--c-on-dark-muted);
}

/* ---------- Pie ---------- */
.legal-footer {
    padding: 1.6rem var(--section-pad-x);
    background-color: var(--c-surface-1);
    border-top: 1px solid var(--c-line);
    text-align: center;
    font-size: 0.84rem;
    color: var(--c-on-dark-muted);
}

.legal-footer a {
    color: var(--c-accent);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-header {
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    .legal-content {
        padding-top: 44px;
        padding-bottom: 56px;
    }
}
