/* Container geral */
.container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Título */
.container h1 {
    text-align: center;
    color: #2c3e50;
}

/* Parágrafo explicativo */
.container p {
    margin-top: 16px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Estilo da tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-family: Arial, sans-serif;
}

th, td {
    padding: 14px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #3498db;
    color: #fff;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* Nota rodapé */
.container p:last-of-type {
    margin-top: 24px;
    color: #888;
    font-size: 0.875rem;
}

/* ========================
   RESPONSIVIDADE
======================== */
@media (max-width: 600px) {
    /* Remove borda da tabela para evitar duplicidade visual */
    table {
        border: none;
    }

    /* Esconde cabeçalho da tabela */
    thead {
        display: none;
    }

    /* Cada linha vira um card */
    tr {
        display: block;
        margin-bottom: 15px;
        background-color: #f9f9f9;
        border-radius: 6px;
        padding: 12px 16px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    /* Células ficam flexíveis para rótulo e valor */
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        position: relative;
        font-size: 0.95rem;
    }

    /* Última célula sem borda */
    td:last-child {
        border-bottom: none;
    }

    /* Rótulo antes do valor, usando data-label */
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #3498db;
        flex-basis: 45%;
        text-transform: none;
    }
}
