/* Legal Pages Styles */

.legal-content {
    padding: 120px 0 80px;
    background: var(--light-color);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-color);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 5px 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

.legal-section h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 20px 0 15px;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-section li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 2px solid var(--danger-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
}

.warning-box h3 {
    color: var(--danger-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.warning-box p {
    color: #721c24;
    margin-bottom: 0;
    font-weight: 500;
}

/* Acknowledgment Section */
.acknowledgment {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: 50px;
}

.acknowledgment h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.acknowledgment p {
    font-weight: 500;
    margin-bottom: 10px;
}

.acknowledgment p:last-child {
    margin-bottom: 0;
    color: var(--primary-color);
}

/* Table of Contents (optional) */
.table-of-contents {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.table-of-contents h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 40px;
    }
    
    .legal-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .legal-section {
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
        margin: 15px 0 10px;
    }
    
    .legal-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .legal-section ul {
        margin: 10px 0;
        padding-left: 20px;
    }
    
    .legal-section li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
    
    .legal-body {
        padding: 0;
        max-width: 100%;
    }
    
    .warning-box {
        padding: 15px;
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .warning-box h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .warning-box p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .acknowledgment {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    /* Tables for mobile */
    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100% !important;
    }
    
    table td {
        padding: 8px !important;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
    
    .warning-box {
        padding: 12px;
    }
    
    .acknowledgment {
        padding: 15px 10px;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    table td {
        padding: 6px !important;
        min-width: 100px;
    }
}