/* terms.css - Estilos específicos para a página de Termos e LGPD */

/* ===================================
   BASE DOS TERMOS - CONSISTENTE COM DOCUMENTAÇÃO
   =================================== */
.terms-wrapper {
    min-height: 100vh;
}

/* Header centralizado */
.terms-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.03) 0%, 
        rgba(236, 72, 153, 0.03) 50%,
        rgba(249, 115, 22, 0.03) 100%);
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 40px;
    text-align: center; /* Centralizado */
}

.terms-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.terms-header .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.terms-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center; /* Centralizado */
}

.terms-badges .badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Botões centralizados */
.terms-header .d-flex {
    justify-content: center; /* Centralizado */
}

/* ===================================
   CONTEÚDO PRINCIPAL - MESMO LAYOUT DA DOC
   =================================== */
.terms-main-content {
    padding: 0 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

/* Seções seguindo o mesmo padrão */
.terms-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.terms-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-border-color);
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.terms-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--bs-body-color);
}

/* CORRIGIDO: Removido margin-top do h4 */
.terms-section h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem; /* Apenas margin-bottom */
    color: var(--bs-body-color);
}

.terms-section p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--bs-body-color);
}

.terms-section ul, 
.terms-section ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.terms-section li {
    margin-bottom: 0.75rem;
    color: var(--bs-body-color);
}

.terms-section li strong {
    color: var(--primary);
}

/* ===================================
   COMPONENTES ESPECÍFICOS - SIMPLIFICADOS
   =================================== */

/* Alertas idênticos aos da documentação */
.terms-alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 20px;
    margin: 25px 0;
    background: var(--bs-body-bg);
}

.terms-alert .bi {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Cards seguindo o padrão da doc */
.law-card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.law-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.law-card-header .law-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    flex-shrink: 0;
}

.law-article {
    background: var(--bs-tertiary-bg);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.law-article .article-number {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* Tabelas com bordas - idênticas à documentação */
.terms-table {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bs-border-color); /* Borda externa */
    width: 100%;
    border-collapse: collapse; /* Para bordas internas consistentes */
}

.terms-table thead {
    background: rgba(147, 51, 234, 0.1);
}

.terms-table thead th {
    border-bottom: 2px solid rgba(147, 51, 234, 0.3);
    font-weight: 700;
    padding: 16px 20px;
    color: var(--bs-body-color);
    text-align: left;
    border-right: 1px solid var(--bs-border-color); /* Borda entre colunas */
}

.terms-table thead th:last-child {
    border-right: none; /* Remove borda da última coluna */
}

.terms-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--bs-border-color); /* Borda entre linhas */
}

.terms-table tbody tr:last-child {
    border-bottom: none; /* Remove borda da última linha */
}

.terms-table tbody tr:hover {
    background: rgba(147, 51, 234, 0.05);
}

.terms-table td {
    padding: 16px 20px;
    vertical-align: top;
    color: var(--bs-body-color);
    border-right: 1px solid var(--bs-border-color); /* Borda entre colunas */
}

.terms-table td:last-child {
    border-right: none; /* Remove borda da última coluna */
}

/* Cards de contato */
.contact-card {
    position: relative;
    padding-bottom: 70px; /* Espaço para o botão */
}

.contact-card .btn {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
}

/* ===================================
   RESPONSIVIDADE CONSISTENTE
   =================================== */
@media (max-width: 992px) {
    .terms-header {
        padding: 120px 0 40px;
        text-align: center;
    }
    
    .terms-badges {
        justify-content: center;
    }
    
    .terms-main-content {
        padding: 0 20px 60px;
    }
    
    .terms-section {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .terms-header {
        padding: 100px 0 30px;
    }
    
    .terms-section {
        margin-bottom: 40px;
    }
    
    .law-card {
        padding: 20px;
    }
    
    .terms-table {
        display: block;
        overflow-x: auto;
    }
    
    /* Ajusta bordas para mobile */
    .terms-table thead th,
    .terms-table td {
        border-right: 1px solid var(--bs-border-color);
    }
}