/* =========================================================
                    RAY STUDIO
                  TERMS & CONDITIONS
========================================================= */


/* =========================================================
                        GLOBAL
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    color: #4b3328;

    background: #f8f2ea;

    font-family:
        "Poppins",
        sans-serif;

}


.terms-page {

    width: 100%;

    overflow: hidden;

}


.eyebrow {

    color: #a8743a;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

}



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

.terms-hero {

    min-height: 530px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 30%,
            rgba(255, 255, 255, 0.85),
            transparent 31%
        ),

        linear-gradient(
            135deg,
            #f8f2ea,
            #f2e4d1
        );

}


.terms-hero::before {

    content: "";

    width: 470px;

    height: 470px;

    position: absolute;

    left: -280px;

    top: -280px;

    border:

        1px solid
        rgba(168, 116, 58, 0.17);

    border-radius: 50%;

}


.terms-hero-content {

    width:
        min(780px, 85%);

    margin-left: 10%;

    position: relative;

    z-index: 4;

}


.terms-hero h1 {

    margin-top: 15px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            60px,
            7vw,
            100px
        );

    font-weight: 500;

    line-height: 0.9;

}


.terms-hero h1 em {

    display: block;

    color: #a8743a;

    font-weight: 500;

}


.terms-hero-content > p {

    max-width: 580px;

    margin-top: 30px;

    color: #6e5a50;

    font-size: 13px;

    font-weight: 300;

    line-height: 2;

}


.last-updated {

    margin-top: 25px;

    display: inline-block;

    padding:
        8px
        14px;

    border:

        1px solid
        rgba(75, 51, 40, 0.13);

    border-radius: 100px;

    color: #6e5a50;

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

    font-size: 9px;

}



/* =========================================================
                        THREAD
========================================================= */

.terms-thread {

    width: 110%;

    height: 440px;

    position: absolute;

    top: 0;

    left: -5%;

    z-index: 1;

    pointer-events: none;

}


.terms-thread path {

    fill: none;

    stroke: #a8743a;

    stroke-width: 1.2;

    stroke-dasharray: 12 11;

    opacity: 0.29;

    animation:

        threadMovement
        20s
        linear
        infinite;

}


@keyframes threadMovement {

    to {

        stroke-dashoffset: -250;

    }

}



/* =========================================================
                    DECORATIVE LETTERS
========================================================= */

.terms-letter {

    position: absolute;

    z-index: 1;

    color:
        rgba(75, 51, 40, 0.055);

    font-family:
        "Noto Nastaliq Urdu",
        serif;

    user-select: none;

}


.letter-one {

    top: 5%;

    right: 10%;

    font-size: 150px;

}


.letter-two {

    right: 29%;

    bottom: -55px;

    color:
        rgba(168, 116, 58, 0.06);

    font-size: 190px;

}



/* =========================================================
                        NEEDLE
========================================================= */

.terms-needle {

    width: 150px;

    height: 35px;

    position: absolute;

    right: 13%;

    top: 165px;

    z-index: 2;

    opacity: 0.5;

    transform:
        rotate(-31deg);

}


.needle-body {

    width: 140px;

    height: 1px;

    position: absolute;

    top: 17px;

    left: 0;

    background:

        linear-gradient(
            90deg,
            transparent,
            #4b3328
        );

}


.needle-body::after {

    content: "";

    position: absolute;

    right: -7px;

    top: -3px;

    border-top:
        3.5px solid transparent;

    border-bottom:
        3.5px solid transparent;

    border-left:
        9px solid #4b3328;

}


.needle-eye {

    width: 18px;

    height: 8px;

    position: absolute;

    left: 0;

    top: 13px;

    border:

        1px solid
        #4b3328;

    border-radius: 50%;

}



/* =========================================================
                    MAIN TERMS LAYOUT
========================================================= */

.terms-layout {

    max-width: 1250px;

    margin: 0 auto;

    padding:
        130px
        35px
        150px;

    display: grid;

    grid-template-columns:
        0.72fr
        1.28fr;

    gap: 100px;

    align-items: start;

}



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

.terms-sidebar {

    position: sticky;

    top: 130px;

}


.terms-sidebar h2 {

    max-width: 420px;

    margin-top: 15px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 50px;

    font-weight: 500;

    line-height: 1.03;

}


.sidebar-line {

    width: 70px;

    height: 1px;

    margin:
        31px
        0;

    background: #a8743a;

}


.sidebar-text {

    max-width: 360px;

    color: #6e5a50;

    font-size: 12px;

    font-weight: 300;

    line-height: 1.9;

}



/* =========================================================
                    THREAD SPOOL
========================================================= */

.spool-art {

    width: 65px;

    height: 100px;

    margin-top: 55px;

    position: relative;

    opacity: 0.31;

}


.spool-top,
.spool-bottom {

    width: 65px;

    height: 8px;

    border-radius: 50%;

    background: #4b3328;

}


.spool-bottom {

    position: absolute;

    left: 0;

    bottom: 0;

}


.spool-middle {

    width: 48px;

    height: 82px;

    margin: 0 auto;

    padding-top: 14px;

    background:

        linear-gradient(
            90deg,
            rgba(168, 116, 58, 0.15),
            rgba(168, 116, 58, 0.42),
            rgba(168, 116, 58, 0.15)
        );

}


.spool-middle span {

    width: 100%;

    height: 1px;

    margin-bottom: 10px;

    display: block;

    background: #4b3328;

}


.loose-thread {

    width: 85px;

    height: 45px;

    position: absolute;

    left: 48px;

    bottom: -17px;

    border:

        1px solid
        transparent;

    border-bottom-color: #a8743a;

    border-radius: 50%;

    transform:
        rotate(14deg);

}



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

.terms-content {

    border-top:

        1px solid
        rgba(75, 51, 40, 0.13);

}


.term-section {

    padding:
        42px
        0;

    display: grid;

    grid-template-columns:
        55px
        1fr;

    gap: 22px;

    border-bottom:

        1px solid
        rgba(75, 51, 40, 0.13);

}


.term-number {

    padding-top: 7px;

    color: #a8743a;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 17px;

}


.term-section h3 {

    margin-bottom: 16px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 32px;

    font-weight: 600;

}


.term-section p {

    max-width: 660px;

    margin-bottom: 15px;

    color: #6e5a50;

    font-size: 12px;

    font-weight: 300;

    line-height: 2;

}


.term-section p:last-child {

    margin-bottom: 0;

}



/* =========================================================
                    CONTACT LINK
========================================================= */

.term-contact a {

    margin-top: 22px;

    padding-bottom: 7px;

    display: inline-flex;

    align-items: center;

    gap: 25px;

    border-bottom:

        1px solid
        #a8743a;

    color: #4b3328;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

}


.term-contact a span {

    color: #a8743a;

    font-size: 18px;

    transition:
        transform
        0.3s ease;

}


.term-contact a:hover span {

    transform:
        translateX(5px);

}



/* =========================================================
                    FINAL SECTION
========================================================= */

.terms-ending {

    min-height: 500px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: #f8f2ea;

    background: #4b3328;

}


.terms-ending::before {

    content: "";

    width: 500px;

    height: 500px;

    position: absolute;

    right: -300px;

    top: -290px;

    border:

        1px solid
        rgba(248, 242, 234, 0.08);

    border-radius: 50%;

}


.terms-ending-content {

    width:
        min(800px, 85%);

    position: relative;

    z-index: 3;

    text-align: center;

}


.terms-ending .eyebrow {

    color: #c79657;

}


.terms-ending h2 {

    margin-top: 15px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            48px,
            6vw,
            76px
        );

    font-weight: 500;

    line-height: 1.02;

}


.terms-ending-content > p:last-child {

    margin-top: 24px;

    color:
        rgba(248, 242, 234, 0.65);

    font-size: 12px;

    font-weight: 300;

}


.ending-letter {

    position: absolute;

    left: 7%;

    bottom: -100px;

    color:
        rgba(199, 150, 87, 0.08);

    font-family:
        "Noto Nastaliq Urdu",
        serif;

    font-size: 300px;

}



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

@media screen and (max-width: 950px) {

    .terms-layout {

        grid-template-columns: 1fr;

        gap: 70px;

    }


    .terms-sidebar {

        position: static;

    }


    .terms-sidebar h2 {

        max-width: 600px;

    }


    .spool-art {

        display: none;

    }

}



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

@media screen and (max-width: 650px) {

    .terms-hero {

        min-height: 510px;

    }


    .terms-hero-content {

        width:
            calc(100% - 40px);

        margin:
            0 auto;

    }


    .terms-hero h1 {

        font-size: 57px;

    }


    .terms-needle {

        right: -35px;

        top: 95px;

        opacity: 0.35;

    }


    .letter-one {

        right: -20px;

        font-size: 105px;

    }


    .letter-two {

        display: none;

    }


    .terms-layout {

        padding:
            85px
            20px
            110px;

    }


    .terms-sidebar h2 {

        font-size: 43px;

    }


    .term-section {

        grid-template-columns:
            38px
            1fr;

        gap: 12px;

        padding:
            34px
            0;

    }


    .term-section h3 {

        font-size: 28px;

    }


    .terms-ending {

        min-height: 430px;

    }


    .terms-ending h2 {

        font-size: 46px;

    }


    .ending-letter {

        left: -30px;

        font-size: 210px;

    }

}