/* ===========================================================
   Terms & Conditions — Professional Redesign
   =========================================================== */
:root {
    --t-violet:    #7C3AED;
    --t-violet-lt: #A78BFA;
    --t-bg:        #F8FAFC;
    --t-bg-alt:    #F5F3FF;
    --t-border:    #E5E7EB;
    --t-dark:      #1F2937;
    --t-muted:     #6B7280;
    --t-success:   #16A34A;
    --t-warn:      #D97706;
    --t-danger:    #B91C1C;
    --t-radius:    14px;
    --t-shadow:    0 4px 14px rgba(15, 23, 42, .06);
}

/* Reading progress bar */
.terms-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--t-violet), var(--t-violet-lt));
    z-index: 1080; transition: width .15s ease;
}

/* ─────────────── HERO ─────────────── */
.terms-hero {
    position: relative;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: #fff; padding: 70px 0 90px; overflow: hidden;
}
.terms-hero::before, .terms-hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.07); pointer-events: none;
}
.terms-hero::before { width: 380px; height: 380px; top: -120px; right: -90px; }
.terms-hero::after  { width: 260px; height: 260px; bottom: -110px; left: -60px; }

.terms-hero .container { position: relative; z-index: 2; }
.terms-hero .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.16); padding: 7px 18px; border-radius: 99px;
    font-size: .82rem; font-weight: 600; letter-spacing: .3px;
    backdrop-filter: blur(6px);
}
.terms-hero .hero-icon {
    width: 78px; height: 78px; border-radius: 22px; background: rgba(255,255,255,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.4rem; margin-bottom: 14px;
}
.terms-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 12px 0 14px;
    line-height: 1.18;
}
.terms-hero .hero-subtitle {
    max-width: 780px; margin: 0 auto; font-size: 1.03rem; opacity: .92;
}
.terms-meta {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin-top: 22px;
}
.terms-meta .meta-pill {
    background: rgba(255,255,255,.14); padding: 7px 16px; border-radius: 99px;
    font-size: .82rem; display: inline-flex; align-items: center; gap: 6px;
    backdrop-filter: blur(6px);
}
.terms-hero .hero-actions {
    margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.terms-hero .btn-hero {
    background: #fff; color: var(--t-violet); border: none;
    padding: 11px 22px; border-radius: 99px; font-weight: 700; font-size: .9rem;
    display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.terms-hero .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.terms-hero .btn-hero.outline {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7);
    box-shadow: none;
}
.terms-hero .btn-hero.outline:hover { background: rgba(255,255,255,.15); }

.page-wave svg { display:block; width:100%; height: 55px; }

/* ─────────────── KEY POINTS ─────────────── */
.kp-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin: -50px auto 0; max-width: 1180px; padding: 0 16px;
    position: relative; z-index: 5;
}
.kp-card {
    background: #fff; border: 1px solid var(--t-border); border-radius: var(--t-radius);
    padding: 18px; box-shadow: var(--t-shadow); transition: transform .25s ease;
}
.kp-card:hover { transform: translateY(-3px); }
.kp-icon {
    width: 44px; height: 44px; border-radius: 12px; display:inline-flex;
    align-items:center; justify-content:center; font-size:1.3rem; margin-bottom: 10px;
}
.kp-title { font-weight: 700; font-size: 1rem; color: var(--t-dark); margin-bottom: 4px; }
.kp-desc { font-size: .84rem; color: var(--t-muted); line-height: 1.55; }

/* ─────────────── MAIN LAYOUT ─────────────── */
.terms-main { padding: 50px 0 60px; }
.terms-layout {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 30px;
}
@media (max-width: 991px) {
 .terms-layout { grid-template-columns: 1fr; } 
}

/* ─────────────── SIDEBAR (TOC) ─────────────── */
.terms-sidebar { position: sticky; top: 80px; align-self: start; }
@media (max-width: 991px) {
 .terms-sidebar { position: static; } 
}

.toc-card {
    background:#fff; border:1px solid var(--t-border); border-radius: var(--t-radius);
    box-shadow: var(--t-shadow); padding: 16px; margin-bottom: 16px;
}
.toc-card .toc-title {
    font-size: .82rem; font-weight: 800; color: var(--t-dark); text-transform: uppercase;
    letter-spacing: .6px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.toc-search {
    width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--t-border);
    font-size: .85rem; margin-bottom: 10px; background: var(--t-bg);
}
.toc-search:focus { outline: 2px solid var(--t-violet-lt); border-color: var(--t-violet); }

.toc-list { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.toc-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
    font-size: .83rem; color: var(--t-dark); text-decoration: none; transition: all .2s;
    border: 1px solid transparent;
    cursor: pointer;
}
.toc-item:hover { background: var(--t-bg-alt); color: var(--t-violet); }
.toc-item.active {
    background: var(--t-bg-alt); color: var(--t-violet); font-weight: 700;
    border-color: rgba(124,58,237,.25);
}
.toc-item .toc-num {
    flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--t-bg);
    color: var(--t-muted); font-size: .72rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.toc-item.active .toc-num { background: var(--t-violet); color: #fff; }

/* Quick links sidebar */
.ql-card { padding: 16px; }
.ql-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px; background: var(--t-bg);
    border: 1px solid var(--t-border); font-size: .84rem; font-weight: 600;
    color: var(--t-dark); text-decoration: none; transition: all .25s; margin-bottom: 6px;
}
.ql-link:hover { background: var(--t-violet); color:#fff; border-color: var(--t-violet); transform: translateX(4px); }
.ql-link i { font-size: 1.05rem; color: var(--t-violet-lt); }
.ql-link:hover i { color: #fff; }

/* ─────────────── CONTENT ─────────────── */
.terms-content { min-width: 0; }

/* Acceptance banner / intro */
.intro-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-left: 5px solid var(--t-warn);
    padding: 16px 20px; border-radius: var(--t-radius);
    color: #78350F; font-size: .92rem; line-height: 1.7;
    margin-bottom: 24px;
}
.acceptance-banner {
    background: #EFF6FF; border: 1px solid #BFDBFE;
    padding: 14px 18px; border-radius: 12px; color: #1E3A8A;
    font-size: .87rem; margin-bottom: 30px; display: flex; align-items: flex-start; gap: 10px;
}
.acceptance-banner i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* Section card */
.section-block { margin-bottom: 26px; scroll-margin-top: 90px; }
.section-card {
    background:#fff; border:1px solid var(--t-border); border-radius: var(--t-radius);
    box-shadow: var(--t-shadow); overflow: hidden;
}
.section-header {
    display: flex; align-items: center; gap: 14px; padding: 18px 22px;
    border-bottom: 1px solid var(--t-border); cursor: pointer;
    background: linear-gradient(180deg, #fff, #FAFAFB);
    transition: background .2s;
}
.section-header:hover { background: var(--t-bg-alt); }
.section-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}
.section-num {
    font-size: .72rem; font-weight: 800; letter-spacing: .5px;
    color: var(--t-muted); text-transform: uppercase;
}
.section-title { font-size: 1.08rem; font-weight: 800; color: var(--t-dark); line-height: 1.35; margin: 2px 0 0; }
.section-summary { font-size: .82rem; color: var(--t-muted); margin-top: 3px; }
.section-toggle {
    margin-left: auto; flex-shrink: 0; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--t-muted); transition: transform .3s;
}
.section-block.open .section-toggle { transform: rotate(180deg); color: var(--t-violet); }

.section-body {
    padding: 22px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
    padding-top: 0; padding-bottom: 0;
}
.section-block.open .section-body { padding-top: 22px; padding-bottom: 22px; }

.subsection { margin-bottom: 18px; }
.subsection:last-child { margin-bottom: 0; }
.subsection-heading {
    font-size: .98rem; font-weight: 700; color: var(--t-dark);
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.subsection-heading::before {
    content:""; display: inline-block; width: 4px; height: 18px;
    background: var(--t-violet); border-radius: 2px;
}
.subsection-intro { font-size: .9rem; color: var(--t-muted); margin-bottom: 8px; line-height: 1.7; }
.subsection-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.subsection-list li {
    position: relative; padding: 10px 14px 10px 38px;
    background: var(--t-bg); border-radius: 10px; font-size: .9rem;
    line-height: 1.7; color: #374151; transition: background .2s;
}
.subsection-list li::before {
    content: "\F26D"; /* check2 */
    font-family: "bootstrap-icons"; position: absolute; left: 12px; top: 11px;
    color: var(--t-violet); font-size: 1rem;
}
.subsection-list li:hover { background: var(--t-bg-alt); }
.subsection-list li a { color: var(--t-violet); font-weight: 600; }

.subsection-note {
    margin-top: 10px; background: #ECFDF5; border-left: 4px solid var(--t-success);
    padding: 10px 14px; border-radius: 8px; font-size: .85rem; color: #065F46; line-height: 1.65;
}
.subsection-note i { margin-right: 6px; }

/* Footer note */
.terms-footer-note {
    margin-top: 20px;
    background: linear-gradient(135deg, #EDE9FE, #F5F3FF);
    border: 1px solid #DDD6FE; padding: 18px 22px; border-radius: var(--t-radius);
    color: #4C1D95; font-size: .9rem; line-height: 1.75;
    display: flex; gap: 14px; align-items: flex-start;
}
.terms-footer-note i { font-size: 1.4rem; flex-shrink: 0; color: var(--t-violet); }

/* Acceptance card with checkbox */
.acknowledge-card {
    margin-top: 24px; background: #fff; border: 2px solid var(--t-violet);
    border-radius: var(--t-radius); padding: 22px;
    box-shadow: 0 6px 20px rgba(124,58,237,.15);
}
.acknowledge-card h4 { font-weight: 800; color: var(--t-dark); font-size: 1.1rem; margin-bottom: 8px; }
.acknowledge-card p { color: var(--t-muted); font-size: .9rem; margin-bottom: 12px; }
.acknowledge-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: var(--t-bg-alt); border-radius: 10px; cursor: pointer;
    user-select: none; transition: all .2s; margin-bottom: 12px;
}
.acknowledge-row:hover { background: #EDE9FE; }
.acknowledge-row input { width: 18px; height: 18px; accent-color: var(--t-violet); }
.acknowledge-row label { font-size: .9rem; color: var(--t-dark); margin: 0; cursor: pointer; }
.btn-acknowledge {
    background: var(--t-violet); color: #fff; border: none;
    padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: .9rem;
    display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s;
}
.btn-acknowledge:disabled { opacity: .5; cursor: not-allowed; }
.btn-acknowledge:hover:not(:disabled) { background: #6D28D9; }

/* Contact card */
.contact-card {
    margin-top: 28px; background: #fff; border-radius: var(--t-radius);
    border: 1px solid var(--t-border); padding: 20px; box-shadow: var(--t-shadow);
    display: grid; gap: 12px;
}
.contact-card h4 { font-weight: 800; font-size: 1.05rem; color: var(--t-dark); margin: 0 0 4px; }
.contact-card .contact-row {
    display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .9rem;
}
.contact-card .contact-row i {
    width: 36px; height: 36px; border-radius: 10px; background: var(--t-bg-alt);
    color: var(--t-violet); display:inline-flex; align-items:center; justify-content:center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-card .contact-row a { color: var(--t-dark); font-weight: 600; text-decoration: none; }
.contact-card .contact-row a:hover { color: var(--t-violet); }

/* Search highlight */
.terms-hidden { display: none !important; }
mark.tx-mark { background: #FDE68A; color: #92400E; padding: 0 2px; border-radius: 3px; }

/* No-results */
.no-results-box {
    text-align: center; padding: 40px 20px; background:#fff;
    border: 2px dashed var(--t-border); border-radius: var(--t-radius);
    color: var(--t-muted);
}
.no-results-box i { font-size: 2.4rem; color: var(--t-violet-lt); }

/* Print-friendly */
@media print {

    .terms-progress, .terms-sidebar, .terms-hero .hero-actions, .acknowledge-card,
    .toc-card, .ql-card, .toc-search, .section-toggle { display: none !important; }
    .terms-layout { grid-template-columns: 1fr; gap: 0; }
    .section-block .section-body { max-height: none !important; padding: 16px !important; }
    .section-card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .terms-hero { background: #fff !important; color: #000 !important; padding: 12px 0 !important; }
    .terms-hero .hero-icon, .terms-hero .hero-badge, .terms-meta, .page-wave { display: none !important; }
    

}

/* Sticky scroll smooth */

