/* =========================================================
   Estilos públicos compartilhados
   .ctp-*  => páginas de conteúdo (Sobre, Termos, Privacidade)
   Prefixo exclusivo para não conflitar com outras páginas.
   ========================================================= */

.ctp-page { background: #f4f7f9; padding-bottom: 3.5rem; }

/* Cabeçalho */
.ctp-hero {
    position: relative; overflow: hidden; color: #eaf6fb;
    background: linear-gradient(160deg, #00567C 0%, #023a54 100%);
    padding: 2.8rem 0 3rem;
}
.ctp-hero .ctp-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(120,200,230,.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(120,200,230,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
            mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
}
.ctp-hero .container { position: relative; z-index: 1; }
.ctp-hero .ctp-ic {
    width: 60px; height: 60px; border-radius: 17px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(160,220,245,.3); display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #bfeeff; margin-bottom: 1rem;
}
.ctp-hero h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0; }
.ctp-updated {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
    background: rgba(255,255,255,.14); border: 1px solid rgba(160,220,245,.3); backdrop-filter: blur(5px);
    color: #eaf6fb; font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 20px;
}

/* Cartão de conteúdo */
.ctp-wrap { max-width: 880px; margin: -2.2rem auto 0; position: relative; z-index: 2; }
.ctp-card {
    background: #fff; border: 1px solid #e7edf1; border-radius: 18px;
    box-shadow: 0 12px 40px rgba(16,33,51,.1); padding: clamp(1.4rem, 4vw, 3rem);
    animation: ctpUp .6s ease both;
}
@keyframes ctpUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Tipografia do conteúdo (HTML vindo do editor) */
.ctp-content { line-height: 1.85; font-size: 1.06rem; color: #243038; }
.ctp-content > :first-child { margin-top: 0; }
.ctp-content p { margin-bottom: 1.3rem; }
.ctp-content h1, .ctp-content h2, .ctp-content h3, .ctp-content h4 { color: #10303f; font-weight: 700; margin: 2rem 0 1rem; line-height: 1.3; }
.ctp-content h2 { font-size: 1.5rem; } .ctp-content h3 { font-size: 1.25rem; }
.ctp-content a { color: #1c8fc4; }
.ctp-content ul, .ctp-content ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.ctp-content li { margin-bottom: .5rem; }
.ctp-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.2rem 0; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.ctp-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.ctp-content th, .ctp-content td { border: 1px solid #e3e9ee; padding: .6rem .8rem; text-align: left; }
.ctp-content th { background: #f6f9fb; }
.ctp-content blockquote, .ctp-content .destaque { border-left: 4px solid #1c8fc4; background: #f1f7fa; margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; color: #34637b; }
.ctp-content .lgpd-box { background: #e7f7ed; border: 1px solid #b8e3c6; border-radius: 12px; padding: 1.4rem; margin: 1.6rem 0; }
.ctp-content .lgpd-box h3 { color: #1e7e34; margin-top: 0; }

/* Rodapé do cartão */
.ctp-foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #eef2f5; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ctp-foot .upd { color: #97a3ad; font-size: .85rem; font-style: italic; }
.ctp-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 12px; font-weight: 700; padding: .65rem 1.3rem; text-decoration: none; background: #fff; border: 1.5px solid #cdd9e1; color: #34637b; transition: all .15s; }
.ctp-btn:hover { border-color: #00567C; color: #00567C; }

@media (prefers-reduced-motion: reduce) { .ctp-card { animation: none; } }
