/* Legal Pages Specific Styles */

.legal-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-dark);
    opacity: 0.7;
    font-style: italic;
}

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

.legal-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.legal-section h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section strong {
    color: var(--secondary-color);
}

/* Permissions Page Specific */
.permission-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.permission-item h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permission-item p {
    margin-bottom: 0.5rem;
}

.permission-item p:last-child {
    margin-bottom: 0;
}

/* Active link indicator */
.footer-links a.active {
    font-weight: bold;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section ul {
        margin-left: 1.5rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}