/* ==========================================================================
   Termos Style - Otimizado para visualização em Telas Grandes (TV 32'')
   404 Criativo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Montserrat:wght@700&display=swap');

:root {
    --primary-white: #ffffff;
    --text-dark-gray: #333333;
    --highlight-orange: #FF6600;
    --light-gray: #f4f4f4;
    --medium-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.6;
    color: var(--text-dark-gray);
    background-color: #f0f2f5; /* Fundo levemente mais escuro para destacar o "float" */
}

/* ==========================================================================
   Estrutura do Card Flutuante (Altura Reduzida)
   ========================================================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;    
    justify-content: center;
    padding: 20px; /* Margem de respiro para garantir que a caixa nunca encoste no topo/base */
    box-sizing: border-box;
}

.termos-box {
    background: var(--primary-white);
    padding: 30px 40px;
    border-radius: 16px; /* Bordas mais arredondadas para reforçar o visual moderno */
    /* Sombra mais profunda para garantir o efeito flutuante em telas de alta luminosidade */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    width: 100%;
    max-width: 750px;
    /* Define uma altura máxima para o card inteiro, forçando-o a ser compacto */
    max-height: 120vh; 
    text-align: center;
    display: flex;
    flex-direction: column;
}

.login-logo img {
    height: auto;
    width: 160px; 
    margin: 0 auto 15px auto;
    display: block;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.subtitle-login {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 20px;
    display: block;
}

/* ==========================================================================
   Área de Conteúdo (Reduzida para Visualização Compacta)
   ========================================================================== */

.termos-content-scroll {
    background-color: var(--light-gray);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    /* Altura reduzida para que o card caiba confortavelmente em 768px de altura (padrão 32'') */
    max-height: 300px; 
    overflow-y: auto;
    text-align: justify;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--medium-gray) transparent;
}

/* Estilização da barra de rolagem */
.termos-content-scroll::-webkit-scrollbar {
    width: 6px;
}
.termos-content-scroll::-webkit-scrollbar-thumb {
    background-color: var(--medium-gray);
    border-radius: 10px;
}

.termos-content-scroll h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--highlight-orange);
    font-size: 1em;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
}

.termos-content-scroll p, 
.termos-content-scroll li {
    font-size: 0.85em;
    color: #444;
}

/* ==========================================================================
   Rodapé e Botões
   ========================================================================== */

.login-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.login-footer a {
    color: var(--text-dark-gray);
    font-weight: bold;
}

.login-footer a:hover {
    color: var(--highlight-orange);
}

.link-hover-simple {
    font-size: 0.85em;
    color: #888;
    font-weight: bold;
    text-decoration: none;
}

.btn-header {
    background-color: var(--highlight-orange);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 480px) {
    .termos-box {
        padding: 20px;
        max-height: 95vh;
    }
    .termos-content-scroll {
        max-height: 50vh;
    }
}