
/* =========================
   POLICY MODAL
========================= */

.policy-modal{
    display:none;               /* CHỈ để none */
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    backdrop-filter:blur(2px);
    z-index:9999;

    justify-content:center;
    align-items:center;
    padding:20px;
}

/* khi mở modal */
.policy-modal.active{
    display:flex;
}

.policy-content{
    background:white;
    width:100%;
    max-width:900px;
    max-height:90vh;
    border-radius:16px;
    box-shadow:0 25px 60px rgba(0,0,0,0.35);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    animation:fadeIn 0.2s ease;
}

/* HEADER */
.policy-header{
    background:#111827;
    color:white;
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:600;
}

/* BODY */
.policy-body{
    padding:25px;
    overflow-y:auto;
    line-height:1.7;
    font-size:14px;
    flex:1;
}

/* FOOTER */
.policy-footer{
    padding:15px 20px;
    border-top:1px solid #eee;
    text-align:right;
}

/* BUTTON */
.btn-agree{
    background:#2563eb;
    color:white;
    padding:10px 20px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s;
}

.btn-agree:hover{
    opacity:0.9;
}

.close-btn{
    cursor:pointer;
    font-size:18px;
}
/* =========================
   TERMS CHECK (FIX FULL)
========================= */

.terms-check{
    margin-top:16px;
    font-size:14px;
    line-height:1.6;
}

/* dòng 1: checkbox + label */
.terms-main{
    display:flex;
    align-items:center;
    gap:8px;
}

/* fix nếu global input block */
.terms-main input[type="checkbox"]{
    display:inline-flex !important;
    width:auto !important;
    margin:0;
    flex-shrink:0;
    cursor:pointer;
}

/* label */
.terms-text{
    cursor:pointer;
    margin:0;
}

/* dòng 2: policy thụt vào */
.terms-policy{
    margin-left:26px;   /* canh thẳng với chữ dòng trên */
}

/* link */
.terms-link{
    color:#2563eb;
    text-decoration:underline;
    cursor:pointer;
    font-weight:500;
}

.terms-link:hover{
    color:#1d4ed8;
}
/* ANIMATION */
@keyframes fadeIn{
    from{opacity:0; transform:scale(0.97);}
    to{opacity:1; transform:scale(1);}
}

/* MOBILE */
@media(max-width:768px){

    .policy-content{
        max-height:95vh;
        border-radius:12px;
    }

    .policy-body{
        padding:18px;
        font-size:13px;
    }

    .btn-agree{
        width:100%;
    }
}

/* FORCE COLOR TERMS LINK */
.auth-card .terms-check .terms-link{
    color:#2563eb !important;
    text-decoration:underline;
    font-weight:500;
}

.auth-card .terms-check .terms-link:hover{
    color:#1d4ed8 !important;
}