/* Legal Pages Styling (Terms & Privacy Policy) */
:root {
    /* Use Ulteamate color variables for consistency */
    --legal-bg-dark: var(--auth-bg-dark, #0f172a);
    --legal-bg-light: var(--auth-bg-light, #1e293b);
    --legal-panel: var(--auth-panel, rgba(30, 41, 59, 0.7));
    --legal-text: var(--auth-text, #f8fafc);
    --legal-text-secondary: var(--auth-text-secondary, rgba(248, 250, 252, 0.7));
    --legal-accent: var(--auth-accent, #0ea5e9);
    --legal-primary: var(--auth-primary, #6366f1);
    --legal-divider: var(--auth-primary, #6366f1);
}

/* Legal section container */
.legal-section {
    background: var(--legal-bg-dark);
    min-height: calc(100vh - 220px);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

/* Section container with responsive width */
.legal-section .section-container {
    max-width: 1000px;
    width: 92%;
    margin: 0 auto;
    position: relative;
    background: var(--legal-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section header styling */
.legal-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-section .section-header h1 {
    font-size: 2.5rem;
    color: var(--legal-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-section .section-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--legal-primary), var(--legal-accent));
    margin: 15px auto;
    border-radius: 3px;
}

.legal-subtitle {
    color: var(--legal-text-secondary);
    font-size: 1rem;
    margin-top: 10px;
}

/* Legal content styling */
.legal-content {
    color: var(--legal-text);
    line-height: 1.7;
}

.legal-content .legal-section {
    margin-bottom: 40px;
    padding: 0;
    min-height: auto;
    background: transparent;
}

.legal-content .legal-section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--legal-accent);
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--legal-text);
    margin: 20px 0 10px;
    font-weight: 500;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--legal-text-secondary);
}

.legal-content ul, .legal-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--legal-text-secondary);
}

.legal-content a {
    color: var(--legal-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Add back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--legal-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--legal-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-section {
        padding: 60px 0;
    }
    
    .legal-section .section-container {
        padding: 30px;
    }
    
    .legal-section .section-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 40px 0;
    }
    
    .legal-section .section-container {
        padding: 20px;
        width: 95%;
    }
    
    .legal-section .section-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
} 