/* Privacy Section */
.legal-section {
    position: relative;
    padding: 40px 0 70px;
}

.paw-bg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    color: #f5a623;
}

.paw-large-1 { left: 2%; top: 5%; font-size: 85px; animation: float 8s ease-in-out infinite; }
.paw-large-2 { right: 3%; top: 15%; font-size: 95px; animation: float 9s ease-in-out infinite reverse; }
.paw-large-3 { left: 5%; bottom: 10%; font-size: 75px; animation: float 7s ease-in-out infinite; }
.paw-medium-1 { left: 12%; top: 30%; font-size: 50px; animation: float 5.5s ease-in-out infinite; }
.paw-medium-2 { right: 15%; bottom: 20%; font-size: 55px; animation: float 7s ease-in-out infinite reverse; }
.paw-small-1 { left: 20%; top: 60%; font-size: 32px; animation: float 4.5s ease-in-out infinite; }
.paw-small-2 { right: 10%; top: 45%; font-size: 28px; animation: float 5s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
}

.legal-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 25px;
    }
}

.legal-card h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 8px;
}

.legal-card .update-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.legal-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f1f;
    margin-top: 30px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid #f5a623;
    scroll-margin-top: 90px;
}

/* Texto dos documentos: 16px (corpo 12), o mínimo do CDC para contrato de adesão (art. 54, § 3º) */
.legal-card p {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 15px;
}

.legal-card ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

/* Resumo no topo do documento */
.legal-resumo {
    background: #fff8ec;
    border: 1px solid #f5d9a6;
    border-radius: 16px;
    padding: 18px 20px 6px;
    margin-bottom: 26px;
}
.legal-resumo strong { display: block; font-size: 16px; color: #1f1f1f; margin-bottom: 10px; }
.legal-card .legal-resumo ul { margin-bottom: 10px; }

/* Cláusulas que limitam direitos: em destaque, como pede o CDC (art. 54, § 4º) */
.legal-card .legal-destaque {
    font-weight: 600;
    color: #1f1f1f;
    background: #fff8ec;
    border-left: 4px solid #f5a623;
    border-radius: 8px;
    padding: 10px 14px;
}
.legal-card li.legal-destaque { list-style: none; margin-left: -25px; margin-top: 12px; margin-bottom: 12px; }

.legal-card ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-card li {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 8px;
}

.data-masked {
    background: #f0e8e2;
    padding: 2px 8px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    color: #f5a623;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #f5a623;
    color: #f5a623;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 25px;
}

.btn-back:hover {
    background: #f5a623;
    color: white;
}
/* Trechos que precisam ser preenchidos/confirmados antes do lançamento */
.pendente {
    background: #fff3cd;
    border: 1px dashed #e0a800;
    border-radius: 4px;
    padding: 0 4px;
    font-weight: 600;
}
.legal-card table { width: 100%; margin-bottom: 1rem; font-size: 15px; line-height: 1.5; color: #333; }
.legal-card th, .legal-card td { border-bottom: 1px solid #eee; padding: 8px; vertical-align: top; }
.legal-card th { color: #1f1f1f; }

/* Celular: a tabela de dados vira cartões empilhados (o dado em destaque e cada coluna com o próprio rótulo) */
@media (max-width: 575.98px) {
    .legal-card table, .legal-card tbody, .legal-card tr, .legal-card td { display: block; width: 100%; }
    .legal-card tr:first-child { display: none; }
    .legal-card tr { padding: 12px 0; border-bottom: 1px solid #eee; }
    .legal-card td { border: 0; padding: 2px 0; font-size: 15px; line-height: 1.5; color: #333; }
    .legal-card td:first-child { font-weight: 600; color: #1f1f1f; margin-bottom: 4px; }
    .legal-card td:nth-child(2)::before { content: "Quando: "; font-weight: 600; color: #8b7d6b; }
    .legal-card td:nth-child(3)::before { content: "Para quê: "; font-weight: 600; color: #8b7d6b; }
    .legal-card td:nth-child(4)::before { content: "Base legal: "; font-weight: 600; color: #8b7d6b; }
}
