/**
 * Estilos para Páginas Legais - SuperAPP XTQ
 * Design moderno e profissional para Termos de Uso e Política de Privacidade
 */

.xtq-legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    line-height: 1.7;
    background: #ffffff;
}

/* Header */
.xtq-legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #4f46e5;
}

.xtq-legal-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.xtq-legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.xtq-legal-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.xtq-legal-date {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
}

/* Conteúdo */
.xtq-legal-content {
    background: #ffffff;
}

.xtq-legal-section {
    margin-bottom: 40px;
}

.xtq-legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.xtq-legal-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #374151;
    margin: 25px 0 15px;
}

.xtq-legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 20px 0 12px;
}

.xtq-legal-section p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #4b5563;
    text-align: justify;
}

.xtq-legal-section ul,
.xtq-legal-section ol {
    margin: 15px 0 20px 25px;
    padding-left: 15px;
}

.xtq-legal-section li {
    margin-bottom: 10px;
    color: #4b5563;
    line-height: 1.7;
}

.xtq-legal-section strong {
    color: #1f2937;
    font-weight: 600;
}

/* Tabelas */
.xtq-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.xtq-legal-table thead tr {
    background: #4f46e5;
    color: #ffffff;
    text-align: left;
}

.xtq-legal-table th,
.xtq-legal-table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
}

.xtq-legal-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.xtq-legal-table tbody tr:hover {
    background: #f3f4f6;
}

/* Boxes de Destaque */
.xtq-legal-highlight {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.xtq-legal-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.xtq-legal-important {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

/* Footer */
.xtq-legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.xtq-legal-contact {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.xtq-legal-contact h3 {
    color: #1f2937;
    margin-bottom: 15px;
}

.xtq-legal-contact p {
    margin: 8px 0;
    color: #4b5563;
}

.xtq-legal-contact a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.xtq-legal-contact a:hover {
    text-decoration: underline;
}

/* Botão de Voltar */
.xtq-legal-back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4f46e5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.xtq-legal-back-btn:hover,
.xtq-legal-back-btn:focus,
.xtq-legal-back-btn:active,
.xtq-legal-back-btn:visited {
    background: #4338ca !important;
    color: #ffffff !important; /* Garantir que texto continue branco no hover/focus/active */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    text-decoration: none !important; /* Remover sublinhado se houver */
    border: none;
}

/* Garantir que links dentro dos botões também mantenham texto branco */
.xtq-legal-back-btn * {
    color: #ffffff !important;
}

.xtq-legal-back-btn:hover *,
.xtq-legal-back-btn:focus *,
.xtq-legal-back-btn:active * {
    color: #ffffff !important;
}

/* Links */
a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Exceção: Links dentro de botões legais não devem herdar estilos de links normais */
.xtq-legal-back-btn,
.xtq-legal-back-btn:hover,
.xtq-legal-back-btn:focus,
.xtq-legal-back-btn:active,
.xtq-legal-back-btn:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .xtq-legal-container {
        padding: 30px 15px 60px;
    }
    
    .xtq-legal-title {
        font-size: 2rem;
    }
    
    .xtq-legal-section h2 {
        font-size: 1.5rem;
    }
    
    .xtq-legal-section h3 {
        font-size: 1.2rem;
    }
    
    .xtq-legal-section p,
    .xtq-legal-section li {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .xtq-legal-table {
        font-size: 0.85rem;
    }
    
    .xtq-legal-table th,
    .xtq-legal-table td {
        padding: 10px 8px;
    }
    
    .xtq-legal-highlight,
    .xtq-legal-warning,
    .xtq-legal-important {
        padding: 15px;
        margin: 20px 0;
    }
}

/* Print Styles */
@media print {
    .xtq-legal-container {
        max-width: 100%;
        padding: 0;
    }
    
    .xtq-legal-back-btn {
        display: none;
    }
    
    .xtq-legal-section {
        page-break-inside: avoid;
    }
}
