/* ===== TERMS HERO ===== */
.terms-hero {
  padding: 60px 24px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 1s var(--spring) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.terms-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0,168,107,0.08);
  border-radius: 40px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

/* ===== TERMS NAVIGATION ===== */
.terms-nav {
  max-width: 900px;
  margin: 30px auto 20px;
  padding: 0 24px;
}

.terms-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.terms-tab {
  padding: 12px 24px;
  border-radius: 40px;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  box-shadow: var(--shadow-sm);
}

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

.terms-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== TERMS CONTENT ===== */
.terms-content {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.terms-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.02);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--spring);
  margin-bottom: 24px;
}

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

.terms-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(0,168,107,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-section h2 i {
  color: var(--primary);
  font-size: 28px;
}

.terms-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-section h3 i {
  color: var(--primary);
  font-size: 18px;
}

.terms-section p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.terms-section ul, .terms-section ol {
  margin: 16px 0 24px 24px;
  color: var(--text-secondary);
}

.terms-section li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.terms-section li::marker {
  color: var(--primary);
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.info-card {
  background: rgba(0,168,107,0.03);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(0,168,107,0.1);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.info-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
}

.info-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Highlight boxes */
.highlight-box {
  background: rgba(0,168,107,0.04);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.highlight-box p {
  margin-bottom: 0;
}

.highlight-box i {
  color: var(--primary);
  margin-right: 8px;
}

/* Warning box */
.warning-box {
  background: rgba(239, 68, 68, 0.04);
  border-left: 4px solid #ef4444;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.warning-box p {
  margin-bottom: 0;
}

.warning-box i {
  color: #ef4444;
  margin-right: 8px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.col {
  background: rgba(0,0,0,0.02);
  padding: 24px;
  border-radius: var(--radius-md);
}

.col h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col.allowed i {
  color: var(--primary);
}

.col.prohibited i {
  color: #ef4444;
}

/* Merchant responsibilities list */
.responsibility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.responsibility-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.responsibility-item i {
  color: var(--primary);
  font-size: 18px;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Back home button */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: var(--primary);
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,168,107,0.2);
  margin: 20px auto 0;
}

.back-home-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0,168,107,0.3);
}

.back-home-btn i {
  transition: transform 0.2s;
}

.back-home-btn:hover i {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .terms-section {
    padding: 28px 20px;
  }

  .terms-section h2 {
    font-size: 24px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .terms-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .terms-tab {
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .responsibility-list {
    grid-template-columns: 1fr;
  }
}

/* Added to haptic feedback simulation */
.terms-tab, .back-home-btn {
  touch-action: manipulation;
}