body {
    background: #f5f8fc;
    color: #152746;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(255,255,255,.96);

    border-bottom:
        1px solid #e2eaf4;

    backdrop-filter:
        blur(14px);
}

.legal-nav {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.legal-nav nav {
    display: flex;
    align-items: center;

    gap: 25px;
}

.legal-nav nav a {
    color: #153762;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
}

.legal-nav nav a:last-child {
    padding:
        11px 17px;

    border-radius:
        11px;

    background:
        #087cff;

    color:
        #fff;
}


.legal-hero {
    position: relative;
    overflow: hidden;

    padding:
        80px 0 76px;

    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(0,228,253,.24),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #010522,
            #04134c
        );

    color: white;
}

.legal-hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -230px;
    top: -300px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius:
        50%;

    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(0,228,253,.016);
}

.legal-kicker {
    display: inline-block;

    margin-bottom: 14px;

    color: #00e4fd;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.8px;
}

.legal-hero h1 {
    max-width: 900px;

    margin:
        0 0 18px;

    font-size:
        clamp(44px,6vw,72px);

    line-height: .98;

    letter-spacing: -3px;

    color: white;
}

.legal-hero p {
    margin:
        0 0 7px;

    color:
        rgba(255,255,255,.80);

    font-size: 19px;
}

.legal-hero small {
    color:
        rgba(255,255,255,.55);
}


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

.legal-layout {
    display: grid;

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

    gap: 45px;

    align-items: start;
}


.legal-index {
    position: sticky;

    top: 105px;

    display: flex;
    flex-direction: column;

    padding: 23px;

    border:
        1px solid #dde7f4;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 12px 35px
        rgba(10,46,95,.055);
}

.legal-index strong {
    margin-bottom: 13px;

    color: #010522;

    font-size: 14px;
}

.legal-index a {
    padding:
        10px 0;

    border-bottom:
        1px solid #edf2f8;

    color: #42617e;

    text-decoration: none;

    font-size: 13px;

    transition:
        color .15s ease;
}

.legal-index a:last-child {
    border-bottom: 0;
}

.legal-index a:hover {
    color: #087cff;
}


.legal-document {
    padding:
        46px 52px;

    border:
        1px solid #dde7f4;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 18px 50px
        rgba(10,46,95,.055);
}

.legal-document section {
    padding:
        0 0 36px;

    margin:
        0 0 36px;

    border-bottom:
        1px solid #e8eef6;
}

.legal-document section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;

    border-bottom: 0;
}

.legal-document h2 {
    margin:
        0 0 17px;

    color: #010522;

    font-size:
        26px;

    line-height: 1.2;

    letter-spacing: -.7px;
}

.legal-document p,
.legal-document li {
    color: #52647a;

    font-size: 16px;

    line-height: 1.8;
}

.legal-document p {
    margin:
        0 0 16px;
}

.legal-document ul {
    padding-left: 23px;
}

.legal-document li {
    margin-bottom: 8px;
}

.legal-document a {
    color: #055adf;
    font-weight: 750;
}


.legal-footer {
    padding:
        42px 0 24px;

    background:
        #010522;

    color:
        rgba(255,255,255,.66);
}

.legal-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding-bottom: 30px;

    border-bottom:
        1px solid rgba(255,255,255,.10);
}

.legal-footer-top nav {
    display: flex;
    flex-wrap: wrap;

    gap:
        11px 23px;
}

.legal-footer-top nav a {
    color:
        rgba(255,255,255,.72);

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.legal-footer-top nav a:hover {
    color: #00e4fd;
}

.legal-footer-bottom {
    padding-top: 23px;

    text-align: center;

    font-size: 12px;
}


@media (max-width: 800px) {

    .legal-nav nav a:not(:last-child) {
        display: none;
    }

    .legal-layout {
        grid-template-columns:
            1fr;
    }

    .legal-index {
        position: static;
    }

    .legal-document {
        padding:
            30px 25px;
    }

    .legal-footer-top {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* ==========================================================
   CHATCOOL - DATOS LEGALES
   ========================================================== */

.legal-data-table {
    width: 100%;

    max-width: 900px;

    margin:
        24px 0 30px;

    border:
        1px solid #d9e5f1;

    border-radius:
        14px;

    overflow:
        hidden;

    background:
        #f8fbff;
}


.legal-data-row {
    display:
        grid;

    grid-template-columns:
        minmax(180px, 34%)
        minmax(0, 66%);

    border-bottom:
        1px solid #dfe8f2;
}


.legal-data-row:last-child {
    border-bottom:
        0;
}


.legal-data-row strong,
.legal-data-row span {
    display:
        flex;

    align-items:
        center;

    min-height:
        52px;

    padding:
        12px 16px;

    line-height:
        1.5;
}


.legal-data-row strong {
    color:
        #071634;

    background:
        #edf4fb;

    border-right:
        1px solid #dfe8f2;

    font-size:
        13px;

    font-weight:
        850;
}


.legal-data-row span {
    color:
        #344861;

    background:
        #fff;

    font-size:
        14px;
}


.legal-data-row a {
    color:
        #055adf;

    text-decoration:
        none;

    font-weight:
        750;
}


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


.legal-document h3 {
    margin:
        25px 0 8px;

    color:
        #173a67;

    font-size:
        17px;

    line-height:
        1.35;
}


.legal-document code {
    padding:
        2px 6px;

    border-radius:
        5px;

    background:
        #eef4fa;

    color:
        #173a67;

    font-size:
        .9em;
}


@media (max-width: 650px) {

    .legal-data-row {
        grid-template-columns:
            1fr;
    }

    .legal-data-row strong {
        min-height:
            auto;

        padding-bottom:
            5px;

        border-right:
            0;

        background:
            #edf4fb;
    }

    .legal-data-row span {
        min-height:
            auto;

        padding-top:
            8px;
    }

}
