/* =================================================================
   PÁGINAS LEGALES - Aviso Legal y Política de Privacidad
   ================================================================= */

/* =================================================================
   1. CONTENIDO LEGAL
   ================================================================= */

.legal-content-section {
    padding: 9rem 0 5rem 0;
    background: #ffffff;
}

/* Título principal (estilo similar a FAQ) */
.legal-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Secciones */
.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
    padding-bottom: 0;
}

.legal-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
}

.legal-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
}

.legal-section-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section-content p {
    margin-bottom: 16px;
}

.legal-section-content p:last-child {
    margin-bottom: 0;
}

/* Preguntas destacadas */
.legal-question {
    font-weight: 600;
    color: #1e293b;
    font-style: italic;
    margin-bottom: 16px !important;
}

/* Listas de datos */
.legal-data-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.legal-data-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
}

.legal-data-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-data-list li strong {
    color: #000000;
    min-width: 120px;
    display: inline-block;
}

/* Listas normales */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-list li {
    position: relative;
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.legal-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list li strong {
    color: #000000;
    display: block;
    margin-bottom: 4px;
}

/* Lista de derechos */
.legal-rights-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.legal-rights-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0fdf4;
    border-radius: 10px;
    color: #166534;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.legal-rights-list li i {
    color: #10b981;
    font-size: 1.25rem;
}

/* Información de contacto */
.legal-contact-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    margin-top: 24px;
}

.legal-contact-info a {
    color: #10b981;
    font-weight: 600;
    text-decoration: underline;
}

.legal-contact-info a:hover {
    color: #059669;
}

/* Última actualización */
.legal-updated {
    text-align: center;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    margin-top: 48px;
}

.legal-updated p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9375rem;
    background: #f8fafc;
    padding: 12px 24px;
    border-radius: 8px;
}

.legal-updated i {
    color: #10b981;
}

/* =================================================================
   2. RESPONSIVE
   ================================================================= */

@media (max-width: 991px) {
    .legal-content-section {
        padding: 7rem 0 4rem 0;
    }
}

@media (max-width: 768px) {
    .legal-content-section {
        padding: 6rem 0 3rem 0;
    }

    .legal-content-wrapper {
        padding: 0 15px;
    }

    .legal-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .legal-section-title {
        font-size: 1.25rem;
        gap: 12px;
    }

    .legal-section-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .legal-section-content {
        font-size: 0.9375rem;
    }

    .legal-data-list {
        padding: 16px;
    }

    .legal-data-list li strong {
        display: block;
        margin-bottom: 4px;
    }

    .legal-rights-list {
        grid-template-columns: 1fr;
    }

    .legal-rights-list li {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }

    .legal-contact-info {
        padding: 16px 20px;
    }

    .legal-updated {
        margin-top: 32px;
        padding-top: 24px;
    }

    .legal-updated p {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .legal-section-title {
        font-size: 1.125rem;
    }

    .legal-section-number {
        width: 32px;
        height: 32px;
        font-size: 0.9375rem;
    }

    .legal-section-content {
        font-size: 0.875rem;
        line-height: 1.7;
    }
}
