/* Cookie Policy Page Styles */

.cookie-policy-container {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cookie-policy-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid #fb1e1e;
}

.cookie-policy-header h1 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.cookie-policy-header .last-updated {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.cookie-policy-content {
  line-height: 1.8;
  color: #333;
}

.cookie-policy-content h2 {
  font-size: 24px;
  color: #fb1e1e;
  margin: 35px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.cookie-policy-content h3 {
  font-size: 18px;
  color: #333;
  margin: 25px 0 12px;
  font-weight: 600;
}

.cookie-policy-content p {
  margin-bottom: 15px;
  font-size: 15px;
}

.cookie-policy-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.cookie-policy-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.cookie-policy-content strong {
  color: #1a1a1a;
  font-weight: 600;
}

.cookie-policy-content a {
  color: #fb1e1e;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-policy-content a:hover {
  color: #d01515;
}

/* Tabella dei cookie */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table thead {
  background: #fb1e1e;
  color: white;
}

.cookie-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.cookie-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table tbody tr:hover {
  background: #f9f9f9;
}

/* Badge per tipo di cookie */
.cookie-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.cookie-badge.necessary {
  background: #4caf50;
  color: white;
}

.cookie-badge.analytics {
  background: #2196f3;
  color: white;
}

.cookie-badge.preferences {
  background: #ff9800;
  color: white;
}

/* Info box */
.info-box {
  background: #f0f7ff;
  border-left: 4px solid #2196f3;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.info-box strong {
  color: #1976d2;
}

.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.warning-box strong {
  color: #f57c00;
}

/* Pulsante gestisci preferenze */
.manage-cookies-btn {
  display: inline-block;
  margin: 30px 0;
  padding: 14px 28px;
  background: #fb1e1e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.manage-cookies-btn:hover {
  background: #d01515;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 30, 30, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-policy-container {
    margin: 60px 20px 20px;
    padding: 20px;
  }

  .cookie-policy-header h1 {
    font-size: 26px;
  }

  .cookie-policy-content h2 {
    font-size: 20px;
  }

  .cookie-table {
    font-size: 13px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 10px;
  }

  /* Rendi la tabella scrollabile su mobile */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
