/* Legal Pages Styles */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}

.legal-content {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #64748b;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5a67d8;
}

.breadcrumb span {
    color: #cbd5e1;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.legal-subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-subtitle i {
    color: #667eea;
}

.dot-separator {
    color: #cbd5e1;
    font-weight: 700;
}

/* Legal Wrapper with Sidebar */
.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.toc-sticky h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-sticky h3 i {
    color: #667eea;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: #f1f5f9;
    color: #667eea;
    padding-left: 2rem;
}

.toc-link:hover::before {
    background: #667eea;
    width: 8px;
    height: 8px;
}

.toc-link.active {
    background: #eff6ff;
    color: #667eea;
    font-weight: 600;
}

.toc-link.active::before {
    background: #667eea;
}

.legal-body {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-section {
    margin-bottom: 3rem;
    position: relative;
    padding-top: 2rem;
    scroll-margin-top: 100px;
}

.section-number {
    position: absolute;
    top: 0;
    left: -2.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-section ul li::marker {
    color: #667eea;
}

/* Quick Actions */
.quick-actions {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.quick-actions h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions h3 i {
    color: #667eea;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.highlight-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Warning boxes */
.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    position: relative;
}

.warning-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #dc2626;
    border-radius: 16px 0 0 16px;
}

.warning-box h4 {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box p {
    color: #7f1d1d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
    position: relative;
}

.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #1d4ed8;
    border-radius: 16px 0 0 16px;
}

.info-box h4 {
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    color: #1e3a8a;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contact info styling */
.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #e2e8f0;
}

.contact-info h3 {
    color: #1a202c;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4b5563;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

.contact-info i {
    color: #667eea;
    width: 20px;
    font-size: 1.1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section animations */
.legal-section {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }

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

/* Responsive design for legal pages */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar {
        order: -1;
    }
    
    .toc-sticky {
        position: relative;
        top: 0;
    }
    
    .section-number {
        left: 0;
        position: relative;
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .breadcrumb {
        justify-content: center;
    }
    
    .legal-subtitle {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .legal-body {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .legal-section {
        padding-top: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-body {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .highlight-box,
    .warning-box,
    .info-box {
        padding: 1rem;
    }
    
    .section-number {
        font-size: 2rem;
    }
    
    .toc-sticky {
        padding: 1.5rem;
    }
}



