/* ==========================================================
   LEGAL PAGE
========================================================== */

.legal-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #080C2B;
}

/* ==========================================================
   BACKGROUND
========================================================== */

.legal-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.legal-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ==========================================================
   CONTAINER
========================================================== */

.legal-container {
    position: relative;
    z-index: 2;

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

    margin: 0 auto;

    padding: 100px 120px 100px;

    box-sizing: border-box;
}

/* ==========================================================
   TOP SECTION
========================================================== */

.legal-top {

    position: relative;

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

    min-height: 56px;

    margin-bottom: 86px;
}

/* ==========================================================
   BACK BUTTON
========================================================== */

.legal-back-button {

    position: absolute;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    width: 56px;
    height: 56px;

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

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.legal-back-button img {

    width: 40px;
    height: 40px;

    display: block;
}

/* ==========================================================
   PAGE TITLE
========================================================== */

.legal-title {

    width: 804px;

    margin: 0;

    text-align: center;

    font-family: "Geist", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 75px;
    letter-spacing: 0;

    background: linear-gradient(
        90deg,
        #EAEDFF 0%,
        #FFFFFF 50%,
        #0066FF 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================
   CONTENT
========================================================== */

.legal-content {

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

    margin: 0 auto;
}

/* ==========================================================
   BODY
========================================================== */

.legal-body {

    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.02em;

    color: #E4E6E7;
}

.legal-body p {
    margin: 0 0 10px;
}

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

.legal-body h2,
.legal-body h3,
.legal-body h4 {

    margin: 40px 0 20px;

    font-family: "Geist", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 140%;

    color: #FFFFFF;
}

.legal-body ul,
.legal-body ol {
    margin: 24px 0 42px 40px;
}

.legal-body li {
    margin-bottom: 16px;
}

.legal-body a {
    color: #4D9DFF;
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE
========================================================== */



@media (max-width: 1280px) {

    .legal-container {
        padding: 140px 80px 80px;
    }

    .legal-title {
        width: 100%;
        font-size: 22px;
        line-height: 62px;
    }

    .legal-body {
        font-size: 14px;
    }

}

@media (max-width: 768px) {

    .legal-container {
        padding: 120px 24px 60px;

        width:100%;

        max-width:600px;
    }

    .legal-top {

        min-height: 44px;

        margin-bottom: 40px;

        align-items: center;
        justify-content: center;
    }

    .legal-back-button {

        width: 44px;
        height: 44px;

        left: 0;
        top: 50%;

        transform: translateY(-50%);
    }

    .legal-back-button img {

        width: 44px;
        height: 44px;
    }

    .legal-title {

        width: calc(100% - 70px);

        margin: 0;

        font-size: 30px;
        line-height: 44px;

        text-align: center;
    }

    .legal-content {

        max-width: 100%;
    }

    .legal-body {

        font-size: 14px;
        line-height: 170%;
    }

    .legal-body h2,
    .legal-body h3,
    .legal-body h4 {

        font-size: 20px;
        margin: 48px 0 18px;
    }

}

@media (max-width: 480px) {

    .legal-container {
        padding: 120px 24px 60px;

        width:100%;
    }

    .legal-top {

        display: block;

        min-height: auto;

        margin-bottom: 30px;
    }

    .legal-back-button {

        position: relative;

        left: auto;
        top: auto;

        transform: none;

        width: 40px;
        height: 40px;

        margin-bottom: 24px;
    }

    .legal-back-button img {

        width: 40px;
        height: 40px;
    }

    .legal-title {

        width: 100%;

        margin: 0;

        text-align: center;
    }

}