/* =========================================
   CSI YASAL METİN MODALI
========================================= */

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

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

    padding: 24px;

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

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal {
    position: relative;

    width: min(940px, 96vw);
    max-height: 90vh;

    overflow: hidden;

    border: 1px solid rgba(255, 213, 74, 0.18);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #17191f,
            #0e1014
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.72);
}

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

    min-height: 76px;

    padding:
        18px
        72px
        18px
        26px;

    display: flex;
    align-items: center;
    gap: 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        rgba(18, 20, 25, 0.98);
}

.legal-modal-header-icon {
    min-width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        rgba(255, 213, 74, 0.1);

    color: #ffd54a;

    font-size: 18px;
}

.legal-modal-header-text {
    min-width: 0;
}

.legal-modal-header-text small {
    display: block;

    margin-bottom: 3px;

    color: #8d8d8d;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.legal-modal-header-text h2 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
}

.legal-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.045);

    color: #ffffff;

    cursor: pointer;

    font-size: 18px;

    transition: 0.2s ease;
}

.legal-modal-close:hover {
    color: #ffd54a;

    border-color:
        rgba(255, 213, 74, 0.38);

    background:
        rgba(255, 213, 74, 0.08);
}

.legal-modal-content {
    max-height:
        calc(90vh - 76px);

    overflow-y: auto;

    padding: 10px 0 25px;

    scrollbar-width: thin;

    scrollbar-color:
        #66551d
        #14161b;
}

.legal-modal-content section {
    padding:
        27px
        34px;

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

.legal-modal-content section:last-child {
    border-bottom: none;
}

.legal-modal-content h2 {
    margin:
        0
        0
        18px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;

    font-size: 19px;
}

.legal-modal-content h2 span {
    min-width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(255, 213, 74, 0.1);

    color: #ffd54a;

    font-size: 12px;
}

.legal-modal-content h3 {
    margin:
        23px
        0
        11px;

    color: #e7e7e7;

    font-size: 15px;
}

.legal-modal-content p {
    margin:
        0
        0
        14px;

    color: #aaaaaa;

    line-height: 1.8;

    font-size: 14px;
}

.legal-modal-content ul {
    margin:
        11px
        0
        17px;

    padding-left: 21px;
}

.legal-modal-content li {
    margin-bottom: 9px;

    color: #aaaaaa;

    line-height: 1.65;

    font-size: 14px;
}

.legal-modal-content li::marker {
    color: #ffd54a;
}

.legal-modal-content .legal-notice {
    margin-top: 20px;

    padding: 16px 18px;

    display: flex;
    gap: 12px;

    border:
        1px solid
        rgba(255, 213, 74, 0.15);

    border-radius: 10px;

    background:
        rgba(255, 213, 74, 0.045);
}

.legal-modal-content .legal-notice i {
    margin-top: 3px;

    color: #ffd54a;
}

.legal-modal-content .legal-notice p {
    margin: 0;
}

.legal-modal-content .legal-contact {
    margin-top: 15px;

    padding: 15px;

    display: flex;
    align-items: center;
    gap: 13px;

    border:
        1px solid
        rgba(255, 213, 74, 0.15);

    border-radius: 10px;

    background:
        rgba(255, 213, 74, 0.04);

    color: #ffffff;

    text-decoration: none;
}

.legal-modal-loading {
    padding: 70px 25px;

    text-align: center;

    color: #888;
}

.legal-modal-loading i {
    margin-bottom: 14px;

    color: #ffd54a;

    font-size: 28px;
}

body.legal-modal-open {
    overflow: hidden;
}

@media (max-width: 650px) {

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

    .legal-modal {
        width: 100%;
        max-height: 94vh;
    }

    .legal-modal-content {
        max-height:
            calc(94vh - 72px);
    }

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

    .legal-modal-header {
        min-height: 72px;

        padding:
            15px
            65px
            15px
            18px;
    }

    .legal-modal-header-text h2 {
        font-size: 17px;
    }

    .legal-modal-close {
        top: 15px;
        right: 15px;

        width: 40px;
        height: 40px;
    }
}
