/* ==========================================================
   LEGAL DASTAVEZ
   TERMS & CONDITIONS
========================================================== */


/* ==========================================================
   RESET / BASE
========================================================== */

.terms-page {
    width: 100%;
    overflow: hidden;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}

.terms-page .container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* ==========================================================
   HERO
========================================================== */

.terms-hero {
    position: relative;
    padding: 110px 0 90px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(197, 160, 89, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0c1017 0%,
            #121821 55%,
            #0b0f15 100%
        );
    color: #ffffff;
}

.terms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.terms-hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;
}

.terms-hero-content > span {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #c5a059;
}

.terms-hero h1 {
    margin: 0;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;

    color: #ffffff;
}

.terms-hero h1 strong {
    display: inline-block;

    font-weight: 700;
    color: #c5a059;
}

.terms-hero p {
    max-width: 720px;

    margin: 28px 0 0;

    font-size: 17px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.72);
}

.last-updated {
    display: inline-flex;
    align-items: center;

    margin-top: 30px;
    padding: 10px 17px;

    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 30px;

    background: rgba(197, 160, 89, 0.07);

    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}


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

.terms-content {
    padding: 90px 0 110px;

    background: #f7f7f5;
}


/* ==========================================================
   LAYOUT
========================================================== */

.terms-layout {
    display: grid;

    grid-template-columns: 260px minmax(0, 1fr);

    gap: 70px;

    align-items: start;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.terms-sidebar {
    position: sticky;
    top: 110px;

    padding: 25px;

    border: 1px solid #e7e4dc;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.05);
}

.terms-sidebar h3 {
    margin: 0 0 18px;

    font-size: 16px;
    font-weight: 700;

    color: #171717;
}

.terms-sidebar a {
    display: block;

    padding: 9px 0;

    border-bottom: 1px solid #f0eee9;

    font-size: 13px;
    line-height: 1.5;

    color: #666;

    text-decoration: none;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.terms-sidebar a:last-child {
    border-bottom: none;
}

.terms-sidebar a:hover {
    padding-left: 5px;

    color: #b28b42;
}


/* ==========================================================
   DOCUMENT
========================================================== */

.terms-document {
    min-width: 0;

    padding: 55px 60px;

    border: 1px solid #e7e4dc;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.05);
}


/* ==========================================================
   SECTIONS
========================================================== */

.terms-document section {
    scroll-margin-top: 100px;

    padding-bottom: 45px;
    margin-bottom: 45px;

    border-bottom: 1px solid #ece9e2;
}

.terms-document section:last-of-type {
    border-bottom: none;

    margin-bottom: 25px;
}

.terms-document h2 {
    position: relative;

    margin: 0 0 20px;
    padding-left: 18px;

    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;

    color: #171717;
}

.terms-document h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 5px;

    width: 4px;
    height: 25px;

    border-radius: 10px;

    background: #c5a059;
}

.terms-document p {
    margin: 0 0 16px;

    font-size: 15px;
    line-height: 1.85;

    color: #626262;
}

.terms-document p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   CONTACT BOX
========================================================== */

.terms-contact {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    margin-top: 25px;
    padding: 22px 24px;

    border: 1px solid #ebe6da;
    border-radius: 14px;

    background: #faf9f6;
}

.terms-contact > i {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

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

    border-radius: 50%;

    background: #c5a059;

    color: #ffffff;

    font-size: 16px;
}

.terms-contact strong {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;

    color: #171717;
}

.terms-contact p {
    margin: 0;

    font-size: 14px;
}


/* ==========================================================
   NOTICE
========================================================== */

.terms-notice {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin-top: 20px;
    padding: 22px 25px;

    border-left: 4px solid #c5a059;
    border-radius: 0 12px 12px 0;

    background: #faf8f2;
}

.terms-notice > i {
    flex-shrink: 0;

    margin-top: 4px;

    font-size: 18px;

    color: #c5a059;
}

.terms-notice p {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #555;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .terms-hero {
        padding: 90px 0 75px;
    }

    .terms-layout {
        grid-template-columns: 220px minmax(0, 1fr);

        gap: 35px;
    }

    .terms-document {
        padding: 45px 40px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .terms-hero {
        padding: 75px 0 65px;
    }

    .terms-hero h1 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .terms-hero p {
        margin-top: 20px;

        font-size: 15px;
        line-height: 1.7;
    }

    .terms-content {
        padding: 55px 0 70px;
    }

    .terms-layout {
        display: block;
    }

    .terms-sidebar {
        position: static;

        margin-bottom: 25px;

        padding: 20px;
    }

    .terms-sidebar h3 {
        margin-bottom: 10px;
    }

    .terms-sidebar a {
        display: inline-block;

        margin-right: 15px;
        padding: 7px 0;

        border-bottom: none;
    }

    .terms-document {
        padding: 35px 25px;

        border-radius: 15px;
    }

    .terms-document section {
        padding-bottom: 35px;
        margin-bottom: 35px;
    }

    .terms-document h2 {
        font-size: 22px;
    }

    .terms-document p {
        font-size: 14px;
        line-height: 1.8;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .terms-hero {
        padding: 60px 0 55px;
    }

    .terms-hero h1 {
        font-size: 38px;
    }

    .terms-hero-content > span {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .terms-document {
        padding: 30px 20px;
    }

    .terms-document h2 {
        font-size: 20px;
    }

    .terms-document h2::before {
        top: 4px;

        height: 21px;
    }

    .terms-contact {
        padding: 18px;

        gap: 13px;
    }

    .terms-contact > i {
        width: 38px;
        height: 38px;

        font-size: 14px;
    }

    .terms-notice {
        padding: 18px;
    }

}

/* ==========================================================
   FINAL RESPONSIVE FIXES
========================================================== */

/* Prevent overflow everywhere */
.terms-page,
.terms-page * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Better mobile container */
@media (max-width: 768px) {

    .terms-page .container {
        width: 94%;
    }

    .terms-sidebar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .terms-sidebar a {
        white-space: nowrap;
    }

    .terms-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .last-updated {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .terms-document {
        overflow: hidden;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {

    .terms-page .container {
        width: 95%;
    }

    .terms-hero h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .terms-hero p {
        font-size: 14px;
    }

    .terms-document {
        padding: 24px 18px;
    }

    .terms-document h2 {
        font-size: 18px;
        line-height: 1.4;
    }

    .terms-document p {
        font-size: 13px;
        line-height: 1.8;
    }

    .terms-sidebar {
        padding: 16px;
    }

    .terms-contact {
        padding: 16px;
    }

    .terms-notice {
        padding: 16px;
    }

    .last-updated {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* Tiny Phones (320px) */
@media (max-width: 360px) {

    .terms-hero h1 {
        font-size: 28px;
    }

    .terms-document {
        padding: 20px 15px;
    }

    .terms-document h2 {
        font-size: 17px;
        padding-left: 14px;
    }

    .terms-document h2::before {
        width: 3px;
        height: 18px;
    }

    .terms-sidebar a {
        font-size: 12px;
    }

    .terms-contact strong {
        font-size: 14px;
    }

    .terms-contact p,
    .terms-notice p {
        font-size: 13px;
    }
}