/* legal.css - Enhanced Version */
body {
  font-family: 'Quicksand', sans-serif;
  background: #fcfcf2;
  color:  #201f3b;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legal Container */
.legal-container {
  max-width: 850px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: fadeIn 0.7s ease-in-out;
}

/* Header */
.legal-header {
  background: #ffffff;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #3ba2f6 0%, #3a8cd8 100%);
  color: white;
}

.legal-header h1 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  color: white;
  transition: color 0.3s ease;
}

.legal-header h1:hover {
  color: #ffeb3b;
}

.intro-text {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
}

.intro-text strong {
  color: #ffeb3b;
}

/* Content */
.legal-content {
  padding: 2.5rem 2rem;
}

.terms-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eaeaea;
}

.terms-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.terms-section h2 {
  font-size: 1.3rem;
  color: #3ba2f6;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.terms-section h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ffa726;
  border-radius: 50%;
  flex-shrink: 0;
}

.terms-section h2:hover {
  color: #ffa726;
}

.terms-section p {
  font-size: 0.96rem;
  margin-bottom: 1rem;
  color: #092241;
}

.overview {
  font-size: 1.05rem !important;
  font-weight: 500;
  line-height: 1.7;
  background: rgba(75, 163, 242, 0.08);
  padding: 1.5rem;
  border-radius: 0.8rem;
  border-left: 4px solid #4ba3f2;
  margin-bottom: 1.5rem !important;
}

/* Lists */
.guidelines-list {
  margin: 1.2rem 0 1.2rem 0.5rem;
  padding: 0;
  list-style: none;
}

.guidelines-list li {
  font-size: 0.96rem;
  margin-bottom: 0.8rem;
  color: #092241;
  padding-left: 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.guidelines-list li:hover {
  transform: translateX(5px);
}

.guidelines-list li::before {
  content: "•";
  color: #ffa726;
  font-weight: bold;
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -0.2rem;
  line-height: 1;
}

/* Safety Note */
.safety-note {
  background: linear-gradient(135deg, rgba(255, 167, 38, 0.1) 0%, rgba(255, 167, 38, 0.05) 100%);
  border: 1px solid rgba(255, 167, 38, 0.2);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #ffa726;
}

.safety-note p {
  margin-bottom: 0;
  color: #092241;
  font-weight: 500;
}

/* Links */
.contact-link {
  color: #ffa726;
  text-decoration: underline;
  transition: 0.3s;
  font-weight: 600;
}

.contact-link:hover {
  color: #f48c06;
  text-decoration: none;
}

/* Footer */
.legal-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #555;
  background: #f8f9fa;
  border-top: 1px solid #eaeaea;
  animation: fadeIn 0.8s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-container {
    margin: 1rem;
    border-radius: 0.8rem;
  }
  
  .legal-header {
    padding: 2rem 1.5rem;
  }
  
  .legal-header h1 {
    font-size: 1.8rem;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .legal-container {
    margin: 0.5rem;
    border-radius: 0.6rem;
  }
  
  .legal-header {
    padding: 1.5rem 1rem;
  }
  
  .legal-header h1 {
    font-size: 1.5rem;
  }
  
  .legal-content {
    padding: 1.5rem 1rem;
  }
  
  .terms-section h2 {
    font-size: 1.15rem;
  }
  
  .overview {
    padding: 1.2rem;
  }
  
  .safety-note {
    padding: 1.2rem;
  }
}