* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(-45deg, #4169E1, #2c4fa3, #6B8EFF, #3a5fd9);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: #333;
  line-height: 1.8;
  min-height: 100vh;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.legal-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f5f5f5;
}

/* Header */
.legal-header {
  background: linear-gradient(135deg, #4169E1 0%, #2c4fa3 100%);
  color: white;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-header-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.legal-header h1 {
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateX(-5px);
}

/* Content Area */
.legal-content {
  flex: 1;
  padding: 40px 20px;
}

.legal-body {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

section {
  margin-bottom: 35px;
}

section h2 {
  color: #4169E1;
  font-size: 24px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eeff;
}

section p {
  margin-bottom: 15px;
  color: #555;
  text-align: justify;
}

section ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

section li {
  margin-bottom: 10px;
  color: #555;
}

section li strong {
  color: #333;
}

.contact-info {
  background: #f0f4ff;
  padding: 20px;
  border-left: 4px solid #4169E1;
  border-radius: 5px;
  margin-top: 15px;
}

.contact-info p {
  margin-bottom: 8px;
}

/* Footer */
.legal-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

.legal-footer a {
  color: #6B8EFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-footer a:hover {
  color: #4169E1;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 24px;
  }

  .legal-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .back-button {
    width: 100%;
    text-align: center;
  }

  .legal-body {
    padding: 30px 20px;
  }

  section h2 {
    font-size: 20px;
  }

  section p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .legal-header {
    padding: 20px 10px;
  }

  .legal-header h1 {
    font-size: 20px;
  }

  .legal-content {
    padding: 20px 10px;
  }

  .legal-body {
    padding: 20px 15px;
  }

  section h2 {
    font-size: 18px;
  }

  section p {
    font-size: 14px;
  }

  section ul {
    margin-left: 20px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .legal-header {
    box-shadow: none;
  }

  .back-button {
    display: none;
  }

  .legal-footer {
    display: none;
  }
}