/**
 * Estilos Públicos: Termos de Uso & Política de Privacidade
 * Plataforma de Assinatura Eletrônica e Digital
 */

body.pagina-legal {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho Fixo */
.header-legal {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Card Principal do Documento */
.card-legal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Navegação tipo Pílula */
.nav-legal-pills .nav-link {
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.nav-legal-pills .nav-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

.nav-legal-pills .nav-link.active {
    background-color: var(--cor-primaria, #0062ff);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 98, 255, 0.25);
}

/* Tipografia e Conteúdo Rico */
.conteudo-legal {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}

.conteudo-legal h1,
.conteudo-legal h2,
.conteudo-legal h3,
.conteudo-legal h4,
.conteudo-legal h5,
.conteudo-legal h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.conteudo-legal h1 {
    font-size: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.conteudo-legal h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.conteudo-legal h3 {
    font-size: 1.15rem;
}

.conteudo-legal h4 {
    font-size: 1.05rem;
}

.conteudo-legal p {
    margin-bottom: 1rem;
}

.conteudo-legal ul,
.conteudo-legal ol {
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
}

.conteudo-legal li {
    margin-bottom: 0.5rem;
}

.conteudo-legal strong,
.conteudo-legal b {
    color: #1e293b;
    font-weight: 600;
}

.conteudo-legal a {
    color: var(--cor-primaria, #0062ff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.conteudo-legal a:hover {
    color: var(--cor-primaria-hover, #0050d0);
}

.conteudo-legal table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.conteudo-legal th,
.conteudo-legal td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
}

.conteudo-legal th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.conteudo-legal blockquote {
    border-left: 4px solid var(--cor-primaria, #0062ff);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #f8fafc;
    color: #64748b;
    border-radius: 0 8px 8px 0;
}

/* Botões Customizados */
.btn-primario {
    background-color: var(--cor-primaria, #0062ff) !important;
    border-color: var(--cor-primaria, #0062ff) !important;
    color: #ffffff !important;
}

.btn-primario:hover {
    filter: brightness(0.92);
}

/* Estilos de Impressão */
@media print {
    .header-legal,
    .footer-legal,
    .nav-legal-wrapper,
    .btn-print-hide {
        display: none !important;
    }
    body.pagina-legal {
        background: #ffffff !important;
    }
    .card-legal {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
