/* Termos de uso e políticas de privacidade (templates/Politica) */

.termos {
    max-width: 900px;
    margin: 0 auto 40px;
    font-family: Calibri, 'IBM Plex Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}

.termos h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.termos h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    line-height: 1.3;
}

.termos p {
    text-align: justify;
    margin: 0 0 12px;
}

.termos .termos-versao {
    color: #666;
    margin-bottom: 20px;
}

.termos a {
    word-break: break-word;
}

.termos-tabela {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0 16px;
}

/* border-collapse: separate para o border-radius funcionar; as bordas internas
   ficam só à direita/embaixo de cada célula para não duplicar */
.termos-tabela table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #000;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
}

.termos-tabela th,
.termos-tabela td {
    border: 0;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.termos-tabela th:last-child,
.termos-tabela td:last-child {
    border-right: 0;
}

.termos-tabela tbody tr:last-child td {
    border-bottom: 0;
}

.termos-tabela th {
    background: var(--app-table-header, #eaeaf7);
    font-weight: 700;
}

@media (max-width: 600px) {
    .termos {
        font-size: 14px;
    }

    .termos h1 {
        font-size: 20px;
    }

    .termos h2 {
        font-size: 16px;
    }

    .termos p {
        text-align: left;
    }

    .termos-tabela table {
        min-width: 520px;
    }
}

@media print {
    .termos-tabela {
        overflow: visible;
    }

    .termos-tabela tr {
        page-break-inside: avoid;
    }
}
