/**
 * termo-de-uso.css
 * Estilos para as páginas de Termos de Uso e Política de Privacidade
 */

/* Layout geral */
.display-4 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Badge customizado */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 0.375rem;
}

/* Conteúdo do termo de uso */
.termo-de-uso-content,
.privacidade-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #2c3e50;
}

/* Boxes de definição (★) */
.definition-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.definition-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.definition-box strong {
    color: #0d6efd;
    font-size: 1.05rem;
}

/* Listas estilizadas */
.list-styled {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.list-styled li {
    counter-increment: item;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.list-styled li:before {
    content: counter(item, upper-roman) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.1rem;
}

.termo-de-uso-content h1,
.privacidade-content h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: #1a252f;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.termo-de-uso-content h2,
.privacidade-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: #1a252f;
}

.termo-de-uso-content h3,
.privacidade-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
    color: #2c3e50;
}

.termo-de-uso-content h4,
.privacidade-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.termo-de-uso-content p,
.privacidade-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.termo-de-uso-content ul,
.termo-de-uso-content ol,
.privacidade-content ul,
.privacidade-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.termo-de-uso-content li,
.privacidade-content li {
    margin-bottom: 0.5rem;
}

.termo-de-uso-content a,
.privacidade-content a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.termo-de-uso-content a:hover,
.privacidade-content a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.termo-de-uso-content strong,
.privacidade-content strong {
    font-weight: 600;
    color: #1a252f;
}

.termo-de-uso-content blockquote,
.privacidade-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0.25rem;
}

.termo-de-uso-content table,
.privacidade-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.termo-de-uso-content table th,
.termo-de-uso-content table td,
.privacidade-content table th,
.privacidade-content table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.termo-de-uso-content table th,
.privacidade-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Cards de informações */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Alertas customizados */
.alert {
    border-radius: 0.5rem;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Botões */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Separador visual */
hr {
    border: 0;
    border-top: 2px solid #dee2e6;
    opacity: 0.5;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Estilo para impressão */
@media print {
    .btn, .alert, .badge, nav, footer {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .termo-de-uso-content,
    .privacidade-content {
        font-size: 11pt;
        line-height: 1.6;
    }
    
    .termo-de-uso-content h1,
    .privacidade-content h1 {
        page-break-after: avoid;
        font-size: 18pt;
    }
    
    .termo-de-uso-content h2,
    .privacidade-content h2 {
        page-break-after: avoid;
        font-size: 16pt;
    }
    
    .termo-de-uso-content p,
    .privacidade-content p {
        page-break-inside: avoid;
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .termo-de-uso-content,
    .privacidade-content {
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

/* Estilo para scrollbar (navegadores webkit) */
.termo-de-uso-content::-webkit-scrollbar,
.privacidade-content::-webkit-scrollbar {
    width: 8px;
}

.termo-de-uso-content::-webkit-scrollbar-track,
.privacidade-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.termo-de-uso-content::-webkit-scrollbar-thumb,
.privacidade-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.termo-de-uso-content::-webkit-scrollbar-thumb:hover,
.privacidade-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Destaque de seções (usado pelo JS) */
.highlight-section {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(13, 110, 253, 0.1);
    }
}

/* Indicador de leitura */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    z-index: 9999;
    transition: width 0.1s ease;
}

