/* ===================================================================
   Creative Web Design - Terms & Transparency Policy Stylesheet
   =================================================================== */

:root {
    --primary: #7B2FBE;
    --primary-dark: #5A1E94;
    --primary-light: #A855F7;
    --accent: #60A5FA;
    --accent-light: #93C5FD;
    --white: #ffffff;
    --bg-light: #f8f9ff;
    --card-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-muted: #8888aa;
    --border-light: rgba(123, 47, 190, 0.12);
    
    --shadow-sm: 0 4px 15px rgba(123, 47, 190, 0.06);
    --shadow-md: 0 10px 30px rgba(123, 47, 190, 0.1);
    --shadow-lg: 0 20px 50px rgba(123, 47, 190, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===================================================================
   SUBPAGE NAVBAR & HEADER STYLES (FIX FOR OVERLAP & READABILITY)
   =================================================================== */
.navbar.subpage-navbar {
    background: rgba(13, 11, 30, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.navbar.subpage-navbar .logo-text {
    color: #ffffff !important;
}

.navbar.subpage-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar.subpage-navbar .nav-link:hover,
.navbar.subpage-navbar .nav-link.active {
    color: #A855F7 !important;
}

.navbar.subpage-navbar .hamburger-line {
    background: #ffffff !important;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.15);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.35);
    transition: all 0.25s ease;
}

.btn-back:hover {
    background: var(--primary-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* ===================================================================
   HERO SECTION (PROPER TOP MARGIN TO ELIMINATE COLLISION)
   =================================================================== */
.terms-hero {
    background: linear-gradient(135deg, #0d0b1e 0%, #1a103c 50%, #2a124d 100%);
    color: var(--white);
    padding: 170px 0 80px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.terms-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.terms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.terms-hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 18px;
}

.terms-hero h1 .gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 25px;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* ===================================================================
   MAIN LAYOUT & GRID
   =================================================================== */
.terms-wrapper {
    background-color: var(--bg-light);
    padding: 60px 0 100px;
}

.terms-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Navigation */
.terms-sidebar {
    position: sticky;
    top: 110px;
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.terms-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-nav-link:hover,
.terms-nav-link.active {
    background: rgba(123, 47, 190, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.terms-nav-link i {
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* Transparency Banner */
.transparency-banner {
    background: linear-gradient(135deg, rgba(123, 47, 190, 0.04) 0%, rgba(96, 165, 250, 0.08) 100%);
    border: 1px solid rgba(123, 47, 190, 0.15);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
}

.transparency-banner h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transparency-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-pill {
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(123, 47, 190, 0.08);
}

.feature-pill h5 {
    font-size: 0.98rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-pill h5 i {
    color: #10B981;
}

.feature-pill p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Content Cards */
.terms-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-margin-top: 120px;
}

.terms-card:hover {
    box-shadow: var(--shadow-md);
}

.terms-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.terms-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(123, 47, 190, 0.25);
    flex-shrink: 0;
}

.terms-card h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.terms-card p {
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-card ul {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-card ul li {
    position: relative;
    padding-left: 28px;
    color: var(--text-body);
    font-size: 0.96rem;
    line-height: 1.6;
}

.terms-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.9rem;
}

.terms-card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact CTA Box */
.terms-cta-box {
    background: linear-gradient(135deg, #1a103c 0%, #7B2FBE 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.terms-cta-box h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.terms-cta-box p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 25px;
}

.terms-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE FIXES)
   =================================================================== */
@media (max-width: 1024px) {
    .navbar.subpage-navbar .nav-menu {
        display: none;
    }
    
    .navbar.subpage-navbar .hamburger {
        display: flex;
    }
    
    .terms-hero {
        padding: 140px 0 60px;
    }
    
    .terms-hero h1 {
        font-size: 2.2rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 130px 0 50px;
    }
    
    .terms-hero h1 {
        font-size: 1.8rem;
    }
    
    .terms-card {
        padding: 24px;
    }
    
    .btn-back span {
        display: none;
    }
    
    .btn-back {
        padding: 8px 14px;
    }
}
