/* Policy Pages Styles - Minimalist Design with #5A2A5A */

/* Main Content Styling */
.page-header {
  background: linear-gradient(135deg, #5a2a5a 0%, #7a4a7a 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>')
    repeat;
  opacity: 0.3;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Content Sections */
.privacy-content,
.terms-content,
.cookie-content {
  padding: 80px 0;
}

.policy-section,
.terms-section,
.cookie-section {
  background: white;
  margin-bottom: 2rem;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(90, 42, 90, 0.08);
  border-left: 4px solid #5a2a5a;
  position: relative;
  transition: all 0.3s ease;
}

.policy-section:hover,
.terms-section:hover,
.cookie-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(90, 42, 90, 0.12);
}

/* Section Headers with Icons */
.policy-section h2,
.terms-section h2,
.cookie-section h2 {
  color: #5a2a5a;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.policy-section h2::before,
.terms-section h2::before,
.cookie-section h2::before {
  content: "";
  width: 40px;
  height: 40px;
  background: #5a2a5a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Specific Icons for Different Sections */
.policy-section:nth-child(1) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}
.policy-section:nth-child(2) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}
.policy-section:nth-child(3) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}
.policy-section:nth-child(4) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"/></svg>');
}
.policy-section:nth-child(5) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M9 11H7v6h2v-6zm4 0h-2v6h2v-6zm4 0h-2v6h2v-6zm2-7h-3V2h-2v2H8V2H6v2H3v2h18V4z"/></svg>');
}
.policy-section:nth-child(6) h2::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-1 16H9V7h9v14z"/></svg>');
}

/* Subheadings */
.policy-section h3,
.terms-section h3,
.cookie-section h3 {
  color: #5a2a5a;
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  font-weight: 500;
  padding-left: 1rem;
  border-left: 3px solid #5a2a5a;
}

/* Paragraphs */
.policy-section p,
.terms-section p,
.cookie-section p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #444;
  font-size: 1rem;
}

/* Lists */
.policy-section ul,
.terms-section ul,
.cookie-section ul {
  margin: 1.5rem 0;
  padding-left: 0;
}

.policy-section li,
.terms-section li,
.cookie-section li {
  list-style: none;
  padding: 0.8rem 0 0.8rem 2.5rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.policy-section li:last-child,
.terms-section li:last-child,
.cookie-section li:last-child {
  border-bottom: none;
}

.policy-section li::before,
.terms-section li::before,
.cookie-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: #5a2a5a;
  font-weight: bold;
  width: 20px;
  height: 20px;
  background: rgba(90, 42, 90, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.policy-section li:hover,
.terms-section li:hover,
.cookie-section li:hover {
  background: rgba(90, 42, 90, 0.02);
  padding-left: 3rem;
}

/* Contact Info Styling */
.contact-info {
  background: rgba(90, 42, 90, 0.05);
  padding: 2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid rgba(90, 42, 90, 0.1);
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-info strong {
  color: #5a2a5a;
}

/* Links */
.policy-section a,
.terms-section a,
.cookie-section a {
  color: #5a2a5a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.policy-section a:hover,
.terms-section a:hover,
.cookie-section a:hover {
  border-bottom-color: #5a2a5a;
  opacity: 0.8;
}

/* Cookie Table Styling */
.cookie-table {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(90, 42, 90, 0.1);
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.cookie-table th {
  background: #5a2a5a;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 500;
}

.cookie-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.cookie-table tr:hover {
  background: rgba(90, 42, 90, 0.02);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .policy-section,
  .terms-section,
  .cookie-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .policy-section h2,
  .terms-section h2,
  .cookie-section h2 {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .cookie-table {
    font-size: 0.9rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .privacy-content,
  .terms-content,
  .cookie-content {
    background: #1a1a1a;
  }

  .policy-section,
  .terms-section,
  .cookie-section {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  .policy-section p,
  .terms-section p,
  .cookie-section p {
    color: #ccc;
  }

  .contact-info {
    background: rgba(90, 42, 90, 0.2);
  }

  .cookie-table td {
    color: #ccc;
    border-bottom-color: #444;
  }
}
