:root {
  --primary-gradient: linear-gradient(135deg, #D90166 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #D90166 100%);
  --accent-color: #D90166;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9ff;
  --border-color: #e0e6ed;
  --shadow-light: 0 4px 20px rgba(217, 1, 102, 0.1);
  --shadow-medium: 0 8px 30px rgba(217, 1, 102, 0.15);
  --shadow-heavy: 0 15px 60px rgba(217, 1, 102, 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #D90166;
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Enhanced Terms Section */
#terms {
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  position: relative;
  margin: 115px auto;
  max-width: 1200px;
  animation: fadeInUp 0.8s ease-out;
}

#terms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

/* Simple Header with Shadow */
#terms h1 {
  text-decoration: underline;
  color: #cf2675;
  text-align: center;
  padding: 50px;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  border-radius: 20px;
}

/* Last Update Date */
.last-update {
  text-align: right;
  padding: 20px 40px 0 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
}

/* Enhanced Terms Content */
.terms {
  padding: 60px 40px;
  position: relative;
}

.terms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="%23D90166" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  pointer-events: none;
}

.terms > * {
  position: relative;
  z-index: 1;
}

/* Enhanced Section Headings */
.terms h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin: 40px 0 20px 0;
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, rgba(217, 1, 102, 0.05) 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terms h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.terms h3:hover::before {
  left: 100%;
}

.terms h3:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.section-number {
  background: #D90166;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 15px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Enhanced Paragraphs */
.terms p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 0 20px;
  text-align: justify;
}

/* Enhanced Lists */
.terms ul {
  background: linear-gradient(135deg, #f8f9ff 0%, rgba(217, 1, 102, 0.02) 100%);
  border-radius: 12px;
  padding: 15px 20px;
  margin: 20px;
  box-shadow: var(--shadow-light);
}

.terms li {
  padding-top: 12px;
  position: relative;
  padding-left: 5px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  transition: all 0.3s ease;
}

.terms li::before {
  position: absolute;
  left: 0;
  top: 12px;
  color: #D90166;
  font-weight: bold;
  font-size: 1.1rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 1, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms li:hover {
  padding-left: 7px;
  color: var(--text-primary);
}

/* Enhanced Links */
.terms a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.terms a:hover {
  transform: translateY(-1px);
}

/* Special Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #ffb3ba;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 20px;
  position: relative;
  box-shadow: var(--shadow-light);
}

.highlight-box::before {
  content: '⚠️';
  position: absolute;
  top: -15px;
  left: 25px;
  background: #ff6b7a;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.highlight-box h4 {
  color: #d63384;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #terms h1 {
    font-size: 2.2rem;
    padding: 80px 20px;
  }
  
  .last-update {
    padding: 15px 20px 0 20px;
    text-align: center;
  }
  
  .terms {
    padding: 40px 20px;
  }
  
  .terms h3 {
    font-size: 1.5rem;
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .section-number {
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .terms p {
    padding: 0;
  }
  
  .terms ul {
    margin: 20px 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Enhancement */
.contact-section {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: 40px;
  margin: 40px 20px 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact-section::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"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></svg>');
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-section h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-section p {
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 20px;
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-decoration: none !important;
}

.contact-email i {
  margin-right: 8px;
}