/* Terms of Service Page Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Header Styles */
.terms-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.terms-header .container {
    position: relative;
    z-index: 2;
}

.terms-meta {
    margin-top: 2rem;
}

.terms-meta .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.terms-meta .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation Styles */
.terms-nav {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    top: 100px;
}

.terms-nav h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.terms-nav .nav-link {
    color: #6b7280;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.terms-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.terms-nav .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Content Styles */
.terms-content {
    background: var(--light-color);
    min-height: 80vh;
}

.terms-document {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.terms-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.terms-section.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
    border-radius: 10px;
    padding: 2rem;
    margin: 0 -2rem 3rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.terms-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.terms-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.terms-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Important Note Styles */
.important-note {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.important-note i {
    color: var(--warning-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Prohibited Activities Grid */
.prohibited-list {
    margin: 2rem 0;
}

.prohibited-item {
    background: white;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.prohibited-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.prohibited-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.prohibited-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.prohibited-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* IP Section Styles */
.ip-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Liability Grid */
.liability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.liability-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.liability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.liability-item h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.liability-item i {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 1rem;
}

.contact-item strong {
    margin-right: 0.5rem;
}

/* Terms Footer */
.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.acceptance-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.acceptance-box h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-animation {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-header {
        padding: 100px 0 60px;
    }
    
    .terms-nav {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .terms-document {
        padding: 1.5rem;
    }
    
    .terms-section.active {
        margin: 0 -1.5rem 3rem;
        padding: 1.5rem;
    }
    
    .prohibited-list .row {
        gap: 1rem;
    }
    
    .liability-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .terms-header .display-4 {
        font-size: 2rem;
    }
    
    .terms-meta .badge {
        display: block;
        margin: 0.5rem 0;
        width: fit-content;
    }
    
    .prohibited-item {
        padding: 1rem;
    }
    
    .prohibited-item i {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .terms-nav,
    footer,
    .btn {
        display: none !important;
    }
    
    .terms-header {
        background: none !important;
        color: black !important;
        padding: 2rem 0 !important;
    }
    
    .terms-document {
        box-shadow: none !important;
        border: none !important;
    }
    
    .terms-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}