/* ============================================
   PAGE-LEGAL.CSS - Estilos das Páginas Legais
   ============================================ */

/* ============================================
   HERO SECTION - ESTILO EMPRESARIAL (AZUL)
   ============================================ */

/* Hero Section Principal */
.hero-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    max-height: 450px;
    display: flex;
    align-items: center;
}

/* SVG Empresarial de Fundo - Estilo Jogo da Velha */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 20 L60 20'/%3E%3Cpath d='M0 40 L60 40'/%3E%3Cpath d='M20 0 L20 60'/%3E%3Cpath d='M40 0 L40 60'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

/* SVG Secundário - X e O */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1.5'%3E%3Cpath d='M10 10 L50 50 M50 10 L10 50'/%3E%3Ccircle cx='90' cy='30' r='20'/%3E%3Cpath d='M70 70 L110 110 M110 70 L70 110'/%3E%3Ccircle cx='30' cy='90' r='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Container centralizado - 80% no desktop, 100% no mobile */
.hero-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Conteúdo do Hero */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #bfdbfe;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Título */
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

/* Descrição */
.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
    }
}

/* ============================================
   LEGAL SECTION
   ============================================ */

/* Legal Section */
.section-legal {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

/* Container centralizado - 80% no desktop, 100% no mobile */
.section-legal .container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 1024px) {
    .section-legal .container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .section-legal .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .badge {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-header .badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.section-header .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header .section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-header .section-title {
        font-size: 1.75rem;
    }
    
    .section-header .section-subtitle {
        font-size: 1rem;
    }
}

/* Wrapper do conteúdo - estilo formulário */
.form-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.legal-content strong {
    color: #111827;
    font-weight: 600;
}

.legal-content em {
    font-style: italic;
    color: #4b5563;
}

/* Data de atualização */
.legal-date {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .section-legal {
        padding: 3rem 0;
    }
    
    .section-legal .container {
        padding: 0 1rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .legal-content p,
    .legal-content ul,
    .legal-content ol {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-legal {
        padding: 2rem 0;
    }
    
    .section-header .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-header .section-title {
        font-size: 1.5rem;
    }
    
    .form-wrapper {
        padding: 1.25rem;
        border-radius: 0.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content h3 {
        font-size: 1.125rem;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
    .section-legal {
        padding: 2rem 0;
        background: #ffffff;
    }
    
    .section-legal .container {
        max-width: 100%;
    }
    
    .section-header .badge {
        display: none;
    }
    
    .legal-content {
        max-width: 100%;
    }
    
    .legal-content h2 {
        page-break-before: always;
    }
}