/* Legal Pages Specific Styles */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.legal-content h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

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

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--accent-primary);
}

/* License Page Specific */
.license-notice {
    font-size: 1.2rem;
    color: var(--accent-tertiary);
    text-align: center;
    margin: 1rem 0 2rem;
}

.license-summary {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid var(--accent-secondary);
}

.license-permissions li,
.license-conditions li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.license-permissions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
}

.license-conditions li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.license-text {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border: 1px solid #333;
    max-height: 500px;
    overflow-y: auto;
}

.code-example {
    margin: 1rem 0;
}

.code-example pre {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--accent-secondary);
}

.code-example code {
    color: var(--accent-secondary);
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.legal-footer .btn {
    margin: 0 0.5rem;
}

/* Active Legal Link */
.footer-section a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .license-text {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .legal-footer {
        display: none;
    }
    
    .legal-page {
        padding-top: 0;
    }
    
    .legal-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .legal-content,
    .legal-content p,
    .legal-content li {
        color: #000;
    }
    
    .legal-content h2,
    .legal-content h3 {
        color: #000;
        -webkit-text-fill-color: #000;
    }
}