/* ============================================================
   OrtaLegal · Fondo institucional común
   Motivo jurídico sutil compartido por portal y gestión.
   ============================================================ */

html{
    min-height:100%;
}

body{
    position:relative;
    isolation:isolate;
    min-height:100vh;
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    right:clamp(-120px,-5vw,-38px);
    bottom:clamp(-150px,-8vw,-58px);
    width:clamp(540px,52vw,980px);
    aspect-ratio:1173/951;
    pointer-events:none;
    background-image:url('/assets/img/legal-motif-copper.webp');
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    opacity:.22;
    z-index:-1;
    filter:saturate(.95) contrast(.96);
}

body.dark::before{
    opacity:.13;
    filter:saturate(.85) contrast(.9);
}

.topbar,
.layout,
.login-wrap,
.content,
.auth-shell,
.review-shell,
.ol-support-modal{
    position:relative;
    z-index:1;
}

@media (max-width:980px){
    body::before{
        right:-190px;
        bottom:-120px;
        width:min(880px,130vw);
        opacity:.16;
    }

    body.dark::before{
        opacity:.10;
    }
}

@media (max-width:560px){
    body::before{
        right:-230px;
        bottom:-90px;
        width:760px;
        opacity:.13;
    }

    body.dark::before{
        opacity:.08;
    }
}
