
/* =====================================================
   BLISSFULL MIND - TERMS & CONDITIONS
   Premium Legal Page
   Existing Brand Identity Retained
===================================================== */


/* -----------------------------------------------------
   01. PAGE VARIABLES
----------------------------------------------------- */

.terms-page {
    --terms-purple: #39205f;
    --terms-purple-dark: #30204f;
    --terms-purple-light: #8065a2;
    --terms-lavender: #f0eaf7;
    --terms-peach: #f8eee9;
    --terms-cream: #fbf8f5;
    --terms-text: #514a59;
    --terms-muted: #817987;
    --terms-border: rgba(73,53,111,.12);

    color: var(--terms-text);
    background: #fffdfb;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

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

.terms-page a {
    text-decoration: none;
}


/* -----------------------------------------------------
   02. LEGAL PAGE HERO
----------------------------------------------------- */

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 65px 0 75px;

    background:
        radial-gradient(
            ellipse at 85% 20%,
            #eee5f2 0,
            transparent 38%
        ),
        linear-gradient(
            115deg,
            #fbf8f5 0%,
            #f8f1ef 55%,
            #f1eaf4 100%
        );
}

.terms-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(128,101,162,.19);
    border-radius: 50%;

    right: -145px;
    top: -230px;

    pointer-events: none;
}

.terms-hero::after {
    content: "";
    position: absolute;

    width: 270px;
    height: 270px;

    border: 1px solid rgba(223,158,125,.24);
    border-radius: 50%;

    right: 13%;
    bottom: -215px;

    pointer-events: none;
}

.terms-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}


/* BREADCRUMB */

.terms-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    margin-bottom: 35px;

    color: var(--terms-muted);
    font-size: .78rem;
    font-weight: 500;
}

.terms-breadcrumb a {
    color: var(--terms-purple);
    transition: color .25s ease;
}

.terms-breadcrumb a:hover {
    color: #d77b59;
}

.terms-breadcrumb span:last-child {
    color: var(--terms-purple);
}


/* EYEBROW */

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 9px 15px;

    border: 1px solid rgba(73,53,111,.13);
    border-radius: 30px;

    background: rgba(255,255,255,.65);

    color: var(--terms-purple);

    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.terms-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #dc9877;

    box-shadow: 0 0 0 4px rgba(220,152,119,.13);
}


/* MAIN TITLE */

.terms-hero h1 {
    margin: 22px 0 18px;

    color: var(--terms-purple-dark);

    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.065em;
}

.terms-hero h1 span {
    display: block;
    color: var(--terms-purple-light);
}

.terms-hero-description {
    max-width: 690px;

    margin: 0;

    color: #716a78;

    font-size: 1rem;
    line-height: 1.9;
}

.terms-hero-decoration {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 30px;

    color: var(--terms-purple);
    font-size: .78rem;
    font-weight: 600;
}

.terms-hero-decoration i {
    color: #d68f70;
    font-size: 1rem;
}


/* -----------------------------------------------------
   03. MAIN LEGAL CONTENT
----------------------------------------------------- */

.terms-content-section {
    position: relative;
    padding: 75px 0 100px;
    background: #fffdfb;
}

.terms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    align-items: start;
    gap: 55px;
}


/* INTRODUCTION */

.terms-introduction {
    padding: 30px 32px;
    margin-bottom: 38px;

    background: linear-gradient(
        125deg,
        #f8f3fa,
        #fbf5ef
    );

    border: 1px solid var(--terms-border);
    border-radius: 20px;
}

.terms-introduction p {
    margin: 0;

    color: #5e5667;

    font-size: .94rem;
    line-height: 1.95;
}

.terms-introduction p + p {
    margin-top: 17px;
}

.terms-introduction strong {
    color: var(--terms-purple);
    font-weight: 700;
}

.terms-introduction a {
    color: var(--terms-purple);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(57,32,95,.3);
    text-underline-offset: 3px;
}


/* INDIVIDUAL TERMS SECTIONS */

.terms-section {
    position: relative;

    padding: 0 0 34px;
    margin-bottom: 34px;

    border-bottom: 1px solid var(--terms-border);

    scroll-margin-top: 110px;
}

.terms-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.terms-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;

    margin-bottom: 17px;
}

.terms-number {
    flex: 0 0 43px;

    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    border-radius: 14px;

    background: #f0eaf7;
    color: var(--terms-purple);

    font-family: 'Manrope', sans-serif;
    font-size: .83rem;
    font-weight: 800;
}

.terms-section:nth-of-type(even) .terms-number {
    background: #fbede5;
    color: #a76c50;
}

.terms-section h2 {
    margin: 5px 0 0;

    color: var(--terms-purple-dark);

    font-family: 'Manrope', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.035em;
}

.terms-section p {
    margin: 0 0 14px;

    color: var(--terms-text);

    font-size: .91rem;
    line-height: 1.95;
}

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

.terms-section strong {
    color: var(--terms-purple);
    font-weight: 700;
}


/* LISTS */

.terms-list {
    display: grid;
    gap: 12px;

    margin: 17px 0 18px;
    padding: 0;

    list-style: none;
}

.terms-list li {
    position: relative;

    padding-left: 28px;

    color: var(--terms-text);

    font-size: .9rem;
    line-height: 1.85;
}

.terms-list li::before {
    content: "";

    position: absolute;
    left: 2px;
    top: 10px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #c39ab9;
    box-shadow: 0 0 0 4px rgba(195,154,185,.13);
}


/* SUBTLE EMPHASIS */

.terms-note {
    padding: 19px 22px;
    margin: 19px 0;

    border-left: 3px solid #a58abf;
    border-radius: 0 12px 12px 0;

    background: #f7f3fa;

    color: #62596b;
    font-size: .88rem;
    line-height: 1.85;
}

.terms-note strong {
    color: var(--terms-purple);
}


/* -----------------------------------------------------
   04. TABLE OF CONTENTS SIDEBAR
----------------------------------------------------- */

.terms-sidebar {
    position: sticky;
    top: 115px;
}

.terms-sidebar-card {
    padding: 27px 23px;

    border: 1px solid var(--terms-border);
    border-radius: 20px;

    background: #fff;

    box-shadow: 0 12px 38px rgba(57,32,95,.045);
}

.terms-sidebar-card h3 {
    margin: 0 0 20px;

    color: var(--terms-purple);

    font-family: 'Manrope', sans-serif;
    font-size: .95rem;
    font-weight: 800;
}

.terms-sidebar-links {
    display: grid;
    gap: 5px;
}

.terms-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px 9px;

    border-radius: 9px;

    color: #716a78;

    font-size: .77rem;
    font-weight: 500;
    line-height: 1.5;

    transition: .25s ease;
}

.terms-sidebar-links a span {
    color: #aa96bd;
    font-size: .68rem;
    font-weight: 700;
}

.terms-sidebar-links a:hover {
    background: #f5f0f8;
    color: var(--terms-purple);
    padding-left: 13px;
}


/* SIDEBAR CONTACT CARD */

.terms-help-card {
    margin-top: 18px;
    padding: 24px;

    border-radius: 18px;

    background: linear-gradient(
        145deg,
        #49356f,
        #30204f
    );

    color: #fff;
}

.terms-help-icon {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    margin-bottom: 17px;

    border-radius: 12px;

    background: rgba(255,255,255,.13);

    color: #f1d3c2;
}

.terms-help-card h3 {
    margin: 0 0 9px;

    color: #fff;

    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.terms-help-card p {
    margin: 0 0 17px;

    color: rgba(255,255,255,.76);

    font-size: .77rem;
    line-height: 1.8;
}

.terms-help-card a {
    color: #f4c8ad;
    font-size: .8rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}


/* -----------------------------------------------------
   05. CONTACT INFORMATION
----------------------------------------------------- */

.terms-contact {
    padding: 28px;

    border: 1px solid rgba(73,53,111,.13);
    border-radius: 18px;

    background: linear-gradient(
        125deg,
        #f5eff8,
        #fbf3ed
    );
}

.terms-contact h3 {
    margin: 0 0 12px;

    color: var(--terms-purple);

    font-family: 'Manrope', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
}

.terms-contact p {
    margin: 0 0 14px;
}

.terms-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--terms-purple);
    font-size: .91rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.terms-contact a:hover {
    color: #c77d60;
}




/* -----------------------------------------------------
   06. RESPONSIVE DESIGN
----------------------------------------------------- */

@media(max-width: 1024px) {

    .terms-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 30px;
    }

    .terms-sidebar-card {
        padding: 22px 17px;
    }

}

@media(max-width: 850px) {

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

    .terms-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .terms-sidebar {
        position: relative;
        top: auto;
        order: -1;
    }

    .terms-sidebar-card {
        padding: 22px;
    }

    .terms-sidebar-links {
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
    }

    .terms-help-card {
        display: none;
    }

}

@media(max-width: 600px) {

    .terms-hero {
        padding: 38px 0 48px;
    }

    .terms-breadcrumb {
        margin-bottom: 26px;
        font-size: .72rem;
    }

    .terms-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.4rem);
        margin: 19px 0 15px;
    }

    .terms-hero-description {
        font-size: .88rem;
        line-height: 1.85;
    }

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

    .terms-sidebar-links {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .terms-sidebar-card {
        padding: 20px;
    }

    .terms-introduction {
        padding: 23px 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .terms-introduction p {
        font-size: .85rem;
    }

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

    .terms-section-heading {
        gap: 12px;
    }

    .terms-number {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
        border-radius: 11px;
        font-size: .75rem;
    }

    .terms-section h2 {
        font-size: 1.08rem;
    }

    .terms-section p,
    .terms-list li {
        font-size: .84rem;
    }

    .terms-contact {
        padding: 22px 19px;
    }

}

@media(prefers-reduced-motion:reduce) {

    .terms-page *,
    .terms-page *::before,
    .terms-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

}
