/* =========================================================
   BERA SOFTWARE — TERMS & CONDITIONS
   ========================================================= */

:root {
    --tu-yellow: #fdbb19;
    --tu-yellow-light: #ffca3b;
    --tu-dark: #0c1012;
    --tu-heading: #171b1d;
    --tu-text: #515a5e;
    --tu-muted: #899195;
    --tu-surface: #ffffff;
    --tu-background: #f5f3ed;
    --tu-border: rgba(20, 25, 27, 0.1);
    --tu-radius-large: 25px;
    --tu-radius-medium: 18px;
}


/* =========================================================
   BASE
   ========================================================= */

.tu-page {
    overflow: clip;

    color: var(--tu-text);
    background: var(--tu-background);
}

.tu-page *,
.tu-page *::before,
.tu-page *::after {
    box-sizing: border-box;
}

.tu-page a {
    color: inherit;
    text-decoration: none;
}

.tu-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tu-term-card {
    scroll-margin-top: 125px;
}


/* =========================================================
   HERO
   ========================================================= */

.tu-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 540px;
    padding: clamp(165px, 17vw, 215px) 0 95px;

    display: flex;
    align-items: flex-end;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(253, 187, 25, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(253, 187, 25, 0.08),
            transparent 32%
        ),
        #0c1012;
}

.tu-hero::before {
    content: "";

    position: absolute;
    z-index: -1;
    top: 0;
    right: 6%;

    width: min(39vw, 510px);
    aspect-ratio: 1;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;

    transform: translateY(-36%);
}

.tu-hero::after {
    content: "TERMS";

    position: absolute;
    z-index: -1;
    right: -18px;
    bottom: -25px;

    color: transparent;

    font-size: clamp(105px, 18vw, 245px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.075em;

    -webkit-text-stroke:
        1px rgba(255, 255, 255, 0.055);

    pointer-events: none;
}

.tu-hero-content {
    position: relative;

    max-width: 790px;
}

.tu-eyebrow {
    margin-bottom: 22px;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--tu-yellow);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tu-eyebrow::before {
    content: "";

    width: 31px;
    height: 2px;

    background: var(--tu-yellow);
}

.tu-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(55px, 8vw, 105px);
    font-weight: 760;
    line-height: 0.88;
    letter-spacing: -0.07em;
}

.tu-hero h1 span {
    display: block;

    color: var(--tu-yellow);
}

.tu-hero-content > p {
    max-width: 650px;
    margin: 30px 0 0;

    color: #9ba4a8;

    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.75;
}

.tu-hero-meta {
    margin-top: 31px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    color: #697377;

    font-size: 13px;
    font-weight: 600;
}

.tu-hero-meta span:nth-child(2) {
    color: var(--tu-yellow);
}


/* =========================================================
   CONTENT INTRODUCTION
   ========================================================= */

.tu-content-section {
    position: relative;

    padding: clamp(70px, 9vw, 120px) 0;
}

.tu-introduction {
    margin-bottom: clamp(55px, 7vw, 85px);
    padding: clamp(25px, 4vw, 38px);

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 22px;

    background: var(--tu-surface);
    border: 1px solid var(--tu-border);
    border-radius: var(--tu-radius-medium);

    box-shadow:
        0 20px 55px rgba(20, 25, 27, 0.055);
}

.tu-intro-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    color: var(--tu-heading);
    background: var(--tu-yellow);
    border-radius: 50%;

    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
}

.tu-introduction p {
    max-width: 930px;
    margin: 0;

    color: #555e62;

    font-size: 16px;
    line-height: 1.8;
}

.tu-introduction strong {
    color: var(--tu-heading);
}


/* =========================================================
   MAIN TERMS LAYOUT
   ========================================================= */

.tu-layout {
    display: grid;
    grid-template-columns:
        minmax(225px, 0.29fr)
        minmax(0, 0.71fr);

    align-items: start;
    gap: clamp(40px, 7vw, 90px);
}


/* =========================================================
   STICKY SIDEBAR
   ========================================================= */

.tu-sidebar {
    position: relative;
}

.tu-sidebar-inner {
    position: sticky;
    top: 115px;

    padding: 28px 23px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--tu-border);
    border-radius: var(--tu-radius-medium);

    box-shadow:
        0 16px 45px rgba(20, 25, 27, 0.045);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tu-sidebar-title {
    margin-bottom: 18px;
    padding-bottom: 15px;

    display: block;

    color: var(--tu-heading);

    border-bottom: 1px solid var(--tu-border);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tu-sidebar nav {
    display: grid;
    gap: 3px;
}

.tu-sidebar nav a {
    position: relative;

    padding: 8px 9px 8px 16px;

    color: #747d80;
    border-radius: 7px;

    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.tu-sidebar nav a::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 2px;

    width: 5px;
    height: 5px;

    background: #c5c9ca;
    border-radius: 50%;

    transform: translateY(-50%);

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.tu-sidebar nav a:hover,
.tu-sidebar nav a.is-active {
    color: var(--tu-heading);
    background: rgba(253, 187, 25, 0.12);

    transform: translateX(3px);
}

.tu-sidebar nav a:hover::before,
.tu-sidebar nav a.is-active::before {
    background: var(--tu-yellow);

    transform:
        translateY(-50%)
        scale(1.25);
}


/* =========================================================
   TERM CARDS
   ========================================================= */

.tu-terms-list {
    min-width: 0;

    display: grid;
    gap: 17px;
}

.tu-term-card {
    position: relative;
    overflow: hidden;

    padding: clamp(27px, 4vw, 43px);

    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: clamp(17px, 3vw, 31px);

    background: var(--tu-surface);
    border: 1px solid var(--tu-border);
    border-radius: var(--tu-radius-medium);

    box-shadow:
        0 14px 40px rgba(20, 25, 27, 0.04);

    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.tu-term-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--tu-yellow);

    transform: scaleY(0);
    transform-origin: bottom;

    transition: transform 260ms ease;
}

.tu-term-card:hover {
    border-color: rgba(253, 187, 25, 0.42);

    box-shadow:
        0 22px 55px rgba(20, 25, 27, 0.075);

    transform: translateY(-3px);
}

.tu-term-card:hover::before {
    transform: scaleY(1);
}

.tu-term-number {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    color: #8d670d;
    background: rgba(253, 187, 25, 0.14);
    border: 1px solid rgba(253, 187, 25, 0.24);
    border-radius: 50%;

    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;

    transition:
        color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease;
}

.tu-term-card:hover .tu-term-number {
    color: var(--tu-heading);
    background: var(--tu-yellow);

    transform: rotate(-5deg);
}

.tu-term-copy {
    min-width: 0;
}

.tu-term-copy h2 {
    margin: 7px 0 19px;

    color: var(--tu-heading);

    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.tu-term-copy p {
    margin: 0;

    color: var(--tu-text);

    font-size: 16px;
    line-height: 1.8;
}

.tu-term-copy p + p {
    margin-top: 15px;
}


/* Highlighted Acceptance Card */

.tu-term-card-highlight {
    color: #ffffff;

    background:
        radial-gradient(
            circle at 92% 13%,
            rgba(253, 187, 25, 0.16),
            transparent 30%
        ),
        var(--tu-dark);

    border-color: rgba(255, 255, 255, 0.08);
}

.tu-term-card-highlight::before {
    transform: scaleY(1);
}

.tu-term-card-highlight .tu-term-number {
    color: var(--tu-heading);
    background: var(--tu-yellow);
    border-color: var(--tu-yellow);
}

.tu-term-card-highlight .tu-term-copy h2 {
    color: #ffffff;
}

.tu-term-card-highlight .tu-term-copy p {
    color: #a7b0b3;
}

.tu-term-card-highlight:hover {
    border-color: rgba(253, 187, 25, 0.38);

    box-shadow:
        0 26px 60px rgba(12, 16, 18, 0.19);
}


/* =========================================================
   FINAL CONTACT SECTION
   ========================================================= */

.tu-contact-section {
    padding: 0 0 clamp(80px, 9vw, 125px);
}

.tu-contact-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: clamp(38px, 6vw, 70px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 45px;

    background: var(--tu-yellow);
    border-radius: var(--tu-radius-large);
}

.tu-contact-box::before {
    content: "?";

    position: absolute;
    z-index: -1;
    right: 25%;
    bottom: -86px;

    color: rgba(23, 27, 29, 0.065);

    font-family: Georgia, serif;
    font-size: 245px;
    font-weight: 800;
    line-height: 1;

    pointer-events: none;
}

.tu-contact-box > div {
    max-width: 690px;
}

.tu-contact-box > div > span {
    color: rgba(23, 27, 29, 0.69);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tu-contact-box h2 {
    margin: 12px 0 0;

    color: var(--tu-heading);

    font-size: clamp(33px, 4.6vw, 57px);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.tu-contact-box p {
    max-width: 620px;
    margin: 19px 0 0;

    color: rgba(23, 27, 29, 0.68);

    font-size: 15px;
    line-height: 1.7;
}

.tu-contact-button {
    min-width: 235px;
    min-height: 62px;
    padding: 8px 9px 8px 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    color: #ffffff;
    background: var(--tu-dark);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 15px 35px rgba(12, 16, 18, 0.18);

    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.tu-contact-button i {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    color: var(--tu-heading);
    background: var(--tu-yellow);
    border-radius: 50%;

    font-size: 17px;
    font-style: normal;

    transition: transform 200ms ease;
}

.tu-contact-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 42px rgba(12, 16, 18, 0.25);
}

.tu-contact-button:hover i {
    transform: rotate(45deg);
}

.tu-contact-button:focus-visible,
.tu-sidebar nav a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .tu-layout {
        grid-template-columns:
            minmax(205px, 0.28fr)
            minmax(0, 0.72fr);

        gap: 35px;
    }

    .tu-sidebar-inner {
        padding: 22px 17px;
    }

    .tu-term-card {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .tu-term-number {
        width: 50px;
        height: 50px;
    }

}


@media (max-width: 820px) {

    .tu-hero {
        min-height: 500px;
        padding-bottom: 75px;
    }

    .tu-hero::after {
        right: -10px;
        bottom: -12px;
    }

    .tu-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tu-sidebar-inner {
        position: relative;
        top: auto;

        overflow-x: auto;

        padding: 17px;

        scrollbar-width: thin;
    }

    .tu-sidebar-title {
        margin-bottom: 12px;
    }

    .tu-sidebar nav {
        width: max-content;

        display: flex;
        gap: 7px;
    }

    .tu-sidebar nav a {
        padding: 10px 14px;

        white-space: nowrap;

        background: #ffffff;
        border: 1px solid var(--tu-border);
        border-radius: 999px;

        font-size: 12px;
    }

    .tu-sidebar nav a::before {
        display: none;
    }

    .tu-sidebar nav a:hover,
    .tu-sidebar nav a.is-active {
        color: var(--tu-heading);
        background: var(--tu-yellow);
        border-color: var(--tu-yellow);

        transform: none;
    }

    .tu-contact-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tu-contact-button {
        width: min(100%, 300px);
    }

}


@media (max-width: 560px) {

    .tu-container {
        width: min(100% - 28px, 1180px);
    }

    .tu-hero {
        min-height: 470px;
        padding:
            145px
            0
            62px;
    }

    .tu-hero::before {
        right: -18%;

        width: 85vw;
    }

    .tu-hero::after {
        display: none;
    }

    .tu-eyebrow {
        margin-bottom: 18px;

        font-size: 11px;
    }

    .tu-hero h1 {
        font-size: clamp(51px, 17vw, 72px);
    }

    .tu-hero-content > p {
        margin-top: 24px;

        font-size: 16px;
        line-height: 1.7;
    }

    .tu-hero-meta {
        margin-top: 25px;

        font-size: 12px;
    }

    .tu-content-section {
        padding: 58px 0 68px;
    }

    .tu-introduction {
        margin-bottom: 42px;
        padding: 22px 18px;

        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tu-intro-icon {
        width: 40px;
        height: 40px;
    }

    .tu-introduction p {
        font-size: 15px;
        line-height: 1.75;
    }

    .tu-sidebar-inner {
        padding: 15px;

        border-radius: 15px;
    }

    .tu-term-card {
        padding: 25px 19px;

        grid-template-columns: 1fr;
        gap: 15px;

        border-radius: 16px;
    }

    .tu-term-number {
        width: 45px;
        height: 45px;
    }

    .tu-term-copy h2 {
        margin: 0 0 15px;

        font-size: 24px;
    }

    .tu-term-copy p {
        font-size: 15px;
        line-height: 1.75;
    }

    .tu-contact-section {
        padding-bottom: 78px;
    }

    .tu-contact-box {
        padding: 34px 20px;

        border-radius: 18px;
    }

    .tu-contact-box::before {
        right: -15px;
        bottom: -55px;

        font-size: 170px;
    }

    .tu-contact-box h2 {
        font-size: 34px;
    }

    .tu-contact-box p {
        font-size: 15px;
    }

    .tu-contact-button {
        width: 100%;
        min-width: 0;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tu-page *,
    .tu-page *::before,
    .tu-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   DESKTOP STICKY SIDEBAR FIX
   ========================================================= */

.tu-page {
    overflow: visible;
}

@media (min-width: 821px) {

    .tu-layout,
    .tu-sidebar {
        overflow: visible;
    }

    /* Outer sidebar-টিকেই sticky করা হচ্ছে */
    .tu-sidebar {
        position: sticky;
        top: 110px;
        align-self: start;
    }

    /* পুরোনো sticky rule বন্ধ */
    .tu-sidebar-inner {
        position: static;
        top: auto;

        max-height: calc(100vh - 135px);
        max-height: calc(100dvh - 135px);

        overflow-y: auto;
        overscroll-behavior: contain;

        scrollbar-width: thin;
        scrollbar-color:
            rgba(253, 187, 25, 0.75)
            transparent;
    }

    .tu-sidebar-inner::-webkit-scrollbar {
        width: 5px;
    }

    .tu-sidebar-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .tu-sidebar-inner::-webkit-scrollbar-thumb {
        background: rgba(253, 187, 25, 0.75);
        border-radius: 999px;
    }

}

/* =========================================================
   FINAL MOBILE RESPONSIVE FIX
   ========================================================= */

@media (max-width: 820px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;

        overflow-x: hidden !important;
    }

    .tu-page {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    .tu-container {
        width: calc(100% - 28px);
        max-width: 100%;
        margin-inline: auto;
    }


    /* Hero */

    .tu-hero {
        width: 100%;
        min-height: auto;

        padding:
            140px
            0
            65px;
    }

    .tu-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .tu-hero h1 {
        max-width: 100%;

        font-size: clamp(48px, 14vw, 68px);
        line-height: 0.93;

        overflow-wrap: break-word;
    }

    .tu-hero-content > p {
        width: 100%;
        max-width: 100%;

        font-size: 15px;
        line-height: 1.7;

        overflow-wrap: break-word;
    }

    .tu-hero-meta {
        width: 100%;
        max-width: 100%;

        row-gap: 7px;
    }


    /* Introduction */

    .tu-introduction {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;

        overflow: hidden;
    }

    .tu-introduction p {
        min-width: 0;
        max-width: 100%;

        overflow-wrap: break-word;
    }


    /* Layout */

    .tu-layout {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: block;
    }


    /* Mobile navigation */

    .tu-sidebar {
        position: relative;
        top: auto;

        width: 100%;
        max-width: 100%;
        margin-bottom: 28px;

        overflow: hidden;
    }

    .tu-sidebar-inner {
        position: relative;
        top: auto;

        width: 100%;
        max-width: 100%;
        padding: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .tu-sidebar-inner::-webkit-scrollbar {
        display: none;
    }

    .tu-sidebar-title {
        width: 100%;
        margin-bottom: 13px;
    }

    .tu-sidebar nav {
        width: max-content;
        min-width: max-content;
        max-width: none;

        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .tu-sidebar nav a {
        flex: 0 0 auto;

        padding: 10px 14px;

        white-space: nowrap;
    }


    /* Terms cards */

    .tu-terms-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .tu-term-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow: hidden;
    }

    .tu-term-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .tu-term-copy h2,
    .tu-term-copy p {
        width: 100%;
        max-width: 100%;

        overflow-wrap: break-word;
        word-break: normal;
    }


    /* Contact section */

    .tu-contact-box {
        width: 100%;
        max-width: 100%;

        overflow: hidden;
    }

}


/* Smaller mobile */

@media (max-width: 560px) {

    .tu-container {
        width: calc(100% - 28px);
    }

    .tu-hero {
        padding:
            125px
            0
            55px;
    }

    .tu-hero h1 {
        font-size: clamp(45px, 15vw, 62px);
    }

    .tu-content-section {
        padding:
            52px
            0
            65px;
    }

    .tu-introduction {
        padding: 22px 18px;
    }

    .tu-term-card {
        padding: 24px 18px;
    }

    .tu-term-copy h2 {
        font-size: 23px;
        line-height: 1.2;
    }

    .tu-term-copy p {
        font-size: 15px;
        line-height: 1.75;
    }

    .tu-contact-box {
        padding: 32px 19px;
    }

}