/* =========================================================
   CLEAN NORA - TERMS & CONDITIONS PAGE
   ========================================================= */

:root {
    --terms-green: #083D2B;
    --terms-gold: #F4BF19;
    --terms-white: #ffffff;
    --terms-text: #1f3b33;
    --terms-muted: #61716c;
    --terms-border: #e4e9e5;
    --terms-bg: #f7f8f5;
}


/* =========================================================
   PAGE
   ========================================================= */

.terms-conditions-page {
    background: var(--terms-bg);
    color: var(--terms-text);
}

.terms-conditions-page main {
    overflow: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.terms-hero {
    background: linear-gradient(
        135deg,
        #083D2B 0%,
        #062f22 60%,
        #05261c 100%
    );
    padding: 62px 0 52px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(244, 191, 25, 0.08);
    border-radius: 50%;
    right: -120px;
    top: -180px;
}

.terms-hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    left: 35%;
    bottom: -180px;
}

.terms-hero-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 30px;

    position: relative;
    z-index: 2;
}

.terms-hero-content {
    max-width: 520px;
}

.terms-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    margin-bottom: 14px;
}

.terms-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 0.98;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -2px;
}

.terms-hero h1 span {
    color: var(--terms-gold);
}

.terms-title-line {
    width: 52px;
    height: 3px;
    background: var(--terms-gold);
    margin: 22px 0 18px;
    border-radius: 50px;
}

.terms-hero-content > p {
    margin: 0;
    max-width: 510px;
    color: rgba(255,255,255,0.84);
    font-size: 17px;
    line-height: 1.75;
}

.terms-updated {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 15px;
}

.terms-updated strong {
    color: var(--terms-gold);
}

.terms-calendar {
    color: var(--terms-gold);
    font-size: 22px;
}

.terms-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
}

.terms-hero-visual img {
    display: block;
    width: 100%;
    max-width: 610px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   TERMS NAVIGATION
   ========================================================= */

.terms-nav-section {
    background: #ffffff;
    padding: 18px 0 22px;
}

.terms-nav {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;

    min-height: 106px;

    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 18px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;

    box-shadow: 0 12px 30px rgba(8, 61, 43, 0.05);
    overflow: hidden;
}

.terms-nav-item {
    color: var(--terms-text);
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;
    text-align: center;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;

    position: relative;
    padding: 16px 10px;
}

.terms-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    width: 1px;
    height: 56%;
    background: var(--terms-border);
}

.terms-nav-icon {
    font-size: 26px;
    color: var(--terms-green);
    line-height: 1;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.terms-content-section {
    padding: 28px 0 40px;
    background: var(--terms-bg);
}

.terms-content-grid {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   TERMS CARDS
   ========================================================= */

.terms-card {
    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 16px;

    min-height: 128px;
    padding: 18px 20px;

    display: grid;
    grid-template-columns: 60px 58px 1fr 22px;
    align-items: center;
    gap: 14px;

    box-shadow: 0 8px 22px rgba(8, 61, 43, 0.035);

    transition: 0.25s ease;
    scroll-margin-top: 100px;
}

.terms-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 191, 25, 0.45);
    box-shadow: 0 14px 28px rgba(8, 61, 43, 0.08);
}

.terms-number {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #083D2B, #11563f);
    color: var(--terms-gold);

    border-radius: 9px;

    font-size: 22px;
    font-weight: 700;
}

.terms-card-icon {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    background: #f7f8f5;
    border: 1px solid var(--terms-border);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--terms-green);
    font-size: 25px;
}

.terms-card-content h2 {
    margin: 0 0 7px;
    color: var(--terms-text);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.terms-card-content p {
    margin: 0;
    color: #596963;
    font-size: 14px;
    line-height: 1.65;
}

.terms-arrow {
    font-size: 30px;
    color: var(--terms-green);
    font-weight: 300;
    text-align: right;
}


/* =========================================================
   OUR COMMITMENT
   ========================================================= */

.terms-commitment {
    background: linear-gradient(
        145deg,
        #0a4531 0%,
        #062d21 100%
    );

    border-radius: 16px;
    padding: 32px 30px;
    color: #ffffff;

    min-height: 760px;

    box-shadow: 0 18px 40px rgba(8, 61, 43, 0.15);
}

.commitment-shield {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border: 2px solid var(--terms-gold);
    border-radius: 50%;

    color: var(--terms-gold);
    font-size: 32px;
}

.terms-commitment > h2 {
    margin: 0;
    text-align: center;

    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
}

.commitment-line {
    width: 44px;
    height: 3px;
    border-radius: 30px;

    background: var(--terms-gold);

    margin: 15px auto 20px;
}

.commitment-intro {
    margin: 0;
    text-align: center;

    color: rgba(255,255,255,0.76);

    font-size: 15px;
    line-height: 1.7;

    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.commitment-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 24px;
}

.commitment-feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    align-items: start;
}

.commitment-feature > span {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--terms-gold);
    font-size: 22px;

    border: 1px solid rgba(244,191,25,0.35);
    border-radius: 9px;
}

.commitment-feature h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.commitment-feature p {
    margin: 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   NEED HELP
   ========================================================= */

.terms-help-section {
    background: var(--terms-bg);
    padding: 0 0 48px;
}

.terms-help-card {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;

    min-height: 118px;

    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 16px;

    box-shadow: 0 10px 26px rgba(8, 61, 43, 0.05);

    display: grid;
    grid-template-columns: 82px minmax(180px, 1fr) 1px minmax(250px, 1.25fr) auto;
    align-items: center;
    gap: 22px;

    padding: 20px 26px;
}

.terms-help-icon {
    width: 76px;
    height: 76px;

    border-radius: 50%;

    background: var(--terms-green);
    color: var(--terms-gold);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
}

.terms-help-text h2 {
    margin: 0 0 6px;
    color: var(--terms-text);
    font-size: 22px;
}

.terms-help-text p {
    margin: 0;
    color: var(--terms-muted);
    font-size: 14px;
    line-height: 1.55;
}

.terms-help-divider {
    width: 1px;
    height: 64px;
    background: var(--terms-border);
}

.terms-help-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.terms-help-contact p {
    margin: 0;
    color: var(--terms-text);
    font-size: 14px;
}

.terms-contact-btn {
    min-width: 178px;
    height: 52px;

    border-radius: 9px;

    background: var(--terms-green);
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.terms-contact-btn:hover {
    background: #062f22;
    color: #ffffff;
    transform: translateY(-2px);
}

.terms-contact-btn span {
    color: var(--terms-gold);
    font-size: 23px;
    line-height: 1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .terms-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .terms-hero-content {
        max-width: 680px;
        margin: 0 auto;
    }

    .terms-title-line {
        margin-left: auto;
        margin-right: auto;
    }

    .terms-updated {
        justify-content: center;
    }

    .terms-hero-visual {
        min-height: auto;
    }

    .terms-hero-visual img {
        max-width: 560px;
    }

    .terms-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .terms-nav-item:nth-child(3)::after {
        display: none;
    }

    .terms-nav-item {
        border-bottom: 1px solid var(--terms-border);
    }

    .terms-content-grid {
        grid-template-columns: 1fr;
    }

    .terms-commitment {
        min-height: auto;
    }

    .terms-help-card {
        grid-template-columns: 76px 1fr;
    }

    .terms-help-divider {
        display: none;
    }

    .terms-help-contact {
        grid-column: 1 / -1;
    }

    .terms-contact-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}


@media (max-width: 767px) {

    .terms-hero {
        padding: 50px 0 38px;
    }

    .terms-hero-inner,
    .terms-nav,
    .terms-content-grid,
    .terms-help-card {
        width: min(100% - 30px, 1160px);
    }

    .terms-hero h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .terms-hero-content > p {
        font-size: 15px;
    }

    .terms-nav {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 14px;
    }

    .terms-nav-item {
        min-height: 96px;
        border-bottom: 1px solid var(--terms-border);
    }

    .terms-nav-item::after {
        display: none;
    }

    .terms-card {
        grid-template-columns: 52px 1fr 18px;
        gap: 12px;
        padding: 16px;
    }

    .terms-card-icon {
        display: none;
    }

    .terms-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .terms-card-content h2 {
        font-size: 17px;
    }

    .terms-card-content p {
        font-size: 13px;
    }

    .terms-arrow {
        font-size: 25px;
    }

    .terms-commitment {
        padding: 28px 22px;
    }

    .terms-help-card {
        padding: 22px;
        text-align: center;
    }

    .terms-help-icon {
        margin: 0 auto;
    }

    .terms-help-text {
        text-align: left;
    }

    .terms-help-contact {
        align-items: center;
    }
}


@media (max-width: 480px) {

    .terms-hero h1 {
        font-size: 40px;
    }

    .terms-eyebrow {
        font-size: 10px;
    }

    .terms-nav-item {
        font-size: 12px;
    }

    .terms-nav-icon {
        font-size: 22px;
    }

    .terms-card {
        grid-template-columns: 46px 1fr;
    }

    .terms-arrow {
        display: none;
    }

    .terms-number {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .terms-card-content h2 {
        font-size: 16px;
    }

    .terms-card-content p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .terms-help-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .terms-help-text {
        text-align: center;
    }
}

/* =========================================
   TERMS HERO FINAL SPACING FIX
========================================= */

.terms-hero {
    padding-top: 150px !important;
}

.terms-hero-image {
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* NEED HELP - VERTICAL DIVIDER BOLD */
.terms-help-content .terms-help-info {
    border-right: 2px solid #9fa9a5 !important;
}

/* =========================================
   TERMS NEED HELP - EXACT FINAL ALIGNMENT
========================================= */

.terms-help-card {
    display: grid !important;
    grid-template-columns: 80px minmax(280px, 1fr) 2px 330px auto !important;
    align-items: center !important;
    column-gap: 26px !important;
}

/* Existing vertical divider - thoda bold */
.terms-help-divider {
    width: 2px !important;
    height: 58px !important;
    background: #9eaaa5 !important;
    margin-left: -10px !important;
    margin-right: 0 !important;
}

/* Phone / Email / Time section */
.terms-help-contact {
    margin: 0 !important;
    padding: 0 !important;
}

/* Contact button ko zyada right jaane se rokna */
.terms-contact-btn {
    justify-self: start !important;
    margin-left: -25px !important;
}

/* SUPPORT BAR - FINAL ALIGNMENT */
.terms-support-contact {
    justify-content: flex-start !important;
    padding-left: 55px !important;
}

.terms-support-divider {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateX(-10px);
}