/* Container principal dos termos */
.terms {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 16px;
    background-color: #ffffff;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Para quando os termos forem exibidos em fundo cinza do site */
.terms-wrapper {
    padding: 16px;
    background-color: #f5f5f5;
}

/* Títulos principais */
.terms h1 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

/* Subtítulos de seção */
.terms h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 8px;
    padding-top: 8px;
    border-top: 1px solid #e1e1e1;
}

/* Títulos internos (sub-seções) */
.terms h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 6px;
}

/* Parágrafos */
.terms p {
    margin: 6px 0 10px;
    text-align: justify;
}

/* Listas (ul/ol) */
.terms ul,
.terms ol {
    margin: 4px 0 10px 22px;
    padding-left: 16px;
}

.terms ul li,
.terms ol li {
    margin-bottom: 4px;
}

/* Links */
.terms a {
    color: #004b9a;
    text-decoration: underline;
}

.terms a:hover,
.terms a:focus {
    text-decoration: none;
}

/* Destaques neutros dentro do texto */
.terms strong {
    font-weight: 600;
}

/* Espaçamento extra entre blocos finais (contatos, litígios, etc.) */
.terms h2:last-of-type,
.terms h3:last-of-type {
    margin-top: 28px;
}

/* Pequeno ajuste responsivo para telas menores */
@media (max-width: 600px) {
    .terms {
        padding: 16px 12px;
        font-size: 13px;
    }

    .terms h1 {
        font-size: 18px;
    }

    .terms h2 {
        font-size: 15px;
    }
}

.terms table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    background: #fff;
}

.terms table thead th {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e0e0e0;
}

.terms table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
}

.terms table tbody tr:last-child td {
    border-bottom: none;
}

.terms table tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* Melhor leitura em dispositivos móveis */
@media (max-width: 600px) {
    .terms table {
        font-size: 14px;
    }

    .terms table thead {
        display: none; /* Oculta head em mobile — estilo stack */
    }

    .terms table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff !important;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        padding: 8px 10px;
    }

    .terms table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 4px;
        border-bottom: none !important;
    }

    .terms table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        margin-right: 10px;
    }
}