
/* =========================================
   TERMS & CONDITIONS PAGE
   ========================================= */

.terms-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   MAIN CONTAINER
   ========================================= */

.terms-container {
    width: 100%;
    max-width: 1300px;
    min-height: 700px;
    display: flex;
    flex-direction: row;
    background: #ffffff;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);

    /* Reveal animation */
    opacity: 0;
    transform: translateY(30px);
    animation: termsReveal 0.5s ease forwards;
}


/* =========================================
   REVEAL ANIMATION
   ========================================= */

@keyframes termsReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   LEFT SIDEBAR
   ========================================= */

.terms-sidebar {
    position: relative;
    width: 32%;
    min-height: 700px;

    /* background-image: url("images/yus.jpg"); */
    background-size: cover;
    background-position: center;

    color: #ffffff;
    overflow: hidden;
}


/* =========================================
   COLOR OVERLAY
   ========================================= */

.terms-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}


/* =========================================
   SIDEBAR CONTENT
   ========================================= */

.terms-sidebar-content {
    position: relative;
    z-index: 2;

    height: 100%;
    padding: 45px 30px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}


.terms-sidebar-content h2 {
    margin: 0 0 35px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* =========================================
   TERMS LINKS
   ========================================= */

.terms-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.terms-link {
    width: 100%;
    padding: 13px 15px;

    border: none;
    border-left: 3px solid transparent;

    background: transparent;
    color: #ffffff;

    text-align: left;
    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        padding-left 0.3s ease;
}


.terms-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-left-color: #ffffff;
    padding-left: 20px;
}


.terms-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #ffffff;
    padding-left: 20px;
}


/* =========================================
   RIGHT CONTENT
   ========================================= */

.terms-content {
    width: 68%;
    min-height: 700px;

    padding: 55px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}


/* =========================================
   INDIVIDUAL CONTENT SECTIONS
   ========================================= */

.terms-section {
    display: none;
    animation: contentReveal 0.5s ease;
}


.terms-section.active {
    display: block;
}


@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.terms-section h1 {
    margin: 0 0 25px;

    color: #111111;

    font-size: 32px;
    font-weight: 600;
}


.terms-section p {
    margin: 0 0 20px;

    color: #555555;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   ACCEPTANCE AREA
   ========================================= */

.terms-acceptance {
    margin-top: auto;
    padding-top: 35px;

    border-top: 1px solid #e5e5e5;
}


/* =========================================
   CHECKBOX
   ========================================= */

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #444444;

    font-size: 14px;
    line-height: 1.5;

    cursor: pointer;
}


.terms-checkbox input {
    width: 18px;
    height: 18px;

    margin-top: 2px;

    cursor: pointer;
    accent-color: #111111;
}


/* =========================================
   ACCEPT BUTTON
   ========================================= */

.accept-button {
    width: 100%;

    margin-top: 22px;
    padding: 15px 20px;

    border: 1px solid #111111;
    border-radius: 3px;

    background: #111111;
    color: #ffffff;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        opacity 0.3s ease,
        transform 0.2s ease;
}


/* Disabled state */

.accept-button:disabled {
    background: #cccccc;
    border-color: #cccccc;
    color: #777777;

    cursor: not-allowed;
    opacity: 0.7;
}


/* Enabled hover */

.accept-button:not(:disabled):hover {
    background: #ffffff;
    color: #111111;
}


.accept-button:not(:disabled):active {
    transform: scale(0.98);
}


/* =========================================
   MODAL BACKDROP
   ========================================= */

.terms-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* Modal visible */

.terms-modal.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   MODAL BOX
   ========================================= */

.terms-modal-box {
    position: relative;

    width: 100%;
    max-width: 450px;

    padding: 40px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 6px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    text-align: center;

    transform: translateY(20px) scale(0.97);

    transition: transform 0.3s ease;
}


.terms-modal.show .terms-modal-box {
    transform: translateY(0) scale(1);
}


/* =========================================
   MODAL CLOSE BUTTON
   ========================================= */

.modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;
    color: #222222;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition: transform 0.2s ease;
}


.modal-close:hover {
    transform: rotate(90deg);
}


/* =========================================
   MODAL TEXT
   ========================================= */

.terms-modal-box h2 {
    margin: 0 0 15px;

    color: #111111;

    font-size: 25px;
    font-weight: 600;
}


.terms-modal-box p {
    margin: 0 0 25px;

    color: #666666;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   MODAL BUTTONS
   ========================================= */

.modal-actions {
    display: flex;
    gap: 10px;
}


.modal-button {
    flex: 1;

    padding: 13px 15px;

    border: 1px solid #111111;

    background: #111111;
    color: #ffffff;

    border-radius: 3px;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.modal-button:hover {
    background: #ffffff;
    color: #111111;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .terms-page {
        padding: 25px;
    }

    .terms-container {
        min-height: 650px;
    }

    .terms-sidebar {
        width: 35%;
        min-height: 650px;
    }

    .terms-content {
        width: 65%;
        padding: 40px;
    }

    .terms-sidebar-content {
        padding: 35px 22px;
    }

    .terms-sidebar-content h2 {
        font-size: 24px;
    }

    .terms-section h1 {
        font-size: 28px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .terms-page {
        padding: 15px;
        align-items: flex-start;
    }

    .terms-container {
        flex-direction: column;
        min-height: auto;
    }


    /* Left becomes top section */

    .terms-sidebar {
        width: 100%;
        min-height: auto;
    }


    .terms-sidebar-content {
        padding: 30px 20px;
    }


    .terms-sidebar-content h2 {
        margin-bottom: 20px;
        font-size: 24px;
    }


    /* Horizontal scrolling links */

    .terms-links {
        max-height: 250px;
        overflow-y: auto;
    }


    .terms-link {
        padding: 12px;
    }


    /* Right content */

    .terms-content {
        width: 100%;
        min-height: auto;
        padding: 30px 20px;
    }


    .terms-section h1 {
        font-size: 26px;
    }


    .terms-section p {
        font-size: 14px;
    }


    .terms-acceptance {
        margin-top: 35px;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 450px) {

    .terms-page {
        padding: 8px;
    }

    .terms-sidebar-content {
        padding: 25px 15px;
    }

    .terms-content {
        padding: 25px 15px;
    }

    .terms-section h1 {
        font-size: 23px;
    }

    .terms-modal-box {
        padding: 35px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }
}

/* =========================================
   SCROLL ARROWS
   ========================================= */

.terms-scroll-arrow {
    display: none;
}


/* =========================================
   SMALL SCREEN SCROLL ARROWS
   ========================================= */

@media (max-width: 700px) {

    .terms-sidebar-content {
        position: relative;
    }

    .terms-links {
        max-height: 250px;
        overflow-y: auto;

        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;

        scroll-behavior: smooth;

        padding: 25px 0;
    }

    /* Chrome, Edge, Safari */
    .terms-links::-webkit-scrollbar {
        display: none;
        width: 0;
    }


    /* Arrow buttons */

    .terms-scroll-arrow {
        position: absolute;

        left: 50%;
        transform: translateX(-50%);

        z-index: 10;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 30px;
        height: 25px;

        padding: 0;

        border: none;
        background: transparent;

        color: #ffffff;

        font-size: 15px;
        line-height: 1;

        cursor: pointer;

        opacity: 0.8;

        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }


    /* Small line */

    .terms-scroll-arrow span {
        display: block;

        width: 18px;
        height: 1px;

        background: #ffffff;

        opacity: 0.8;
    }


    /* UP ARROW */

    .terms-scroll-up {
        top: 72px;
    }

    .terms-scroll-up span {
        order: 2;
        margin-top: 3px;
    }


    /* DOWN ARROW */

    .terms-scroll-down {
        bottom: 10px;
    }

    .terms-scroll-down span {
        order: 2;
        margin-top: 3px;
    }


    .terms-scroll-arrow:hover {
        opacity: 1;
    }

    .terms-scroll-up:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    .terms-scroll-down:hover {
        transform: translateX(-50%) translateY(2px);
    }
}