/* =========================
   Base Layout
========================= */
.terms-page {
  direction: rtl;
}

.terms-header {
  margin-bottom: 25px;
}

.terms-title {
  font-size: 1.9rem;
  font-weight: 800;
}

.terms-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* =========================
   Card
========================= */
.terms-card {
  background: #f7f8fa;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 26px;
  color: #111827;
}

.terms-intro {
  margin-bottom: 18px;
  color: #4b5563;
  font-size: 0.95rem;
}

/* =========================
   List
========================= */
.terms-list {
  margin: 0;
  padding-right: 18px;
}

/* هر بند */
.t-item {
  margin-bottom: 18px;
  padding: 12px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

/* hover خیلی نرم */
.t-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

/* عنوان بند - رنگی و جذاب */
.t-item h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* رنگ‌های متفاوت برای هر بند */
.t-item:nth-child(1) h5 { color: #2563eb; }
.t-item:nth-child(2) h5 { color: #ef4444; }
.t-item:nth-child(3) h5 { color: #8b5cf6; }
.t-item:nth-child(4) h5 { color: #10b981; }
.t-item:nth-child(5) h5 { color: #f59e0b; }
.t-item:nth-child(6) h5 { color: #06b6d4; }
.t-item:nth-child(7) h5 { color: #f97316; }
.t-item:nth-child(8) h5 { color: #84cc16; }
.t-item:nth-child(9) h5 { color: #ec4899; }

.t-item p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #374151;
  margin: 0;
}

/* =========================
   Form
========================= */
.terms-form {
  margin-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 18px;
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* =========================
   Buttons (IMPORTANT)
========================= */
.terms-actions {
  display: flex;
  gap: 12px;
}

/* پایه دکمه */
.terms-actions button {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

/* دکمه ادامه (اصلی) */
#continueBtn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

#continueBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

#continueBtn:active {
  transform: scale(0.98);
}

#continueBtn:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

/* دکمه دوم */
#printBtn {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  color: #374151;
}

#printBtn:hover {
  background: rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

/* =========================
   Footer
========================= */
.terms-updated {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========================
   DARK MODE
========================= */
body.dark-theme .terms-card {
  background: #0b1220;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.dark-theme .terms-subtitle,
body.dark-theme .terms-intro {
  color: #9ca3af;
}

body.dark-theme .t-item p {
  color: #cbd5e1;
}

body.dark-theme .terms-form {
  border-top-color: rgba(255,255,255,0.08);
}

/* دکمه در دارک */
body.dark-theme #printBtn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  color: #e5e7eb;
}