/* Legal pages common styles */
.legal-container { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
.legal-header { margin-bottom: 40px; text-align: center; }
.legal-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 3px; margin-bottom: 12px; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.3); }
.legal-subtitle { color: #aaa; font-size: 16px; }
.legal-updated { color: #666; font-size: 13px; margin-top: 8px; }

.legal-content { background: #1a1a1a; border-radius: 12px; border: 1px solid #333; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }

.legal-section { margin-bottom: 32px; }
.legal-section:last-child { margin-bottom: 0; }

.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; color: #ffeb3b; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #333; }

.legal-text { color: #ccc; line-height: 1.8; font-size: 15px; }
.legal-text p { margin-bottom: 16px; }
.legal-text ul, .legal-text ol { margin: 16px 0; padding-left: 24px; }
.legal-text li { margin-bottom: 10px; }
.legal-text strong { color: #fff; }
.legal-text a { color: #ffeb3b; text-decoration: none; }
.legal-text a:hover { text-decoration: underline; }
.legal-text code { background: #252525; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #ffeb3b; }

.legal-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.legal-nav a { padding: 10px 20px; background: #252525; border-radius: 8px; color: #fff !important; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.legal-nav a:hover { background: #333; }
.legal-nav a.active { background: #fff; color: #000 !important; font-weight: bold; }

.license-card { background: #252525; border-radius: 10px; padding: 20px; margin: 16px 0; border-left: 4px solid #ffeb3b; }
.license-card.green { border-left-color: #22c55e; }
.license-card.blue { border-left-color: #3b82f6; }
.license-card.purple { border-left-color: #a855f7; }
.license-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: #fff; margin-bottom: 10px; }
.license-card p { color: #aaa; font-size: 14px; margin: 0; }
.license-card ul { margin: 10px 0 0 0; padding-left: 20px; }
.license-card li { color: #aaa; font-size: 14px; margin-bottom: 6px; }

.data-card { background: #252525; border-radius: 10px; padding: 20px; margin: 16px 0; border-left: 4px solid #3b82f6; }
.data-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: #fff; margin-bottom: 10px; }
.data-card p { color: #aaa; font-size: 14px; margin: 0; }
.data-card ul { margin: 10px 0 0 0; padding-left: 20px; }
.data-card li { color: #aaa; font-size: 14px; margin-bottom: 6px; }

.warning-box { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.warning-box strong { color: #ef4444; }

.info-box { background: rgba(59, 130, 246, 0.1); border: 1px solid #3b82f6; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.info-box strong { color: #3b82f6; }

.comparison-note { background: rgba(255, 235, 59, 0.1); border: 1px solid #ffeb3b; border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.comparison-note strong { color: #ffeb3b; }

/* Licenses page specific */
.license-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.license-tab { padding: 12px 24px; background: #252525; border-radius: 8px; color: #aaa; text-decoration: none; font-size: 14px; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
.license-tab:hover { background: #333; color: #fff; }
.license-tab.active { background: #ffeb3b; color: #000; font-weight: bold; }

.license-content { display: none; }
.license-content.active { display: block; animation: fadeIn 0.3s ease; }

.license-card-full { background: #1a1a1a; border-radius: 12px; border: 1px solid #333; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); margin-bottom: 24px; }

.license-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.license-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.license-icon.yellow { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.license-icon.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.license-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.license-icon.purple { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); }
.license-icon.orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

.license-header-info h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; color: #fff; margin-bottom: 4px; }
.license-header-info .price-range { color: #ffeb3b; font-size: 14px; }

.license-section { margin-bottom: 24px; }
.license-section:last-child { margin-bottom: 0; }
.license-section h3 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: #ffeb3b; margin-bottom: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.feature-item { background: #252525; padding: 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.feature-item.allowed { border-left: 3px solid #22c55e; }
.feature-item.limited { border-left: 3px solid #f59e0b; }
.feature-item.forbidden { border-left: 3px solid #ef4444; }
.feature-item span { font-size: 14px; color: #ccc; }
.feature-item .icon { font-size: 18px; }

/* FAQ page specific */
.faq-container { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.faq-header { margin-bottom: 40px; text-align: center; }
.faq-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 3px; margin-bottom: 12px; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.3); }
.faq-subtitle { color: #aaa; font-size: 16px; }
.faq-updated { color: #666; font-size: 13px; margin-top: 8px; }

.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.faq-categories { background: #1a1a1a; border-radius: 12px; border: 1px solid #333; padding: 20px; position: sticky; top: 100px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.categories-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #333; font-weight: bold; }
.category-item { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; margin-bottom: 6px; border: 1px solid transparent; }
.category-item:hover { background: #252525; }
.category-item.active { background: linear-gradient(135deg, #1a4d2e 0%, #0d2818 100%); border-color: #22c55e; box-shadow: 0 0 15px rgba(34, 197, 94, 0.2); }
.category-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #252525; border-radius: 8px; flex-shrink: 0; }
.category-icon svg { width: 18px; height: 18px; fill: #888; }
.category-item.active .category-icon { background: rgba(34, 197, 94, 0.2); }
.category-item.active .category-icon svg { fill: #22c55e; }
.category-info { flex: 1; min-width: 0; }
.category-name { font-weight: 500; font-size: 14px; color: #fff; margin-bottom: 2px; }
.category-count { font-size: 11px; color: #666; }

.faq-questions { background: #1a1a1a; border-radius: 12px; border: 1px solid #333; padding: 28px; min-height: 500px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.questions-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid #333; }
.questions-icon { width: 40px; height: 40px; background: #252525; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.questions-icon svg { width: 22px; height: 22px; fill: #fff; }
.questions-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; color: #fff; }

.faq-item { border: 1px solid #333; border-radius: 10px; margin-bottom: 10px; overflow: hidden; transition: all 0.2s; background: #151515; }
.faq-item:hover { border-color: #444; }
.faq-item.open { border-color: #22c55e; box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
.faq-question { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: all 0.2s; }
.faq-question:hover { background: #1a1a1a; }
.faq-question span { font-weight: 500; font-size: 15px; line-height: 1.5; color: #fff; }
.faq-toggle { width: 28px; height: 28px; border-radius: 6px; background: #252525; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.faq-toggle svg { width: 14px; height: 14px; fill: #888; transition: transform 0.2s; }
.faq-item.open .faq-toggle { background: #22c55e; }
.faq-item.open .faq-toggle svg { fill: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 1500px; }
.faq-answer-content { padding: 0 20px 20px 20px; color: #aaa; line-height: 1.8; font-size: 14px; }
.faq-answer-content p { margin-bottom: 12px; }
.faq-answer-content ul, .faq-answer-content ol { margin: 12px 0; padding-left: 24px; }
.faq-answer-content li { margin-bottom: 8px; }
.faq-answer-content strong { color: #fff; }
.faq-answer-content a { color: #22c55e !important; text-decoration: none !important; }
.faq-answer-content a:hover { text-decoration: underline !important; }
.faq-answer-content code { background: #252525; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #ffeb3b; }

.info-card { background: #252525; border-radius: 8px; padding: 16px; margin: 12px 0; border-left: 3px solid #3b82f6; }
.info-card.warning { border-left-color: #f59e0b; }
.info-card.success { border-left-color: #22c55e; }
.info-card.danger { border-left-color: #ef4444; }
.info-card strong { color: #fff; }

.category-section { display: none; }
.category-section.active { display: block; animation: fadeIn 0.25s ease; }

.faq-contact { margin-top: 32px; padding: 24px; background: linear-gradient(135deg, #1a4d2e 0%, #0d2818 100%); border-radius: 12px; border: 1px solid #22c55e; text-align: center; }
.faq-contact h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; color: #fff; }
.faq-contact p { color: #aaa; margin-bottom: 16px; font-size: 14px; }
.contact-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-buttons .btn { padding: 10px 20px; font-size: 12px; }

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

/* Responsive */
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-categories { position: relative; top: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
    .categories-title { display: none; }
    .category-item { flex-direction: column; min-width: 90px; text-align: center; padding: 10px 8px; margin-bottom: 0; }
    .category-info { text-align: center; }
    .category-name { font-size: 12px; }
    .category-count { display: none; }
    .faq-title { font-size: 32px; }
    .faq-container { padding: 20px 16px; }
}

@media (max-width: 600px) {
    .legal-container { padding: 20px 16px; }
    .legal-title { font-size: 32px; }
    .legal-content { padding: 20px; }
    .section-title { font-size: 20px; }
    .legal-text { font-size: 14px; }
    .legal-nav { gap: 8px; margin-top: 24px; }
    .legal-nav a { padding: 10px 14px; font-size: 13px; }
    .license-card-full { padding: 20px; }
    .license-header { flex-direction: column; text-align: center; }
    .license-header-info h2 { font-size: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .faq-questions { padding: 16px; }
    .faq-question { padding: 14px 16px; }
    .faq-question span { font-size: 14px; }
    .faq-answer-content { padding: 0 16px 16px 16px; font-size: 13px; }
    .questions-title { font-size: 22px; }
}
