/* ============================================================
    ARCHIVO: legal.css
    Estilos para páginas legales: Privacidad, Términos,
    Devoluciones y Cookies | UrgencLink
    ============================================================ */

/* ============================================================
    SECCIÓN 1: HERO LEGAL (compartido entre todas las páginas)
    ============================================================ */

.hero-legal {
    padding: 180px 0 100px;
    min-height: 60vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #061224, #0B5ED7);
    display: flex;
    align-items: center;
}

/* ===== Decoración de fondo (círculo superior derecho) ===== */
.hero-legal::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    top: -250px;
    right: -180px;
}

/* ===== Contenido del hero ===== */
.hero-legal .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Badge del hero ===== */
.hero-legal .badge-hero {
    background: rgba(255, 255, 255, .10);
    color: #8BE9FF;
    border: 1px solid rgba(255, 255, 255, .15);
}

.hero-legal .badge-hero i {
    color: #16C2F5;
}

/* ===== Títulos ===== */
.hero-legal h1 {
    color: #FFF;
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-legal h1 span {
    color: #8BE9FF;
}

/* ===== Descripción ===== */
.hero-legal p {
    color: rgba(255, 255, 255, .82);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 18px;
}

/* ============================================================
    SECCIÓN 2: CONTENIDO LEGAL (compartido)
    ============================================================ */

.legal-content {
    padding: 80px 0 120px;
    background: #F7FAFD;
}

.legal-content .container {
    max-width: 1000px;
}

/* ===== Contenedor principal del contenido legal ===== */
.legal-content .legal-wrapper {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 60px 70px;
    border: 1px solid #E4EDF6;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .06);
}

/* ===== Título principal ===== */
.legal-content .legal-wrapper h1 {
    font-size: 38px;
    color: #061224;
    margin-bottom: 12px;
}

/* ===== Fecha de última actualización ===== */
.legal-content .legal-wrapper .fecha {
    color: #64748B;
    font-size: 15px;
    margin-bottom: 35px;
    display: block;
}

/* ===== Subtítulos de sección (h2) ===== */
.legal-content .legal-wrapper h2 {
    font-size: 26px;
    color: #061224;
    margin: 40px 0 18px 0;
    padding-top: 30px;
    border-top: 1px solid #E4EDF6;
}

.legal-content .legal-wrapper h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* ===== Subtítulos de tercer nivel (h3) ===== */
.legal-content .legal-wrapper h3 {
    font-size: 20px;
    color: #0B5ED7;
    margin: 30px 0 12px 0;
}

/* ===== Párrafos ===== */
.legal-content .legal-wrapper p {
    color: #334155;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 16px;
}

/* ===== Listas no ordenadas (ul) ===== */
.legal-content .legal-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.legal-content .legal-wrapper ul li {
    color: #334155;
    line-height: 1.9;
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #F1F5F9;
    font-size: 15px;
}

.legal-content .legal-wrapper ul li:last-child {
    border-bottom: none;
}

/* ===== Viñeta personalizada (▸) ===== */
.legal-content .legal-wrapper ul li::before {
    content: "▸";
    position: absolute;
    left: 6px;
    color: #0B5ED7;
    font-weight: bold;
}

.legal-content .legal-wrapper ul li strong {
    color: #061224;
}

/* ===== Listas ordenadas (ol) ===== */
.legal-content .legal-wrapper ol {
    margin: 0 0 20px 0;
    padding-left: 25px;
}

.legal-content .legal-wrapper ol li {
    color: #334155;
    line-height: 1.9;
    padding: 6px 0;
    font-size: 15px;
}

.legal-content .legal-wrapper ol li strong {
    color: #061224;
}

/* ===== Enlaces ===== */
.legal-content .legal-wrapper a {
    color: #0B5ED7;
    font-weight: 600;
    text-decoration: none;
    transition: .35s ease;
}

.legal-content .legal-wrapper a:hover {
    color: #16C2F5;
    text-decoration: underline;
}

/* ============================================================
    SECCIÓN 3: NOTA DESTACADA
    ============================================================ */

.legal-content .legal-wrapper .nota-destacada {
    margin-top: 40px;
    padding: 25px 30px;
    background: #F8FBFF;
    border-radius: 16px;
    border: 1px solid #D9E9FF;
}

.legal-content .legal-wrapper .nota-destacada h3 {
    color: #0B5ED7;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.legal-content .legal-wrapper .nota-destacada p {
    margin-bottom: 0;
    font-size: 14px;
}

/* ============================================================
    SECCIÓN 4: BOTÓN VOLVER AL INICIO
    ============================================================ */

.legal-content .back-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    margin-top: 40px;
    background: linear-gradient(135deg, #16C2F5, #0B5ED7);
    color: #FFFFFF !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    transition: .35s ease;
    box-shadow: 0 12px 30px rgba(11, 94, 215, .25);
}

.legal-content .back-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 94, 215, .35);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.legal-content .back-home:visited,
.legal-content .back-home:active {
    color: #FFFFFF !important;
}

.legal-content .back-home i {
    font-size: 18px;
    transition: .35s ease;
}

.legal-content .back-home:hover i {
    transform: translateX(-6px);
}

/* ============================================================
    SECCIÓN 5: RESPONSIVE LEGAL
    ============================================================ */

/* ===== Tablet (1024px) ===== */
@media (max-width: 1024px) {
    .hero-legal h1 {
        font-size: 44px;
    }

    .legal-content .legal-wrapper {
        padding: 45px 40px;
    }
}

/* ===== Tablet pequeña (768px) ===== */
@media (max-width: 768px) {
    .hero-legal {
        padding: 150px 0 60px;
        min-height: 50vh;
    }

    .hero-legal h1 {
        font-size: 34px;
    }

    .hero-legal p {
        font-size: 16px;
        padding: 0 15px;
    }

    .legal-content {
        padding: 50px 0 70px;
    }

    .legal-content .legal-wrapper {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .legal-content .legal-wrapper h1 {
        font-size: 30px;
    }

    .legal-content .legal-wrapper h2 {
        font-size: 22px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .legal-content .legal-wrapper h3 {
        font-size: 18px;
    }

    .legal-content .legal-wrapper p {
        font-size: 15px;
    }

    .legal-content .legal-wrapper ul li {
        font-size: 14px;
        padding: 8px 0 8px 28px;
    }

    .legal-content .legal-wrapper ol li {
        font-size: 14px;
    }

    .legal-content .legal-wrapper .nota-destacada {
        padding: 20px;
    }

    .legal-content .back-home {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Móvil grande (576px) ===== */
@media (max-width: 576px) {
    .hero-legal {
        padding: 130px 0 50px;
        min-height: 40vh;
    }

    .hero-legal h1 {
        font-size: 28px;
    }

    .hero-legal p {
        font-size: 15px;
    }

    .hero-legal .badge-hero {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 25px;
    }

    .legal-content .legal-wrapper {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .legal-content .legal-wrapper h1 {
        font-size: 26px;
    }

    .legal-content .legal-wrapper h2 {
        font-size: 20px;
        padding-top: 18px;
    }

    .legal-content .legal-wrapper h3 {
        font-size: 17px;
    }

    .legal-content .legal-wrapper p {
        font-size: 14px;
        line-height: 1.8;
    }

    .legal-content .legal-wrapper ul li {
        font-size: 14px;
        padding: 6px 0 6px 24px;
        line-height: 1.7;
    }

    .legal-content .legal-wrapper ol li {
        font-size: 14px;
        padding: 4px 0;
    }

    .legal-content .legal-wrapper .nota-destacada {
        padding: 16px 18px;
        border-radius: 12px;
    }

    .legal-content .legal-wrapper .nota-destacada h3 {
        font-size: 16px;
    }

    .legal-content .legal-wrapper .nota-destacada p {
        font-size: 13px;
    }

    .legal-content .back-home {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================================
    SECCIÓN 6: ANIMACIONES LEGALES
    ============================================================ */

/* ===== Animación fadeUp para el hero ===== */
.hero-legal .hero-content {
    animation: fadeUp .8s ease both;
}

/* ===== Animación fadeUp para el wrapper con retraso ===== */
.legal-wrapper {
    animation: fadeUp .8s ease both;
    animation-delay: .15s;
}

/* ===== Keyframes de la animación ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}