/* =========================================================
   ANIL CELEBRATIONS
   TERMS & CONDITIONS
   ========================================================= */

.terms-page {
    --terms-primary: #111827;
    --terms-secondary: #4b5563;
    --terms-muted: #6b7280;
    --terms-border: #e5e7eb;
    --terms-bg: #f8fafc;
    --terms-card: #ffffff;
    --terms-accent: #d97706;
    --terms-accent-light: #fff7ed;

    width: 100%;
    padding: 70px 20px 90px;
    background: var(--terms-bg);
    color: var(--terms-primary);
}

.terms-container {
    width: min(100%, 1000px);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.terms-header {
    margin-bottom: 48px;
    text-align: center;
}

.terms-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--terms-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.terms-header h1 {
    margin: 0 0 18px;
    color: var(--terms-primary);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.terms-header p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--terms-secondary);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CONTENT
   ========================================================= */

.terms-content {
    overflow: hidden;
    background: var(--terms-card);
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.terms-section {
    padding: 38px 42px;
    border-bottom: 1px solid var(--terms-border);
}

.terms-section:last-child,
.terms-section-last {
    border-bottom: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.terms-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    color: var(--terms-primary);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.3;
}

.terms-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--terms-accent-light);
    color: var(--terms-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}


/* =========================================================
   TEXT
   ========================================================= */

.terms-section p {
    margin: 0 0 17px;
    color: var(--terms-secondary);
    font-size: 15px;
    line-height: 1.85;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section strong {
    color: var(--terms-primary);
    font-weight: 650;
}


/* =========================================================
   SUBSECTION
   ========================================================= */

.terms-subsection {
    padding-left: 52px;
}

.terms-subsection h3 {
    margin: 0 0 8px;
    color: var(--terms-accent);
    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   IMPORTANT NOTICE
   ========================================================= */

.terms-notice {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--terms-accent);
    border-radius: 8px;
    background: var(--terms-accent-light);
    color: var(--terms-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.terms-notice strong {
    color: var(--terms-accent);
}


/* =========================================================
   LIST
   ========================================================= */

.terms-list {
    margin: 18px 0 20px;
    padding: 0 0 0 22px;
}

.terms-list li {
    margin-bottom: 12px;
    padding-left: 6px;
    color: var(--terms-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.terms-list li::marker {
    color: var(--terms-accent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .terms-page {
        padding: 50px 16px 60px;
    }

    .terms-header {
        margin-bottom: 32px;
    }

    .terms-header h1 {
        font-size: 36px;
    }

    .terms-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .terms-section {
        padding: 30px 25px;
    }

    .terms-section h2 {
        font-size: 20px;
    }

    .terms-section p,
    .terms-list li {
        font-size: 14px;
        line-height: 1.8;
    }

    .terms-subsection {
        padding-left: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .terms-page {
        padding: 38px 12px 50px;
    }

    .terms-header {
        margin-bottom: 25px;
    }

    .terms-eyebrow {
        font-size: 10px;
    }

    .terms-header h1 {
        margin-bottom: 14px;
        font-size: 30px;
    }

    .terms-header p {
        font-size: 14px;
    }

    .terms-content {
        border-radius: 14px;
    }

    .terms-section {
        padding: 25px 18px;
    }

    .terms-section h2 {
        gap: 10px;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .terms-section h2 span {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 10px;
    }

    .terms-section p,
    .terms-list li {
        font-size: 14px;
        line-height: 1.75;
    }

    .terms-notice {
        padding: 15px 16px;
        font-size: 13px;
    }

    .terms-list {
        padding-left: 20px;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .terms-page {
        padding: 0;
        background: #fff;
    }

    .terms-container {
        width: 100%;
    }

    .terms-header {
        margin-bottom: 30px;
    }

    .terms-content {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .terms-section {
        padding: 25px 0;
        break-inside: avoid;
    }

    .terms-section h2 {
        break-after: avoid;
    }

    .terms-notice {
        border: 1px solid #ddd;
    }
}

.checkout-terms-frame {
    display: block;
    width: 100%;
    height: 65vh;
    min-height: 400px;
    border: 0;
}

/* =========================================================
   TERMS SUB TITLES
   ========================================================= */

.terms-subtitle {
    margin: 28px 0 12px;
    color: var(--terms-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.terms-subtitle + p {
    margin-bottom: 17px;
}


/* =========================================================
   PAYMENT IMPORTANT NOTICE
   ========================================================= */

.terms-section .terms-notice {
    margin: 22px 0 26px;
}


/* =========================================================
   PAYMENT LIST
   ========================================================= */

.terms-section .terms-list {
    margin-top: 15px;
    margin-bottom: 22px;
}

/* =========================================================
   NUMBERED LIST
   ========================================================= */

.terms-number-list {
    margin: 15px 0 22px;
    padding-left: 28px;
    counter-reset: item;
}

.terms-number-list li {
    margin-bottom: 12px;
    padding-left: 6px;
    color: var(--terms-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.terms-number-list li::marker {
    color: var(--terms-accent);
    font-weight: 700;
}