/* CSS Document */

/* ================================
   LEGAL PAGES (terms, privacy, accessibility)
   ================================ */

.legal-page {
  background-color: #fffefb; /* slightly warm white */
  text-align: left;
  padding: clamp(60px, 8vw, 100px) 20px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 15px;
  color: #444;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  border-radius: 12px;
}

/* Headings */
.legal-page h1 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 40px;
  text-shadow: none; /* override global text-shadow */
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 10px;
}

.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: #2e2e2e;
  font-size: 20px;
  text-transform: none; /* remove uppercase for readability */
  letter-spacing: 0;
  text-shadow: none;
  border-left: 4px solid #4CAF50;
  padding-left: 12px;
}

/* Paragraphs & lists */
.legal-page p {
  margin-bottom: 16px;
  font-size: 15px;
  color: #555;
}

.legal-page ul {
  margin: 10px 0 20px 25px;
  padding-left: 15px;
  list-style-type: disc;
}

.legal-page li {
  margin-bottom: 8px;
}

/* Links */
.legal-page a {
  color: #4CAF50;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

.legal-page a:hover {
  color: #388E3C;
}

/* Address block */
.legal-page address {
  font-style: normal;
  margin-top: 12px;
  color: #333;
  line-height: 1.6;
}

/* Subtle fade for last line */
.legal-page em {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #777;
}

/* ================================
   LEGAL PAGE - Heading Animations
   ================================ */

/* Smooth fade-in for main heading */
.legal-page h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease-out forwards;
}

/* Gentle staggered fade for sub-headings */
.legal-page h2 {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Optional fade for paragraph content if you want a softer reveal */
.legal-page p, 
.legal-page ul, 
.legal-page address {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Define the fade-in keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




@media (max-width: 768px) {
  .legal-page {
    padding: 40px 16px;
    font-size: 14px;
    box-shadow: none;
  }
  .legal-page h1 {
    font-size: 28px;
  }
}
