/* ==========================================================
   ISAAC GALLO — LEGAL PAGES

   Compartido por:
   /cookies/
   /privacidad/
   /aviso-legal/
========================================================== */


/* ==========================================================
   01. LEGAL BASE
========================================================== */

.legal-page {

    width: 100%;

    background:
        var(--white);

}


.legal-container {

    width:
        min(
            var(--container),
            88%
        );

    margin:
        0 auto;

}



/* ==========================================================
   02. LEGAL HERO
========================================================== */

.legal-hero {

    position:
        relative;

    width:
        100%;

    padding:
        190px 0
        110px;

    overflow:
        hidden;

    background:
        var(--white);

}


/*
   Línea decorativa de marca.
   Muy discreta para mantener
   la página limpia.
*/

.legal-hero::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        0;

    width:
        100%;

    height:
        1px;

    background:
        linear-gradient(
            90deg,

            transparent,

            rgba(
                61,
                183,
                255,
                0.45
            ),

            rgba(
                126,
                217,
                87,
                0.30
            ),

            transparent
        );

}


.legal-hero h1 {

    max-width:
        900px;

    margin:
        0;

    color:
        var(--text);

    font-size:
        clamp(
            4rem,
            8vw,
            7rem
        );

    line-height:
        0.94;

    font-weight:
        760;

    letter-spacing:
        -5px;

}


.legal-hero-description {

    max-width:
        700px;

    margin-top:
        35px;

    color:
        var(--text-soft);

    font-size:
        1.25rem;

    line-height:
        1.75;

}


.legal-updated {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    margin-top:
        32px;

    padding:
        9px 14px;

    color:
        #59616A;

    font-size:
        0.8rem;

    font-weight:
        600;

    background:
        #F5F6F7;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

}


.legal-updated::before {

    content:
        "";

    width:
        6px;

    height:
        6px;

    flex:
        0 0 auto;

    border-radius:
        50%;

    background:
        var(--green);

}



/* ==========================================================
   03. GENERAL LEGAL SECTION
========================================================== */

.legal-section {

    position:
        relative;

    width:
        100%;

    padding:
        110px 0;

    background:
        var(--white);

}


.legal-section-alt {

    background:
        #F5F6F7;

}



/* ==========================================================
   04. LEGAL SECTION HEADING
========================================================== */

.legal-section-heading {

    display:
        grid;

    grid-template-columns:
        65px
        minmax(
            0,
            1fr
        );

    gap:
        30px;

    max-width:
        900px;

    margin-bottom:
        55px;

    align-items:
        start;

}


.legal-number {

    width:
        52px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    color:
        var(--blue);

    font-size:
        0.75rem;

    font-weight:
        750;

    letter-spacing:
        1px;

    background:
        #F6FBFE;

    border:
        1px solid
        rgba(
            61,
            183,
            255,
            0.24
        );

    border-radius:
        50%;

}


.legal-section-heading h2 {

    max-width:
        760px;

    color:
        var(--text);

    font-size:
        clamp(
            2.5rem,
            4vw,
            4rem
        );

    line-height:
        1;

    font-weight:
        720;

    letter-spacing:
        -2.5px;

}


.legal-section-intro {

    max-width:
        650px;

    margin-top:
        20px;

    color:
        var(--text-soft);

    font-size:
        1.12rem;

    line-height:
        1.7;

}



/* ==========================================================
   05. LEGAL CONTENT
========================================================== */

.legal-content {

    max-width:
        820px;

    margin-left:
        95px;

}


.legal-content p {

    margin-bottom:
        24px;

    color:
        var(--text-soft);

    font-size:
        1.04rem;

    line-height:
        1.85;

}


.legal-content p:last-child {

    margin-bottom:
        0;

}


.legal-content h3 {

    margin:
        42px 0
        16px;

    color:
        var(--text);

    font-size:
        1.35rem;

    font-weight:
        700;

    letter-spacing:
        -0.6px;

}


.legal-content ul,
.legal-content ol {

    margin:
        20px 0
        28px
        22px;

    color:
        var(--text-soft);

}


.legal-content li {

    margin-bottom:
        10px;

    padding-left:
        5px;

    font-size:
        1.02rem;

    line-height:
        1.75;

}


.legal-content a {

    color:
        #1678A3;

    text-decoration:
        underline;

    text-decoration-thickness:
        1px;

    text-underline-offset:
        3px;

    transition:
        color 0.2s ease;

}


.legal-content a:hover {

    color:
        var(--blue);

}



/* ==========================================================
   06. COOKIE TYPE CARDS
========================================================== */

.cookie-types-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        20px;

}


.cookie-type-card {

    position:
        relative;

    min-height:
        270px;

    padding:
        34px;

    overflow:
        hidden;

    background:
        var(--white);

    border:
        1px solid
        var(--border);

    border-radius:
        28px;

    box-shadow:
        0 10px 35px
        rgba(
            20,
            35,
            45,
            0.025
        );

    transition:
        transform 0.3s
        var(--ease),
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.cookie-type-card::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        34px;

    width:
        52px;

    height:
        3px;

    border-radius:
        0 0
        10px 10px;

    background:
        var(--blue);

}


.cookie-type-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-soft);

}


.cookie-blue::before {

    background:
        var(--blue);

}


.cookie-green::before {

    background:
        var(--green);

}


.cookie-red::before {

    background:
        var(--red);

}


.cookie-neutral::before {

    background:
        #AEB4BB;

}


.cookie-blue:hover {

    border-color:
        rgba(
            61,
            183,
            255,
            0.32
        );

}


.cookie-green:hover {

    border-color:
        rgba(
            126,
            217,
            87,
            0.42
        );

}


.cookie-red:hover {

    border-color:
        rgba(
            255,
            91,
            91,
            0.32
        );

}


.cookie-neutral:hover {

    border-color:
        #C7CBD0;

}


.cookie-card-number {

    display:
        block;

    margin-bottom:
        42px;

    color:
        #8B929A;

    font-size:
        0.72rem;

    font-weight:
        750;

    letter-spacing:
        1.5px;

}


.cookie-type-card h3 {

    margin-bottom:
        16px;

    color:
        var(--text);

    font-size:
        1.4rem;

    font-weight:
        680;

    letter-spacing:
        -0.8px;

}


.cookie-type-card p {

    color:
        var(--text-soft);

    font-size:
        0.98rem;

    line-height:
        1.7;

}



/* ==========================================================
   07. COOKIE TABLE
========================================================== */

.cookie-table-wrapper {

    width:
        100%;

    margin-top:
        55px;

    overflow-x:
        auto;

    overscroll-behavior-x:
        contain;

    -webkit-overflow-scrolling:
        touch;

    background:
        var(--white);

    border:
        1px solid
        var(--border);

    border-radius:
        24px;

    box-shadow:
        0 10px 35px
        rgba(
            20,
            35,
            45,
            0.035
        );

}


.cookie-table {

    width:
        100%;

    min-width:
        760px;

    border-collapse:
        collapse;

}


.cookie-table th,
.cookie-table td {

    padding:
        22px 24px;

    text-align:
        left;

    vertical-align:
        top;

    border-bottom:
        1px solid
        var(--border);

}


.cookie-table th {

    color:
        var(--text);

    font-size:
        0.76rem;

    font-weight:
        750;

    letter-spacing:
        1px;

    text-transform:
        uppercase;

    background:
        #F7F8F9;

}


.cookie-table td {

    color:
        var(--text-soft);

    font-size:
        0.94rem;

    line-height:
        1.65;

}


.cookie-table tbody
tr:last-child td {

    border-bottom:
        0;

}


.cookie-table code {

    display:
        inline-block;

    padding:
        5px 9px;

    color:
        #155C7B;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        0.84rem;

    font-weight:
        650;

    background:
        rgba(
            61,
            183,
            255,
            0.09
        );

    border-radius:
        8px;

}



/* ==========================================================
   08. LEGAL NOTE
========================================================== */

.legal-note {

    max-width:
        820px;

    margin:
        28px 0
        0
        95px;

    padding:
        22px 24px;

    display:
        flex;

    gap:
        16px;

    align-items:
        flex-start;

    background:
        #F8F9FA;

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

}


.legal-note-icon {

    width:
        28px;

    height:
        28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    color:
        #0D4B67;

    font-size:
        0.78rem;

    font-weight:
        800;

    background:
        rgba(
            61,
            183,
            255,
            0.16
        );

    border-radius:
        50%;

}


.legal-note p {

    color:
        var(--text-soft);

    font-size:
        0.9rem;

    line-height:
        1.7;

}



/* ==========================================================
   09. DARK LEGAL SECTION
   GOOGLE ANALYTICS
========================================================== */

.legal-section-dark {

    color:
        var(--white);

    background:
        linear-gradient(
            135deg,
            var(--footer-blue),
            var(--footer-blue-deep)
        );

}


.analytics-block {

    max-width:
        900px;

    padding:
        30px 0;

}


.legal-eyebrow {

    margin-bottom:
        24px;

    color:
        var(--blue);

    font-size:
        0.76rem;

    font-weight:
        750;

    letter-spacing:
        3px;

    text-transform:
        uppercase;

}


.analytics-block h2 {

    max-width:
        700px;

    margin-bottom:
        35px;

    color:
        var(--white);

    font-size:
        clamp(
            3rem,
            5vw,
            5rem
        );

    line-height:
        0.97;

    letter-spacing:
        -3px;

}


.analytics-block > p {

    max-width:
        760px;

    margin-bottom:
        21px;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size:
        1.04rem;

    line-height:
        1.8;

}


.legal-external-link {

    display:
        inline-flex;

    margin-top:
        18px;

    color:
        var(--white);

    text-decoration:
        none;

    font-size:
        0.95rem;

    font-weight:
        700;

    transition:
        color 0.2s ease,
        transform 0.25s
        var(--ease);

}


.legal-external-link:hover {

    color:
        var(--blue);

    transform:
        translateX(5px);

}



/* ==========================================================
   10. COOKIE SETTINGS BUTTON
========================================================== */

.cookie-settings-button {

    margin-top:
        15px;

    padding:
        14px 24px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #07131C;

    font-size:
        0.92rem;

    font-weight:
        700;

    background:
        var(--blue);

    border:
        1px solid
        var(--blue);

    border-radius:
        999px;

    cursor:
        pointer;

    box-shadow:
        0 8px 24px
        rgba(
            61,
            183,
            255,
            0.18
        );

    transition:
        transform 0.25s
        var(--ease),
        box-shadow 0.25s ease;

}


.cookie-settings-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(
            61,
            183,
            255,
            0.28
        );

}



/* ==========================================================
   11. BROWSER CARDS
========================================================== */

.browser-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap:
        16px;

}


.browser-card {

    min-height:
        105px;

    padding:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--text);

    text-decoration:
        none;

    font-size:
        1rem;

    font-weight:
        650;

    background:
        var(--white);

    border:
        1px solid
        var(--border);

    border-radius:
        22px;

    transition:
        transform 0.3s
        var(--ease),
        border-color 0.3s ease,
        box-shadow 0.3s ease;

}


.browser-card span:last-child {

    color:
        var(--blue);

    font-size:
        1.2rem;

    transition:
        transform 0.25s
        var(--ease);

}


.browser-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(
            61,
            183,
            255,
            0.35
        );

    box-shadow:
        var(--shadow-soft);

}


.browser-card:hover
span:last-child {

    transform:
        translateX(4px);

}



/* ==========================================================
   12. FINAL LEGAL SECTION
========================================================== */

.legal-section-final {

    padding:
        100px 0
        130px;

    background:
        var(--white);

}


.legal-final-card {

    position:
        relative;

    padding:
        clamp(
            40px,
            7vw,
            80px
        );

    overflow:
        hidden;

    background:
        #F5F6F7;

    border:
        1px solid
        var(--border);

    border-radius:
        34px;

}


.legal-final-card::after {

    content:
        "";

    position:
        absolute;

    width:
        180px;

    height:
        180px;

    right:
        -100px;

    bottom:
        -100px;

    border:
        1px solid
        rgba(
            61,
            183,
            255,
            0.22
        );

    border-radius:
        50%;

    pointer-events:
        none;

}


.legal-final-card h2 {

    max-width:
        700px;

    margin-bottom:
        28px;

    color:
        var(--text);

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.5rem
        );

    line-height:
        1;

    letter-spacing:
        -3px;

}


.legal-final-card > p {

    max-width:
        760px;

    margin-bottom:
        20px;

    color:
        var(--text-soft);

    font-size:
        1rem;

    line-height:
        1.75;

}



/* ==========================================================
   13. RELATED LEGAL LINKS
========================================================== */

.legal-related-links {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        28px;

    margin-top:
        35px;

}


.legal-related-links a {

    color:
        var(--text);

    text-decoration:
        none;

    font-size:
        0.94rem;

    font-weight:
        700;

    transition:
        color 0.2s ease,
        transform 0.25s
        var(--ease);

}


.legal-related-links a:hover {

    color:
        var(--blue);

    transform:
        translateX(4px);

}



/* ==========================================================
   14. RESPONSIVE — 1280
========================================================== */

@media (
    max-width:
    1280px
) {

    .legal-container {

        width:
            min(
                1120px,
                88%
            );

    }

}



/* ==========================================================
   15. RESPONSIVE — 1100
========================================================== */

@media (
    max-width:
    1100px
) {

    .browser-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

    }

}



/* ==========================================================
   16. RESPONSIVE — 900
========================================================== */

@media (
    max-width:
    900px
) {

    .legal-hero {

        padding:
            165px 0
            95px;

    }


    .legal-content {

        margin-left:
            80px;

    }


    .legal-note {

        margin-left:
            80px;

    }

}



/* ==========================================================
   17. RESPONSIVE — TABLET VERTICAL
   820px
========================================================== */

@media (
    max-width:
    820px
) {

    .legal-hero {

        padding:
            150px 0
            90px;

    }


    .legal-hero h1 {

        font-size:
            clamp(
                3.6rem,
                11vw,
                5.5rem
            );

        letter-spacing:
            -4px;

    }


    .legal-section {

        padding:
            90px 0;

    }


    .legal-content {

        margin-left:
            0;

    }


    .legal-note {

        margin-left:
            0;

    }


    .cookie-types-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .analytics-block {

        padding:
            20px 0;

    }

}



/* ==========================================================
   18. RESPONSIVE — MOBILE
   700px
========================================================== */

@media (
    max-width:
    700px
) {

    .legal-container {

        width:
            90%;

    }


    /* HERO */

    .legal-hero {

        padding:
            135px 0
            75px;

    }


    .legal-hero h1 {

        font-size:
            clamp(
                3rem,
                14vw,
                4.4rem
            );

        letter-spacing:
            -3px;

    }


    .legal-hero-description {

        margin-top:
            28px;

        font-size:
            1.08rem;

    }


    /* SECTIONS */

    .legal-section {

        padding:
            80px 0;

    }


    .legal-section-heading {

        grid-template-columns:
            1fr;

        gap:
            20px;

        margin-bottom:
            40px;

    }


    .legal-number {

        width:
            46px;

        height:
            46px;

    }


    .legal-section-heading h2 {

        font-size:
            clamp(
                2.35rem,
                10vw,
                3.2rem
            );

        letter-spacing:
            -2px;

    }


    .legal-section-intro {

        font-size:
            1.04rem;

    }


    .legal-content p {

        font-size:
            1rem;

    }


    /* COOKIE TYPES */

    .cookie-types-grid {

        grid-template-columns:
            1fr;

    }


    .cookie-type-card {

        min-height:
            auto;

        padding:
            30px;

    }


    .cookie-type-card::before {

        left:
            30px;

    }


    .cookie-card-number {

        margin-bottom:
            30px;

    }


    /* TABLE */

    .cookie-table-wrapper {

        margin-top:
            40px;

        border-radius:
            18px;

    }


    /*
       La tabla puede desplazarse
       horizontalmente dentro de su caja.

       No aumenta el ancho del documento.
    */

    .cookie-table {

        min-width:
            700px;

    }


    .cookie-table th,
    .cookie-table td {

        padding:
            19px 20px;

    }


    /* ANALYTICS */

    .analytics-block {

        padding:
            10px 0;

    }


    .analytics-block h2 {

        font-size:
            clamp(
                2.7rem,
                11vw,
                3.8rem
            );

        letter-spacing:
            -2.5px;

    }


    /* BROWSERS */

    .browser-grid {

        grid-template-columns:
            1fr;

    }


    .browser-card {

        min-height:
            85px;

    }


    /* FINAL */

    .legal-section-final {

        padding:
            70px 0
            95px;

    }


    .legal-final-card {

        padding:
            38px 28px;

        border-radius:
            28px;

    }


    .legal-final-card h2 {

        font-size:
            clamp(
                2.4rem,
                10vw,
                3.4rem
            );

        letter-spacing:
            -2px;

    }

}



/* ==========================================================
   19. RESPONSIVE — 520
========================================================== */

@media (
    max-width:
    520px
) {

    .legal-hero {

        padding:
            125px 0
            65px;

    }


    .legal-hero h1 {

        font-size:
            clamp(
                2.8rem,
                14vw,
                3.8rem
            );

    }


    .legal-updated {

        font-size:
            0.75rem;

    }


    .legal-section {

        padding:
            70px 0;

    }


    .legal-section-heading {

        margin-bottom:
            34px;

    }


    .legal-section-heading h2 {

        font-size:
            2.4rem;

    }


    .cookie-type-card {

        padding:
            27px;

        border-radius:
            24px;

    }


    .cookie-type-card::before {

        left:
            27px;

    }


    .legal-note {

        padding:
            18px;

        border-radius:
            16px;

    }


    .cookie-settings-button {

        width:
            100%;

    }


    .legal-related-links {

        flex-direction:
            column;

        gap:
            18px;

    }

}



/* ==========================================================
   20. RESPONSIVE — 390
========================================================== */

@media (
    max-width:
    390px
) {

    .legal-hero h1 {

        font-size:
            2.75rem;

        letter-spacing:
            -2px;

    }


    .legal-section-heading h2 {

        font-size:
            2.15rem;

    }


    .analytics-block h2 {

        font-size:
            2.55rem;

    }


    .legal-final-card {

        padding:
            32px 22px;

    }


    .legal-final-card h2 {

        font-size:
            2.3rem;

    }

}



/* ==========================================================
   21. REDUCED MOTION
========================================================== */

@media (
    prefers-reduced-motion:
    reduce
) {

    .cookie-type-card,
    .browser-card,
    .cookie-settings-button,
    .legal-external-link,
    .legal-related-links a {

        transition:
            none;

    }


    .cookie-type-card:hover,
    .browser-card:hover,
    .cookie-settings-button:hover,
    .legal-external-link:hover,
    .legal-related-links a:hover {

        transform:
            none;

    }

}