/* =============================================
   PÁGINAS LEGAIS — GPHub
   Política de Privacidade | Termos | Cookies
   ============================================= */

.legal-page {
    background: #0a0a14;
    min-height: 100vh;
    padding-top: 90px; /* compensa navbar fixa */
    font-family: 'Poppins', sans-serif;
}

/* ── Hero da página ── */
.legal-hero {
    background: linear-gradient(160deg, #0d0d1a 0%, #111122 60%, #0a0a14 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, #f5d76e, #d4af37, transparent);
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 10px;
    line-height: 1.2;
}

.legal-hero h1 span { color: #d4af37; }

.legal-hero-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.legal-hero-meta i { color: #d4af37; }

/* ── Conteúdo ── */
.legal-content {
    padding: 56px 0 80px;
}

.legal-card {
    background: linear-gradient(160deg, #0d0d1a 0%, #111122 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 44px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37, transparent);
    border-radius: 3px 0 0 3px;
}

.legal-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section-title i {
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.legal-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul,
.legal-card ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-card li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-card strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.legal-card a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.legal-card a:hover { text-decoration: underline; }

/* ── Destaque de alerta ── */
.legal-alert {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.legal-alert i {
    color: #d4af37;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-alert p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.legal-alert-danger {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
}

.legal-alert-danger i { color: #f87171; }

.legal-alert-green {
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.2);
}

.legal-alert-green i { color: #4ade80; }

/* ── Sidebar de navegação ── */
.legal-nav {
    background: linear-gradient(160deg, #0d0d1a 0%, #111122 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.legal-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.legal-nav a i {
    font-size: 0.7rem;
    color: #d4af37;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.15);
    color: #f1f5f9;
}

.legal-nav a:hover i,
.legal-nav a.active i { opacity: 1; }

/* ── Outras páginas legais ── */
.legal-other-pages {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-other-pages .legal-nav-title { margin-bottom: 12px; }

/* ── Responsivo ── */
@media (max-width: 991px) {
    .legal-nav { position: static; margin-bottom: 24px; }
    .legal-card { padding: 28px 24px; }
}

@media (max-width: 576px) {
    .legal-card { padding: 22px 18px; }
    .legal-hero { padding: 40px 0 32px; }
}

/* ── Botão redefinir preferências de cookies ── */
#btnResetCookies {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    background: rgba(212,175,55,0.08);
    color: #d4af37;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
#btnResetCookies:hover {
    background: rgba(212,175,55,0.14);
}
#btnResetCookies.btn-reset--ok {
    color: #4ade80;
    border-color: rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.08);
}

/* ── Subtítulo dentro de .legal-card (h3) ── */
.legal-subsection-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 20px 0 10px;
}

/* ── Ícone de dica dentro de .legal-alert ── */
.legal-alert .legal-alert-icon--gold {
    color: #d4af37;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Texto de dica ── */
.legal-alert .legal-alert-dica strong {
    color: #d4af37;
}

/* ── legal-alert com margem superior (boost tip) ── */
.legal-alert--mt {
    margin-top: 16px;
}
