
/* Header Section */
.header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1f4e79 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.header-content {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.terms-container {
    background: white;
    border-radius: 25px;
    padding: 4rem;
    margin: 2rem auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.08);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(52, 152, 219, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section:hover::before {
    opacity: 1;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    border-radius: 1px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.section:hover .section-icon {
    transform: rotate(5deg) scale(1.05);
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.section-content li::marker {
    color: #3498db;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #d6eaf8 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.highlight-box .highlight-title {
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box .highlight-title i {
    color: #3498db;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .header .subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .terms-container {
        padding: 2rem;
        margin: 1rem;
    }

    .table-of-contents {
        padding: 1.5rem;
        position: static;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title::after {
        display: none;
    }

   
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .section {
        padding: 1rem;
    }

  
}

/* Print Styles */
@media print {
    .header,
    .table-of-contents,
    .back-to-top,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .terms-container {
        box-shadow: none;
        border: 1px solid #ddd;
        margin: 0;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #eee;
    }
}