/* Legal Page Styles */

/* Legal Container */
.legal-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: var(--bg-primary);
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 2rem;
}



/* Document Content */



/* Document Content */
.document-content {
    padding: 3rem 0;
    max-width: none;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: calc(100vh - 160px);
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4,
.document-content h5,
.document-content h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.document-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.document-content h2 {
    font-size: 1.6rem;
    color: #ff6b9d;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    padding-bottom: 0.5rem;
}

.document-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.document-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.document-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.document-content ul,
.document-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.document-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.document-content a {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.document-content a:hover {
    color: #ff5895;
    text-decoration: underline;
}

.document-content strong,
.document-content b {
    font-weight: 600;
    color: var(--text-primary);
}

.document-content em,
.document-content i {
    font-style: italic;
}

.document-content code {
    background: rgba(255, 107, 157, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #ff6b9d;
}

.document-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.document-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

.document-content blockquote {
    border-left: 4px solid #ff6b9d;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(255, 107, 157, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.document-content th,
.document-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.document-content th {
    background: rgba(255, 107, 157, 0.1);
    font-weight: 600;
    color: #ff6b9d;
}

.document-content tr:last-child td {
    border-bottom: none;
}

/* Loading Content */
.loading-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.content-loader {
    text-align: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.content-loader p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}



/* Print Styles */
@media print {
    .legal-sidebar,
    .content-header,
    .content-footer,
    header,
    footer {
        display: none !important;
    }
    
    .legal-container {
        margin-top: 0;
    }
    
    .legal-wrapper {
        display: block;
    }
    
    .document-content {
        padding: 0;
    }
    
    .document-content h1,
    .document-content h2,
    .document-content h3 {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: unset !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-container {
        padding: 0 1.5rem;
    }
    

}

@media (max-width: 768px) {
    .legal-container {
        padding: 0 1rem;
    }
    
    .document-content {
        padding: 1.5rem 0;
    }
    
    .document-content h1 {
        font-size: 1.8rem;
    }
    
    .document-content h2 {
        font-size: 1.4rem;
    }
    
    .document-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 0.5rem;
    }
    
    .document-content {
        padding: 1rem 0;
    }
    
    .document-content h1 {
        font-size: 1.6rem;
    }
    
    .document-content h2 {
        font-size: 1.3rem;
    }
    
    .document-content table {
        font-size: 0.8rem;
    }
    
    .document-content th,
    .document-content td {
        padding: 0.5rem;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Smooth transitions for content changes */
.document-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

.document-content.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: #ff5895;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Dark theme specific adjustments */
[data-theme="dark"] .document-content code {
    background: rgba(255, 107, 157, 0.2);
}

[data-theme="dark"] .document-content blockquote {
    background: rgba(255, 107, 157, 0.1);
}

[data-theme="dark"] .document-content th {
    background: rgba(255, 107, 157, 0.2);
} 