/* ==============================================================================
   KEYWALA - TERMS AND CONDITIONS PAGE MODERN STYLES
   ============================================================================== */

/* Hero Banner */
.terms-hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 18px;
    padding: 44px 36px 36px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.3);
}

.terms-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.terms-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
    color: #ecfdf5;
}

.terms-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
}

.terms-hero-subtitle {
    font-size: 15.5px;
    color: #d1fae5;
    max-width: 760px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.terms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #a7f3d0;
}

.terms-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 4 Core At-a-Glance Highlights */
.terms-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.terms-highlight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.terms-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.terms-highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.terms-highlight-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.terms-highlight-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* Sidebar Navigation & Info */
.terms-sidebar {
    position: sticky;
    top: 24px;
}

.terms-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.terms-nav-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.terms-nav-title i {
    color: #059669;
}

.terms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.terms-nav-link i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.terms-nav-link:hover {
    background: #f1f5f9;
    color: #059669;
}

.terms-nav-link:hover i {
    color: #059669;
}

.terms-nav-link.active {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

.terms-nav-link.active i {
    color: #059669;
}

.terms-entity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.terms-entity-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-entity-title i {
    color: #059669;
}

.terms-entity-body {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
}

.terms-entity-body p {
    margin-bottom: 6px;
}

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

/* Legal Section Cards */
.terms-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terms-section-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.terms-section-card.is-expanded {
    border-color: #10b981;
}

.terms-header-btn {
    width: 100%;
    padding: 18px 22px;
    background: #ffffff;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

.terms-header-btn:focus {
    outline: none;
}

.terms-header-btn:hover {
    background: #f8fafc;
}

.terms-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.terms-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.terms-section-card.is-expanded .terms-section-icon {
    background: #ecfdf5;
    color: #047857;
}

.terms-section-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-section-number {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #059669;
}

.terms-section-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.terms-chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.terms-section-card.is-expanded .terms-chevron {
    transform: rotate(180deg);
    background: #ecfdf5;
    color: #059669;
}

/* Terms Body Content */
.terms-body-collapse {
    border-top: 1px solid #f1f5f9;
}

.terms-body-inner {
    padding: 22px 26px 26px 74px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
    background: #ffffff;
}

.terms-body-inner p {
    margin-bottom: 14px;
    color: #334155;
}

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

.terms-body-inner strong {
    color: #0f172a;
    font-weight: 700;
}

.terms-body-inner ul, .terms-body-inner ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.terms-body-inner li {
    margin-bottom: 8px;
    color: #334155;
}

/* Callout Highlights */
.terms-alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 13.5px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.terms-alert-icon {
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.terms-alert-info .terms-alert-icon {
    color: #2563eb;
}

.terms-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.terms-alert-warning .terms-alert-icon {
    color: #d97706;
}

.terms-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.terms-alert-success .terms-alert-icon {
    color: #059669;
}

/* Top Action Controls (Expand/Collapse All) */
.terms-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 20px;
}

.terms-controls-left {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-toggle-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.terms-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .terms-hero-section {
        padding: 32px 24px 28px 24px;
    }
    
    .terms-hero-title {
        font-size: 26px;
    }
    
    .terms-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .terms-body-inner {
        padding: 18px 20px 22px 20px;
    }
}

@media (max-width: 576px) {
    .terms-hero-section {
        padding: 24px 18px;
        border-radius: 14px;
    }
    
    .terms-hero-title {
        font-size: 22px;
    }
    
    .terms-hero-subtitle {
        font-size: 14px;
    }
    
    .terms-highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-header-btn {
        padding: 14px 16px;
    }
    
    .terms-section-title {
        font-size: 15px;
    }
    
    .terms-section-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .terms-body-inner {
        padding: 16px 16px 20px 16px;
        font-size: 14px;
    }
}

