/* terms.css */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #007bff;
  /* --secondary-color: #fd8f44; */
  --secondary-color: #1cf7d9;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1068px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.terms-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  padding: 6rem 2rem 4rem;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.terms-hero-content {
  position: relative;
  z-index: 1;
}

.terms-hero-icon {
  font-size: 4rem;
  color: white;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease;
}

.terms-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.terms-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Terms Section */
.terms-section {
  padding: 4rem 0;
  background: #fff;
}

.terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.terms-intro {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  border-radius: 0.5rem;
}

.terms-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.terms-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid var(--primary-color);
}

.terms-icon {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.terms-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.terms-body {
  padding: 1.5rem;
}

.terms-body p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.8;
}

.terms-body ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.terms-body ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.terms-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.terms-body strong {
  color: var(--text-color);
  font-weight: 600;
}

.terms-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 0.75rem;
  border-left: 4px solid var(--secondary-color);
  text-align: center;
}

.terms-footer p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 1rem;
}

.terms-footer p:first-child {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .terms-hero {
    padding: 5rem 1.5rem 3rem;
    margin-top: 50px;
  }

  .terms-hero-icon {
    font-size: 3rem;
  }

  .terms-hero-title {
    font-size: 2rem;
  }

  .terms-hero-subtitle {
    font-size: 1rem;
  }

  .terms-section {
    padding: 2rem 0;
  }

  .terms-intro {
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .terms-header {
    padding: 1rem;
  }

  .terms-icon {
    font-size: 1.5rem;
  }

  .terms-title {
    font-size: 1.2rem;
  }

  .terms-body {
    padding: 1rem;
  }

  .terms-body p {
    font-size: 0.95rem;
  }

  .terms-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    font-size: 0.9rem;
  }

  .terms-body ul li::before {
    font-size: 1rem;
    top: 0.5rem;
  }

  .terms-footer {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .terms-footer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding: 4rem 1rem 2.5rem;
  }

  .terms-hero-icon {
    font-size: 2.5rem;
  }

  .terms-hero-title {
    font-size: 1.75rem;
  }

  .terms-hero-subtitle {
    font-size: 0.9rem;
  }

  .terms-header {
    align-items: center;
    gap: 0.75rem;
  }

  .terms-icon {
    font-size: 1.5rem;
  }

  .terms-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .terms-body {
    padding: 1rem 0.75rem;
  }

  .terms-body ul li {
    padding-left: 1.5rem;
    font-size: 0.85rem;
  }

  .terms-footer {
    padding: 1.25rem;
  }
}