/* ===== ESTILOS ESPECÍFICOS DA PÁGINA DE POLÍTICAS ===== */

/* Reutilizando variáveis do projeto */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: clamp(1rem, 3vw, 1.5rem) 0;
  width: 100%;
}

.process-step {
  background: #f6fbf7;
  border: 2px solid #ddeadf;
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(58, 107, 53, 0.15);
}

.step-number {
  background: var(--rp-verde);
  color: var(--rp-white);
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(0.75rem, 2vw, 1rem);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.step-title {
  color: var(--rp-verde);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.package-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin: clamp(1.5rem, 3vw, 2rem) 0;
  width: 100%;
}

.package {
  background: linear-gradient(to right, #f6fbf7, #e4f6f5);
  border: 2px solid var(--rp-azul);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.package.featured {
  border-color: var(--rp-verde);
  box-shadow: 0 12px 30px rgba(58, 107, 53, 0.2);
}

.package.featured::before {
  content: "POPULAR";
  position: absolute;
  top: 20px;
  right: -30px;
  background: #FFD700;
  color: var(--rp-text);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.package-name {
  font-family: var(--font-family-sections);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--rp-marrom);
  font-weight: 700;
}

.package-price {
  background: var(--rp-verde);
  color: var(--rp-white);
  padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
  border-radius: var(--radius-md);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(58, 107, 53, 0.3);
  white-space: nowrap;
}

.package-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rp-text);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.info-item i {
  color: var(--rp-azul);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  width: 25px;
  flex-shrink: 0;
}

.package-rules {
  background: var(--rp-white);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.rules-title {
  font-weight: 600;
  color: var(--rp-marrom);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  padding: clamp(0.4rem, 1vw, 0.5rem) 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--rp-text);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.6;
}

.rules-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rp-verde);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
  margin: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--rp-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
  background: var(--rp-white);
}

thead {
  background: var(--rp-marrom);
  color: var(--rp-white);
}

th, td {
  padding: clamp(0.75rem, 2vw, 1rem);
  text-align: left;
  border: 1px solid #ddd;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

tbody tr:nth-child(even) {
  background: #f9f9f9;
}

tbody tr:hover {
  background: var(--rp-bege);
}

.highlight {
  background: #fffbec;
  border-left: 4px solid #FFD700;
  padding: clamp(0.75rem, 2vw, 1rem);
  margin: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-radius: var(--radius-sm);
}

.highlight-title {
  font-weight: 600;
  color: var(--rp-marrom);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.highlight-title i {
  color: #FFA000;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: clamp(1rem, 2.5vw, 1.5rem) 0;
}

.payment-method {
  background: #f6fbf7;
  border: 2px solid #ddeadf;
  border-radius: var(--radius-md);
  padding: clamp(0.75rem, 2vw, 1rem);
  text-align: center;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--rp-verde);
  transform: translateY(-2px);
}

.payment-method i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--rp-verde);
  margin-bottom: 0.5rem;
}

.payment-method .name {
  font-weight: 600;
  color: var(--rp-text);
  margin-bottom: 0.25rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.payment-method .description {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  color: #666;
}

.alert {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin: clamp(1rem, 2.5vw, 1.5rem) 0;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: start;
}

.alert-icon {
  color: #ff9800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  flex-shrink: 0;
}

.alert-content h3 {
  color: var(--rp-marrom);
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.alert-content p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, var(--rp-verde), #539b50);
  color: var(--rp-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin: clamp(1.5rem, 4vw, 2rem) 0;
  box-shadow: 0 10px 30px rgba(58, 107, 53, 0.25);
}

.cta-title {
  font-family: var(--font-family-sections);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.cta-buttons {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.bg-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  border-radius: var(--radius-md);
  color: #fff !important;
  padding: clamp(0.75rem, 2vw, 1rem);
}

.btn {
  padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  touch-action: manipulation;
}

.btn-primary {
  background: var(--rp-white);
  color: var(--rp-verde);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--rp-white);
  border: 2px solid var(--rp-white);
}

.btn-secondary:hover {
  background: var(--rp-white);
  color: var(--rp-verde);
}

.timeline {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2rem);
  margin: clamp(1.5rem, 4vw, 2rem) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rp-azul);
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: clamp(-2.2rem, -5vw, -2.4rem);
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rp-azul);
  border: 3px solid var(--rp-white);
  box-shadow: 0 0 0 3px var(--rp-azul);
}

.timeline-title {
  font-weight: 600;
  color: var(--rp-verde);
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.timeline-item p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.6;
  color: var(--rp-text);
}

/* ===== MEDIA QUERIES ESPECÍFICAS ===== */
@media (max-width: 768px) {
  .package-featured::before {
    font-size: 0.6rem;
    padding: 3px 30px;
    right: -25px;
    top: 15px;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-item::before {
    left: -1.8rem;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .package-price {
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
  }

  .package-info {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* ===== AJUSTES PARA IMPRESSÃO ===== */
@media print {
  .cta-section,
  .btn {
    display: none !important;
  }

  .package {
    page-break-inside: avoid;
  }

  table {
    font-size: 10pt;
  }
}