/* Legal Pages Styles */
.legal-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.legal-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legal-header nav a {
    color: var(--dark);
    text-decoration: none;
}

.legal-content {
    padding: 60px 0;
    background: var(--light);
    min-height: calc(100vh - 200px);
}

.legal-content .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.legal-content .last-updated {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--primary);
}

.legal-content h3 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: var(--dark);
}

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

.legal-content ul, .legal-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content .contact-info {
    list-style: none;
    margin-left: 0;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
}

.legal-content .contact-info li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.legal-content .contact-info li::before {
    content: "📧";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.legal-content .contact-info li:nth-child(2)::before {
    content: "🌐";
}

.legal-content .contact-info li:nth-child(3)::before {
    content: "📬";
}

/* Legal Checkbox Styles */
.legal-checkbox-group {
    margin: 20px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.legal-label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.legal-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Legal Modal */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.legal-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.legal-modal-content h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.legal-modal-content p {
    margin-bottom: 25px;
    color: var(--gray);
}

.legal-checkbox-container {
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
}

/* Legal Footer */
.legal-footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.legal-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.legal-footer .footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legal-footer .footer-links a:hover {
    opacity: 1;
}

.legal-footer .copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* App Footer */
.app-footer {
    background: var(--dark);
    color: white;
    padding: 15px 0;
    margin-left: 250px;
}

.app-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.app-footer .footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 13px;
}

.app-footer .footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content .container {
        padding: 30px 20px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-footer .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .app-footer {
        margin-left: 70px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}