/* ==========================================================================
   1. RESET, VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    --primary-color: #e31c25;       /* Vermelho oficial Kibocada */
    --secondary-color: #2c348c;     /* Azul institucional */
    --dark-color: #2b2b2b;          /* Texto escuro padrão */
    --light-color: #f4f4f4;         /* Fundos claros */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 4rem 0;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. CABEÇALHO GLOBAL EM 2 LINHAS (PADRÃO PARA TODAS AS PÁGINAS)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* Container do lado direito */
.top-bar-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

/* Linha 1: Links pequenos superiores */
.top-bar-links {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
}

.top-bar-links a {
    text-decoration: none;
    color: #777;
    transition: var(--transition);
}

.top-bar-links a:hover {
    color: var(--primary-color);
}

.search-icon-btn {
    color: var(--dark-color) !important;
    font-size: 0.9rem;
}

/* Linha 2: Menu Principal Inferior */
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-list a {
    text-decoration: none;
    color: #e31c25;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-list a:hover {
    background-color: #f4f4f4;
}

/* Destaque em bloco vermelho sólido para a página selecionada */
.nav-list a.active {
    background-color: #e31c25;
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================================================
   3. BANNERS INTERNOS E BREADCRUMBS
   ========================================================================== */
.breadcrumb-banner {
    background-color: #d91a21;
    color: var(--white);
    padding: 1.5rem 0;
}

.breadcrumb-path {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.breadcrumb-banner h1 {
    font-size: 1.8rem;
    font-weight: 400;
}

/* ==========================================================================
   4. COMPONENTES REUTILIZÁVEIS DA HOME E TIMELINE
   ========================================================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight-item h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #0c1c54;
    font-weight: 500;
}

.highlight-item h2 strong {
    font-weight: 800;
}

.banner-border {
    border: 1px solid #e0e0e0;
}

.highlight-item .responsive-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.highlight-item {
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Seção Baixe Nosso Aplicativo */
.app-section {
    background-color: #ffffff;
    padding: 3rem 0 0 0;
    overflow: hidden;
}

.app-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
}

.app-text-content {
    padding-bottom: 3rem;
}

.app-title {
    color: #e31c25;
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.app-subtitle {
    font-size: 1.4rem;
    color: #0c1c54;
    font-weight: 700;
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-img {
    height: 48px;
    width: auto;
}

/* Linha do tempo (Institucional) */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-container::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 4px; background: var(--border-color); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-badge { position: absolute; left: 0; top: 0; width: 84px; height: 36px; background-color: var(--primary-color); color: var(--white); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.timeline-panel { margin-left: 115px; background: var(--light-color); padding: 1.5rem 2rem; border-radius: 6px; border-left: 4px solid var(--primary-color); }

/* ==========================================================================
   5. RODAPÉ ESTENDIDO VERMELHO E FLATS (OBRIGATÓRIO EM TODAS AS PÁGINAS)
   ========================================================================== */
.newsletter-extended {
    background-color: #d91a21;
    color: var(--white);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.extended-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.newsletter-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.newsletter-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form-flat {
    display: flex;
    max-width: 360px;
}

.newsletter-form-flat input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    color: #333;
}

.newsletter-form-flat button {
    background-color: #2c348c;
    color: #ffffff;
    border: none;
    padding: 0 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-flat button:hover {
    background-color: #232a6b;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.links-column a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0.9;
}

.links-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-flat {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 1.25rem 0;
    font-size: 0.8rem;
}

/* ==========================================================================
   6. RESPONSIVIDADE ADAPTADA MÓVEL
   ========================================================================== */
@media (max-width: 992px) {
    .app-title { font-size: 3.5rem; }
    .header-container { flex-direction: column; gap: 1rem; }
    .top-bar-menu { align-items: center; }
}

@media (max-width: 768px) {
    .top-bar-links { display: none; }
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 130px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { display: block; }
    .nav-list { flex-direction: column; padding: 1.5rem 5%; gap: 1rem; }
    .nav-list a { display: block; padding: 0.5rem 0; }
    .app-grid { grid-template-columns: 1fr; text-align: center; }
    .store-buttons { justify-content: center; }
    .app-text-content { padding-bottom: 0; }
    .extended-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .newsletter-form-flat { margin: 0 auto; }
}
/* ==========================================================================
   7. PÁGINA: CONTATO
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 0; }
.contact-form-wrapper { order: 1; }
.contact-info { order: 2; }
.contact-info h3, .contact-form-wrapper h3 { margin-bottom: 1.5rem; font-size: 1.6rem; color: var(--primary-color); }
.contact-info iframe { width: 100%; height: 320px; border: 0; border-radius: 8px; margin-bottom: 1.5rem; }
.contact-info-list { list-style: none; }
.contact-info-list li { margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-list i { color: var(--secondary-color); font-size: 1.3rem; margin-top: 0.2rem; }
.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; color: var(--dark-color); }
.form-group input, .form-group select, .form-group textarea { padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; width: 100%; }
.form-group textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ==========================================================================
   8. PÁGINA: PRODUTOS
   ========================================================================== */
.product-intro { max-width: 800px; margin: 0 auto 3rem auto; text-align: center; }
.products-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.product-item { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.product-item:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.1); transform: translateY(-3px); }
.product-thumb { width: 100%; height: 220px; background-color: #fafafa; display: flex; align-items: center; justify-content: center; position: relative; }
.product-thumb img { max-width: 85%; max-height: 85%; object-fit: contain; }
.brand-tag { position: absolute; top: 10px; left: 10px; background-color: var(--secondary-color); color: var(--white); font-weight: bold; font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; }
.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.product-info h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--dark-color); }
.product-info p { font-size: 0.9rem; color: #666; margin-bottom: 1rem; flex-grow: 1; }
.quality-stamp { background-color: var(--light-color); font-weight: 600; font-size: 0.85rem; padding: 0.4rem; border-radius: 4px; color: var(--primary-color); }

/* ==========================================================================
   9. PÁGINA: RECEITAS
   ========================================================================== */
.recipes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; padding: 3rem 0; }
.recipe-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.recipe-thumb { width: 100%; height: 200px; background-color: #eee; position: relative; }
.recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recipe-tag { position: absolute; bottom: 15px; left: 15px; background-color: var(--primary-color); color: var(--white); font-weight: bold; font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 4px; text-transform: uppercase; }
.recipe-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.recipe-info h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--dark-color); }
.recipe-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: #666; margin-bottom: 1rem; border-bottom: 1px dashed var(--border-color); padding-bottom: 0.8rem; }
.recipe-meta i { color: var(--secondary-color); }
.ingredients-highlight { background-color: #eef0fb; padding: 0.8rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.9rem; border-left: 3px solid var(--secondary-color); }
.ingredients-highlight strong { color: var(--primary-color); }
.recipe-btn { text-align: center; margin-top: auto; background-color: var(--dark-color); color: var(--white); padding: 0.7rem; text-decoration: none; border-radius: 4px; font-weight: 600; transition: var(--transition); display: block; }
.recipe-btn:hover { background-color: var(--primary-color); }

/* ==========================================================================
   10. BANNER DE TÍTULO INTERNO E TEXTO DESTACADO
   ========================================================================== */
.page-title-banner {
    background-color: var(--light-color);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-title-banner h1 {
    font-size: 2.4rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.fancy-text {
    font-size: 1.15rem;
    color: #555;
}

.fancy-text span {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   11. PÁGINA: LOJAS (CARDS DE UNIDADES)
   ========================================================================== */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.6rem;
}

.card p i {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

.icon-card {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #b31218;
    color: var(--white);
}

/* ==========================================================================
   12. PÁGINA: CLUBE DE VANTAGENS
   ========================================================================== */
.club-banner-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.club-main-img {
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.club-content-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.club-content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.club-content-section h3 {
    color: var(--primary-color);
    margin: 1.75rem 0 0.5rem;
    font-size: 1.15rem;
}

.club-content-section p {
    margin-bottom: 1rem;
    color: #444;
}

.button-container {
    margin-top: 2rem;
}

.btn-action-register {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: var(--transition);
}

.btn-action-register:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form-wrapper {
    width: 100%;
}

/* ==========================================================================
   13. RESPONSIVIDADE DOS COMPONENTES ADICIONAIS
   ========================================================================== */
@media (max-width: 768px) {
    .page-title-banner h1 { font-size: 1.8rem; }
    .fancy-text { font-size: 1rem; }
}

/* ==========================================================================
   14. MODAL (JANELA FLUTUANTE) DE MODO DE PREPARO
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--white);
    border-radius: 10px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: #b31218;
}

.modal-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.modal h2 {
    font-size: 1.7rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.modal h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.modal-meta i {
    color: var(--secondary-color);
    margin-right: 0.2rem;
}

.modal-ingredients,
.modal-steps {
    margin-left: 1.2rem;
    color: #444;
}

.modal-ingredients li,
.modal-steps li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   15. PÁGINA: INSTITUCIONAL (CONTEÚDO REAL)
   ========================================================================== */
.history-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #444;
}

.reason-item h2 {
    font-size: 1.15rem;
    color: #0c1c54;
    margin-bottom: 0.8rem;
}

.reason-item p {
    color: #555;
}

/* ==========================================================================
   16. ANIMAÇÕES DE ENTRADA (REVEAL NO CARREGAMENTO)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variação com zoom suave (para imagens de destaque) */
.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Efeito cascata nos banners da home */
.highlights-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.highlights-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   17. BUSCA DO SITE (OVERLAY DE PESQUISA)
   ========================================================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 3000;
    padding: 12vh 1rem 1rem;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    background: var(--white);
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.search-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-close:hover {
    background: #b31218;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-results {
    margin-top: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-result {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 4px;
    border-bottom: 1px solid var(--light-color);
    transition: var(--transition);
}

.search-result:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.search-empty {
    color: #888;
    padding: 0.75rem 1rem;
}

/* ==========================================================================
   18. MODAL DO JORNAL DE OFERTAS (zoom + pan)
   ========================================================================== */
.jornal-modal {
    max-width: 1100px;
    padding: 1rem;
}

.jornal-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
}

.jornal-zoom-controls button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.jornal-zoom-controls button:hover {
    background-color: #b31218;
}

.jornal-zoom-controls span {
    min-width: 52px;
    text-align: center;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.85rem;
}

.jornal-viewport {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #fafafa;
    border-radius: 6px;
    touch-action: none;
}

.jornal-modal-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.jornal-modal-img.is-zoomed {
    cursor: grab;
}

.jornal-modal-img.is-dragging {
    cursor: grabbing;
}

.jornal-modal.fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

.jornal-modal.fullscreen .jornal-viewport {
    height: calc(100vh - 5rem);
}

/* ==========================================================================
   19. RODAPÉ: COPYRIGHT + CRÉDITO NA MESMA LINHA
   ========================================================================== */
.footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-credit a {
    text-decoration: none;
}

.dev-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin-left: 0.4rem;
}

/* ==========================================================================
   20. TERMOS DE USO (BALÃO DE CONSENTIMENTO)
   ========================================================================== */
.terms-banner {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    padding: 1.25rem 1.25rem 1rem;
    z-index: 2500;
    display: none;
}

.terms-banner.active {
    display: block;
}

.terms-banner p {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 1rem;
}

.terms-banner p a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.terms-banner-actions {
    text-align: right;
}

.terms-modal {
    max-width: 640px;
}

.terms-modal h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.terms-text {
    max-height: 55vh;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    padding-right: 0.5rem;
}

.terms-text h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 1rem 0 0.4rem;
}

.terms-text p {
    margin-bottom: 0.6rem;
}

.terms-modal-actions {
    margin-top: 1.25rem;
    text-align: right;
}

@media (max-width: 768px) {
    .terms-banner {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}