/* ========================================
   TERMS & CONDITIONS PAGE STYLES
   ======================================== */

/* Terms Section */
.terms-section {
  padding: 80px 0 120px;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Terms Header */
.terms-header {
  text-align: center;
  margin-bottom: 60px;
}

.terms-header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.terms-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Terms Content */
.terms-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.terms-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.terms-intro {
  margin-bottom: 60px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.terms-intro p {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.8;
}

/* Terms Grid */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.terms-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terms-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.terms-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.terms-card:hover::before {
  transform: scaleX(1);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.card-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

/* Card Content */
.card-content {
  color: var(--text-primary);
  line-height: 1.6;
}

.card-content ul {
  margin: 0;
  padding-left: 20px;
}

.card-content li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
}

.card-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Terms Footer */
.terms-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.terms-note {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  text-align: center;
}

/* Footer Styles */
.footer {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.newsletter-form button {
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer Copyright */
.footer-copyright {
  text-align: center;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-section {
    padding: 60px 0 100px;
  }

  .terms-header h1 {
    font-size: 36px;
  }

  .terms-content {
    padding: 24px;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .terms-header h1 {
    font-size: 32px;
  }

  .terms-content {
    padding: 20px;
  }

  .card-header {
    gap: 12px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .card-header h3 {
    font-size: 20px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terms-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar for Terms Content */
.terms-content {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.terms-content::-webkit-scrollbar {
  width: 8px;
}

.terms-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Policy Document Layout */
.policy-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 0 20px;
  line-height: 1.8;
}

.policy-doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-color);
}

.policy-doc p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.policy-doc ul,
.policy-doc ol {
  margin: 6px 0 16px 24px;
}

.policy-doc li {
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 15px;
}

.policy-doc a {
  color: var(--primary-color);
  text-decoration: none;
}

.policy-doc a:hover {
  text-decoration: underline;
}
