/* Note Legali - Additional Styles */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-hero .subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 8px;
}

.legal-hero .last-update {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Quick Navigation */
.quick-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: static; 
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.nav-button:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Legal Sections */
.legal-section {
    padding: 60px 0;
}

.legal-section:nth-child(odd) {
    background: #fafafa;
}

.legal-section:nth-child(even) {
    background: white;
}

/* Legal Cards */
.legal-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    max-width: 900px;
    margin: 0 auto;
}

.section-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.legal-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* Legal Content */
.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.legal-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-top: 20px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 12px 0 20px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 8px;
}

.legal-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

.legal-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box.success {
    background: #f0fdf4;
    border-left-color: #10b981;
    border-color: #d1fae5;
}

.info-box.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    border-color: #fde68a;
}

.info-box h4 {
    margin-top: 0;
    color: #1f2937;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box .box-note {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.warning-box h3 {
    color: #991b1b;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: none;
    font-size: 20px;
}

.warning-text {
    color: #7f1d1d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Highlight Box */
.highlight {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: #1e40af;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.right-item {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}

/* Browser Links */
.browser-links {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.browser-links ul {
    margin-bottom: 0;
}

.browser-links li {
    font-size: 14px;
    color: #4b5563;
}

/* License Box */
.license-box {
    background: white;
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-label {
    font-size: 14px;
}

.badge-version {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.license-box h4 {
    color: #1f2937;
    margin-top: 0;
}

.license-details {
    margin: 20px 0;
}

.license-details p {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    margin-top: 16px;
}

.license-details ul {
    margin-top: 8px;
}

.license-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Citation Box */
.citation-box {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
}

.citation-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Fix: Make footer always sit at bottom */

/* Body becomes a flex container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content grows to fill space, pushing footer down */
.search-hero {
    flex: 1 0 auto;
}

/* Fix: Make footer always sit at bottom */

/* Body becomes a flex container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content grows to fill space, pushing footer down */
.search-hero {
    flex: 1 0 auto;
}

/* Simple Footer stays at bottom */
.simple-footer {
    flex-shrink: 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: auto;
}

.footer-links {
    text-align: center;
    font-size: 14px;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer-links .separator {
    color: #d1d5db;
    margin: 0 12px;
}

.footer-links .copyright {
    color: #6b7280;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    .footer-links {
        font-size: 13px;
    }
    
    .footer-links .separator {
        margin: 0 8px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-card {
        padding: 36px;
    }

    .legal-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 0 30px;
    }

    .legal-hero h1 {
        font-size: 36px;
    }

    .legal-hero .subtitle {
        font-size: 18px;
    }

    .quick-nav {
        top: 73px;
        padding: 16px 0;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .legal-section {
        padding: 40px 0;
    }

    .legal-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .legal-card h2 {
        font-size: 28px;
    }

    .legal-content h3 {
        font-size: 20px;
    }

    .legal-content h4 {
        font-size: 16px;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .license-box {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 28px;
    }

    .legal-hero .subtitle {
        font-size: 16px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-button {
        text-align: center;
    }

    .legal-card {
        padding: 20px 16px;
    }

    .section-icon {
        font-size: 36px;
    }

    .legal-card h2 {
        font-size: 24px;
    }

    .legal-content h3 {
        font-size: 18px;
    }

    .info-box,
    .warning-box,
    .license-box {
        padding: 16px;
    }

    .citation-box {
        padding: 16px;
    }

    .citation-box p {
        font-size: 12px;
    }
}
