/* Legal Pages Styling */

.legal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #fdf9f3 0%, #fff5eb 100%);
  padding: 2rem 0;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f5632f;
}

.legal-back {
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #f5632f;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-5px);
  text-decoration: underline;
}

.legal-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-subtitle {
  font-size: 1rem;
  color: #8b7355;
  font-style: italic;
}

.legal-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #fdf9f3;
}

.legal-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a3428;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #5a4a3a;
  margin-bottom: 1.25rem;
}

.legal-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.legal-section li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #5a4a3a;
  margin-bottom: 0.75rem;
  list-style-type: disc;
}

.legal-section li strong {
  color: #2c1810;
  font-weight: 600;
}

.legal-section a {
  color: #f5632f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: #d94d1f;
  text-decoration: underline;
}

.legal-section code {
  background: #fdf9f3;
  color: #f5632f;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

/* Contact List */

.contact-list {
  background: #fdf9f3;
  border-left: 4px solid #f5632f;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  list-style: none;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  color: #5a4a3a;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

/* Cookie Table */

.cookie-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fdf9f3;
  border-radius: 8px;
  overflow: hidden;
}

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

.cookie-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-table td {
  padding: 1rem;
  border-bottom: 1px solid #e8d9c8;
  color: #5a4a3a;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

/* Responsive Design */

@media (max-width: 768px) {
  .legal-page {
    padding: 1rem 0;
  }

  .legal-container {
    padding: 0 1rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section h3 {
    font-size: 1.25rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 1rem;
  }

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

  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem 0.5rem;
  }

  .contact-list {
    padding: 1rem 1.5rem;
  }
}

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

  .legal-content {
    padding: 1.5rem 1rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1.125rem;
  }

  .cookie-table th,
  .cookie-table td {
    display: block;
    width: 100%;
    padding: 0.5rem;
  }

  .cookie-table thead {
    display: none;
  }

  .cookie-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    color: #f5632f;
  }
}
