:root { font-family: "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

.static-page__hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  text-align: center;
}
.static-page__hero p { color: var(--muted); line-height: 1.9; max-width: 760px; }
.static-page__main { text-align: left; direction: ltr; }
[dir="rtl"] .static-page__main { text-align: right; direction: rtl; }
.static-page__hero { text-align: left; }
[dir="rtl"] .static-page__hero { text-align: right; }
.static-page__section { background: none; border: none; }
.static-page__list { padding-left: 20px; color: var(--muted); line-height: 1.8; margin-top: 12px; }
[dir="rtl"] .static-page__list { padding-left: 0; padding-right: 20px; }
.static-page__list-item + .static-page__list-item { margin-top: 6px; }

.terms-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.term-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .term-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.2);
}

.term-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
[dir="rtl"] .term-card__head {
  direction: rtl;
  justify-content: flex-start;
}

.term-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0.35));
  color: #0e7490;
  font-weight: 700;
}

[data-theme="dark"] .term-card__index {
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(56, 189, 248, 0.12));
}

.term-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.term-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.term-card p + p {
  margin-top: 10px;
}

.term-card--full {
  grid-column: 1 / -1;
}

.term-card__link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 600;
  color: #0ea5e9;
  text-decoration: none;
}
[dir="rtl"] .term-card__link { justify-content: flex-end; }

.term-card__link:hover {
  text-decoration: underline;
}

.static-page__footer { text-align: center; color: var(--muted); border-radius: var(--r); box-shadow: var(--shadow2); }
