* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* header */
body {
  font-family: "Vazirmatn", sans-serif;
  background: #fff;
}
body {
  overflow-x: hidden;
}
i {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ===========================
   GLOBAL HEADER (GLASS EFFECT)
=========================== */
.glassy-nav {
  /* backdrop-filter: blur(14px) saturate(180%); */
  /* -webkit-backdrop-filter: blur(14px) saturate(180%); */
  /* background: rgba(255, 255, 255, 0.25); */
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.35s ease;
  z-index: 1050;
}

/* On Scroll */
.glassy-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================
   BRAND
=========================== */
.brand-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.25s ease;
}

/* ===========================
   NAV LINKS
=========================== */
.nav-link {
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  color: #fff !important;
  transition: color 0.25s ease;
}

/* Hover underline */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: #00a3ff;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Scroll → dark text */
.glassy-nav.scrolled .nav-link {
  color: #111 !important;
}

/* ===========================
   BUTTONS
=========================== */
.btn-outline-glass,
.btn-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  white-space: nowrap;
}

/* Outline */
.btn-outline-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-glass:hover {
  background: rgba(0, 163, 255, 0.15);
  border-color: #00a3ff;
  color: white;
}

/* Scroll state */
.glassy-nav.scrolled .btn-outline-glass {
  color: #111;
  background: rgb(239, 239, 239);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Brand button */
.btn-brand {
  background: #00a3ff;
  color: #fff;
  transition: background 0.25s ease;
}
.btn-brand:hover {
  background: #0095ea;
}

/* ===========================
   NAVBAR TOGGLER
=========================== */
.navbar-toggler {
  border: none;
  /* color: #fff; */
}
.glassy-nav.scrolled .navbar-toggler {
  color: #111;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 991.98px) {
  .glassy-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
  }

  .nav-link {
    color: #222 !important;
    font-size: 1.1rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .brand-logo {
    height: 32px;
  }
}

/* Small icon utility (used elsewhere) */
.small-icons .icon-item {
  width: 50px;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}
/* ===========================
   MOBILE
=========================== */
@media (max-width: 991.98px) {
  .glassy-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }

  .nav-link {
    color: #111 !important;
    font-size: 1.05rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .brand-logo {
    height: 32px;
  }

  /* 🔹 دکمه Outline روی پس‌زمینه سفید */
  .glassy-nav .btn-outline-glass {
    background: #f3f4f6; /* خاکستری خیلی روشن */
    border-color: #d1d5db;
    color: #111;
  }

  .glassy-nav .btn-outline-glass:hover {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #000;
  }

  /* 🔹 دکمه اصلی (برند) روی موبایل */
  .glassy-nav .btn-brand {
    background: #00a3ff;
    color: #fff;
    box-shadow: none;
  }

  .glassy-nav .btn-brand:hover {
    background: #0095ea;
    color: #fff;
  }
}

/* ============== TERMS HERO ============== */
.terms-hero {
  position: relative;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(93, 173, 236, 0.22),
      transparent 55%
    ),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    url("/src/img/rulesBGImage.png") center/cover no-repeat;
  color: #f9fafb;
  padding-block: clamp(4rem, 9vh, 6rem);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.terms-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.88) 40%,
    rgba(15, 23, 42, 0.75) 100%
  );
  backdrop-filter: blur(4px);
  z-index: 1;
}

.terms-hero__content {
  position: relative;
  z-index: 2;
}

/* Glow line bottom */
.terms-hero__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 36px;
  background: radial-gradient(
    120% 60% at 50% -10%,
    rgba(93, 173, 236, 0.4),
    transparent 60%
  );
  z-index: 1;
}

/* Badge */
.terms-badge {
  background: rgba(93, 173, 236, 0.12);
  border: 1px solid rgba(148, 196, 255, 0.55);
  color: #e5f0ff;
  backdrop-filter: blur(6px);
  padding-inline: 0.8rem;
  letter-spacing: 0.02em;
}

/* Title + lead */
.terms-hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.terms-hero .lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(226, 232, 240, 0.9);
}

/* Optional meta pills under intro text */
.terms-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e5f0ff;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 196, 255, 0.45);
}

/* RESPONSIVE HERO */
@media (max-width: 991.98px) {
  .terms-hero {
    text-align: center;
    padding-block: 6.5rem;
    min-height: auto;
  }

  .terms-hero .col-lg-8 {
    text-align: center;
  }

  .terms-meta-pill {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .terms-hero {
    padding-block: 8rem;
  }

  .terms-hero .lead {
    font-size: 0.9rem;
  }
}

/* ============== LEGAL CONTENT ============== */

.legal-section {
  padding-block: clamp(1.4rem, 3vw, 2.6rem);
  background: #f9fafb;
}

/* متن را در ستون خوانا نگه دار */
.content-narrow {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 32px);
}

/* بلاک اصلی قوانین */
.terms-content {
  line-height: 1.95;
  font-size: 1rem;
  color: #111827;
}

/* تیترهای اصلی داخل متن */
.terms-content h3,
.terms-content h4 {
  color: #1d4ed8;
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
  margin-bottom: 0.8rem;
  padding-right: 0.6rem;
  border-right: 3px solid rgba(59, 130, 246, 0.65);
}

/* پاراگراف‌های متن */
.terms-content p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  color: #374151;
  margin-bottom: 1rem;
}

/* لیست‌ها */
.terms-content ul {
  padding-right: 1.2rem;
  margin-bottom: 1rem;
}
.terms-content li {
  margin-bottom: 0.35rem;
  color: #4b5563;
  font-size: 0.96rem;
}

/* کارت/باکس نکات مهم (اگر خواستی استفاده کنی) */
.terms-highlight {
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: #eff6ff;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: #1e3a8a;
  margin-block: 1.2rem;
}

/* موبایل: فاصله‌ها نرم‌تر */
@media (max-width: 575.98px) {
  .content-narrow {
    padding-inline: 14px;
  }

  .terms-content h3,
  .terms-content h4 {
    font-size: 1.02rem;
    border-right-width: 2px;
  }

  .terms-content p {
    font-size: 0.92rem;
  }
}
/* ////////////////////////FOOTER */

.soft-footer {
  background: radial-gradient(
    circle at top,
    #f9fafb 0,
    #f2f3f5 45%,
    #e5e7eb 100%
  );
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  color: #4b5563;
  font-size: 0.9rem;
}

/* روی هر چیزی داخل فوتر، رنگ متن را کنترل می‌کنیم */
.soft-footer * {
  color: inherit;
}

/* عنوان هر ستون */
.soft-footer-title {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  color: #111827;
}

/* لینک‌ها */
.soft-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.soft-footer-links li {
  margin-bottom: 0.45rem;
}

.soft-footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.soft-footer-links a:hover {
  color: #111827;
  transform: translateX(-2px);
}

/* لوگو و شبکه اجتماعی */
.soft-footer .col:first-child p {
  color: #6b7280;
}

/* آیکن شبکه اجتماعی در دایره ملایم */
.footer-social-icon {
  font-size: 1.4rem;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e5e7eb;
}

.footer-social-icon:hover {
  color: #000;
  transform: translateY(-1px);
}

/* دکمه دانلود اپ */
.soft-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  background: #3490e3;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(52, 144, 227, 0.3);
  width: auto;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-download-btn i {
  font-size: 1rem;
}

.soft-download-btn:hover {
  background: #2677c6;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(52, 144, 227, 0.4);
}

/* پایین فوتر */
.soft-footer-bottom {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.8;
}

/* خط بالای بخش پایینی کمی ملایم‌تر */
.soft-footer-bottom.border-top {
  border-color: #e5e7eb !important;
}

/* ========= Responsive Tweaks ========= */

/* تراز بهتر روی تبلت و موبایل */
@media (max-width: 991.98px) {
  .soft-footer .row > .col {
    text-align: center;
  }

  .soft-footer img[alt="لوگو"] {
    margin: 0 auto 0.75rem;
    display: block;
  }

  .soft-footer .col:nth-child(4) img {
    max-width: 120px;
    margin: 0 auto;
    display: block;
  }

  .soft-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 575.98px) {
  .soft-footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .soft-footer-title {
    margin-top: 0.5rem;
  }

  .soft-footer .row {
    row-gap: 1.5rem;
  }
}
