/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body, html {
    width: 100%;
    min-height: 100%;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* FUNDO FIXO */
.background-pv {
    position: fixed;
    inset: 0;
    background: url("imagens/pv.jpeg") no-repeat center center/cover;
    z-index: -2;
}

.background-pv::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

/* WRAPPER PRINCIPAL */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* CARD DE POLÍTICAS */
.legal-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 85vh; /* Altura fixa para permitir scroll interno */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
    animation: cardEntrance 1.2s ease-out;
}

/* EFEITO DE BRILHO (GLOW) */
.glow-overlay {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 234, 255, 0.05), transparent 40%);
    animation: rotateGlow 12s linear infinite;
    pointer-events: none;
}

/* CABEÇALHO DO CARD */
.legal-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    padding-bottom: 20px;
}

.brand-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.brand-logo span { color: #00eaff; text-shadow: 0 0 10px #00eaff; }
.legal-header h2 { font-size: 1.2rem; opacity: 0.7; letter-spacing: 3px; text-transform: uppercase; }

/* ÁREA DE SCROLL PERSONALIZADA */
.legal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
}

/* Estilização da Scrollbar */
.legal-scroll-area::-webkit-scrollbar { width: 6px; }
.legal-scroll-area::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.legal-scroll-area::-webkit-scrollbar-thumb { background: #00eaff; border-radius: 10px; box-shadow: 0 0 10px #00eaff; }

/* SEÇÕES DE TEXTO */
.legal-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border-left: 3px solid #00eaff;
}

.legal-section h3 {
    color: #00eaff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section p { line-height: 1.6; opacity: 0.85; margin-bottom: 15px; }

.legal-section ul { list-style: none; padding-left: 5px; }
.legal-section ul li { margin-bottom: 10px; font-size: 0.95rem; opacity: 0.9; }
.legal-section ul li strong { color: #00eaff; }

/* LINKS E GRIDS */
.info-grid { display: grid; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.legal-link {
    color: #00eaff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #00eaff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s;
}
.legal-link:hover { background: #00eaff; color: #000; box-shadow: 0 0 15px #00eaff; }

/* RODAPÉ DO CARD */
.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.back-btn:hover { border-color: #00eaff; color: #00eaff; }

.card-footer p { font-size: 0.8rem; opacity: 0.4; }

/* ANIMAÇÕES */
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cardEntrance { 
    from { opacity: 0; transform: translateY(50px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .legal-card { padding: 20px; height: 90vh; }
    .card-footer { flex-direction: column; gap: 15px; }
}