/**
 * Melhorias de Responsividade Mobile e Visual da Seção LGPD
 */

/* ============================================
   SEÇÃO LGPD - DESIGN MODERNO
   ============================================ */

.lgpd-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.lgpd-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(58,14,255,0.03) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(50px) translateY(-30px); }
}

.lgpd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.lgpd-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(58,14,255,0.1);
}

.lgpd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.lgpd-card:hover::before {
  transform: scaleY(1);
}

.lgpd-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(58,14,255,0.15);
  border-color: var(--primary-color);
}

.lgpd-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lgpd-card h3 {
  font-size: 1.35rem;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.lgpd-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lgpd-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.lgpd-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-color-alt);
  line-height: 1.6;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lgpd-list li:last-child {
  border-bottom: none;
}

.lgpd-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.lgpd-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.lgpd-card a:hover {
  border-bottom-color: var(--primary-color);
}

/* ============================================
   MELHORIAS DE RESPONSIVIDADE MOBILE
   ============================================ */

/* Tablets e dispositivos menores */
@media (max-width: 1024px) {
  .lgpd-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .lgpd-section {
    padding: 60px 0;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  .lgpd-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .lgpd-card {
    padding: 28px 24px;
  }
  
  .lgpd-card i {
    font-size: 2.5rem;
  }
  
  .lgpd-card h3 {
    font-size: 1.2rem;
  }
  
  .lgpd-card p {
    font-size: 0.9rem;
  }
  
  .lgpd-list li {
    font-size: 0.85rem;
    padding-left: 25px;
  }
}

/* Mobile Extra Small */
@media (max-width: 480px) {
  .lgpd-section {
    padding: 50px 0;
  }
  
  .lgpd-card {
    padding: 24px 20px;
    border-radius: 15px;
  }
  
  .lgpd-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .lgpd-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .lgpd-list li {
    font-size: 0.82rem;
  }
}

/* ============================================
   MELHORIAS GERAIS DE RESPONSIVIDADE
   ============================================ */

/* Formulário Hero - Mobile */
@media (max-width: 768px) {
  .hero-form {
    padding: 25px 20px;
  }
  
  .hero-form .form-body {
    padding: 20px;
  }
  
  .form-group input,
  .form-group select {
    font-size: 16px; /* Evita zoom automático no iOS */
    padding: 14px;
  }
  
  .btn-submit {
    padding: 16px;
    font-size: 1rem;
  }
  
  .form-consent-text {
    font-size: 0.7rem;
  }
}

/* Grid de Benefícios - Mobile */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit-card {
    padding: 25px 20px;
  }
}

/* Seções de CTA - Mobile */
@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Header Mobile */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }
  
  /* Logos responsivas - ajuste fino mobile */
  .nav-logo.logo-amil img {
    max-height: 50px;
  }
  
  .nav-logo.logo-corretora img {
    max-height: 60px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 30px;
    transition: left 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  
  .nav-menu.is-active {
    left: 0;
  }
  
  .nav-link {
    padding: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--surface-border);
  }
}

/* Tipografia Responsiva */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }
}

/* Espaçamento Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 35px;
  }
}

/* Tabelas Responsivas */
@media (max-width: 768px) {
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 10px 8px;
  }
}

/* Melhorias de Toque para Mobile */
@media (hover: none) and (pointer: coarse) {
  button,
  .btn-submit,
  .btn-cta-primary,
  .btn-cta-secondary,
  a {
    min-height: 44px; /* Tamanho mínimo recomendado para toque */
    min-width: 44px;
  }
  
  .nav-link {
    padding: 15px 20px;
  }
}

/* Otimizações de Performance Mobile */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}
