:root{
    --primary:#8B5E3C;
    --secondary:#C79A63;
    --light:#F5EFE7;
    --dark:#3D2B1F;
    --accent:#D7B38A;
    --white:#ffffff;
}

.legal-modal-overlay{
    position:fixed;
    inset:0;
    z-index:999999;

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

    padding:30px;

    background:rgba(0,0,0,0.75);
    backdrop-filter:blur(8px);

    opacity:0;
    visibility:hidden;

    transition:all .35s ease;
}

.legal-modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.legal-modal{
    position:relative;

    width:100%;
    max-width:1100px;

    height:90vh;

    background:var(--white);

    border-radius:32px;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    box-shadow:
    0 30px 80px rgba(0,0,0,.25),
    0 10px 30px rgba(0,0,0,.12);

    transform:translateY(30px) scale(.98);

    transition:all .4s ease;
}

.legal-modal-overlay.active .legal-modal{
    transform:translateY(0) scale(1);
}

.legal-modal-close{
    position:absolute;

    top:22px;
    right:22px;

    width:54px;
    height:54px;

    border:none;

    border-radius:50%;

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

    color:var(--primary);

    font-size:20px;

    cursor:pointer;

    z-index:100;

    transition:.3s;

    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.legal-modal-close:hover{
    background:var(--primary);
    color:var(--white);
    transform:rotate(90deg);
}

.legal-modal-header{
    flex-shrink:0;

    padding:50px 70px 40px;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:var(--white);

    text-align:center;

    position:relative;
}

.legal-modal-header::before{
    content:"";

    position:absolute;
    inset:0;

    background:
    radial-gradient(
        circle at top right,
        rgba(255,255,255,.18),
        transparent 40%
    );
}

.legal-modal-icon{
    width:90px;
    height:90px;

    margin:0 auto 25px;

    border-radius:50%;

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

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

    font-size:34px;

    backdrop-filter:blur(10px);

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

.legal-modal-header h2{
    font-size:3rem;
    font-weight:700;

    margin-bottom:12px;

    font-family:'Playfair Display',serif;
}

.legal-modal-header p{
    font-size:15px;
    opacity:.9;
}

.legal-modal-content{
    flex:1;

    overflow-y:auto;

    padding:50px 70px;
}

.legal-modal-content::-webkit-scrollbar{
    width:10px;
}

.legal-modal-content::-webkit-scrollbar-track{
    background:#f0e7dc;
}

.legal-modal-content::-webkit-scrollbar-thumb{
    background:var(--secondary);
    border-radius:50px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

.legal-section{
    margin-bottom:40px;
}

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

.legal-section h3{
    display:flex;
    align-items:center;
    gap:14px;

    font-size:1.45rem;
    font-weight:700;

    color:var(--primary);

    margin-bottom:22px;

    padding-bottom:14px;

    border-bottom:2px solid rgba(139,94,60,.12);
}

.legal-section h3 i{
    color:var(--secondary);
    width:28px;
    text-align:center;
}

.legal-section p{
    color:#55473d;

    line-height:1.95;

    font-size:15px;

    margin-bottom:16px;
}

.legal-section p:last-child{
    margin-bottom:0;
}

.legal-section ul{
    margin:20px 0;

    padding-left:0;

    list-style:none;
}

.legal-section ul li{
    position:relative;

    padding:14px 0 14px 34px;

    border-bottom:1px solid rgba(139,94,60,.08);

    color:#55473d;

    line-height:1.8;
}

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

.legal-section ul li::before{
    content:"";

    position:absolute;

    left:0;
    top:21px;

    width:12px;
    height:12px;

    border-radius:50%;

    background:var(--secondary);

    box-shadow:
    0 0 0 5px rgba(199,154,99,.18);
}

.legal-card{
    background:linear-gradient(
        135deg,
        #fbf7f2,
        #f4ece2
    );

    border:1px solid rgba(139,94,60,.08);

    border-left:5px solid var(--secondary);

    border-radius:20px;

    padding:25px 28px;

    margin-top:20px;
}

.legal-card p{
    margin-bottom:12px;
}

.legal-card p:last-child{
    margin-bottom:0;
}

.legal-card strong{
    color:var(--primary);
}

.legal-highlight{
    background:rgba(199,154,99,.12);

    border-left:5px solid var(--secondary);

    padding:20px 24px;

    border-radius:18px;

    margin:25px 0;
}

.legal-highlight p{
    margin:0;
}

.legal-warning{
    background:rgba(255,193,7,.10);

    border-left:5px solid #ffc107;

    padding:20px 24px;

    border-radius:18px;

    margin:25px 0;
}

.legal-warning p{
    margin:0;
}

.legal-danger{
    background:rgba(220,53,69,.08);
    border-left:5px solid #dc3545;
    padding:20px 24px;
    border-radius:18px;
    margin:25px 0;
}
.legal-danger p{
    margin:0;
}
.legal-section a{
    color:var(--primary);
    font-weight:600;
}
.legal-section a:hover{
    color:var(--secondary);
}
body.legal-modal-open{
    overflow:hidden;
}

@media(max-width:1200px){

    .legal-modal{
        width:96%;
    }

}

@media(max-width:992px){

    .legal-modal{
        height:92vh;
    }

    .legal-modal-header{
        padding:40px;
    }

    .legal-modal-content{
        padding:40px;
    }

    .legal-modal-header h2{
        font-size:2.4rem;
    }

}

@media(max-width:768px){

    .legal-modal-overlay{
        padding:15px;
    }

    .legal-modal{
        width:100%;
        height:95vh;

        border-radius:24px;
    }

    .legal-modal-header{
        padding:35px 25px;
    }

    .legal-modal-content{
        padding:30px 25px;
    }

    .legal-modal-header h2{
        font-size:2rem;
    }

    .legal-modal-icon{
        width:72px;
        height:72px;

        font-size:28px;
    }

    .legal-section h3{
        font-size:1.15rem;
    }

    .legal-section p,
    .legal-section li{
        font-size:14px;
    }

    .legal-modal-close{
        width:48px;
        height:48px;

        top:15px;
        right:15px;
    }

}

@media(max-width:480px){

    .legal-modal-header{
        padding:30px 20px;
    }

    .legal-modal-content{
        padding:25px 20px;
    }

    .legal-modal-header h2{
        font-size:1.7rem;
    }

    .legal-section{
        margin-bottom:32px;
    }

    .legal-card,
    .legal-highlight,
    .legal-warning,
    .legal-danger{
        padding:18px;
    }

}