/* ============================================================
   ESTILO BASE (DESKTOP + MOBILE)
   ============================================================ */

body {
    margin: 0;
    padding: 0;
    font-family: Verdana;
}

/* Conteúdo centralizado e responsivo */
#centro {
    width: 100%;
    max-width: 800px;        /* mantém o layout do desktop */
    margin: 0 auto;
    position: relative;
    padding: 15px;           /* melhora a leitura no celular */
}

/* Tipografia geral */
td, span, a {
    font-family: Verdana;
    font-size: 14px;
    color: #4682B4;
    text-decoration: none;
    text-align: justify;
}

/* Títulos */
h1, h2, h3 {
    font-family: Verdana;
    color: #787878;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Inputs */
input {
    font-family: Verdana;
    font-size: 10pt;
    color: #787878;
}

/* Ícones */
.icone {
    border: 0px;
    width: 20px;
    height: 20px;
}

/* Botão padrão */
.button {
    appearance: none;
    transition: background-color 0.2s ease-in-out,
                color 0.2s ease-in-out,
                border-color 0.2s ease-in-out;
    background-color: transparent;
    border-radius: 0.35em;
    border: solid 3px #efefef;
    color: #787878 !important;
    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    height: calc(2.75em + 6px);
    line-height: 2.75em;
    min-width: 10em;
    padding: 0 1.5em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-family: Verdana;
}

/* ============================================================
   TABELAS — responsivas, seguras e compatíveis com layout antigo
   ============================================================ */

table {
    width: 100%;            /* ocupa a largura total */
    border-collapse: collapse;
}

table td {
    vertical-align: top;
    padding: 8px 5px;
}

/* wrapper para evitar que a tabela quebre no mobile */
.responsive-table {
    overflow-x: auto;
    display: block;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* ====== MOBILE até 600px ====== */
@media (max-width: 600px) {

    /* Aumenta legibilidade no celular */
    td, span, a {
        font-size: 4vw;    /* escala conforme a tela */
        line-height: 1.4;
    }

    h1, h2, h3 {
        font-size: 6vw;
        text-align: center;
    }

    /* Ajusta layout das tabelas antigas (duas colunas → empilhado) */
    table td {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    /* Melhora o espaçamento geral */
    #centro {
        padding: 15px;
        max-width: 100%;
    }

    /* Botão adaptado */
    .button {
        width: 100%;
        min-width: unset;
        margin-bottom: 10px;
    }
}

/* ====== Tablets (600–900px) ====== */
@media (min-width: 600px) and (max-width: 900px) {

    td, span, a {
        font-size: 16px;
    }

    h1, h2, h3 {
        font-size: 28px;
    }

    #centro {
        padding: 20px;
    }
}
