/* صفحة الشروط والأحكام — تصميم فاخر */
.site_header_1 + main.terms_lux_page {
  padding-top: 0 !important;
}

.terms_lux_page {
  --terms-gold: #ffb347;
  --terms-orange: #ff6a00;
  --terms-cream: #fff8f0;
  --terms-muted: #cfc3b4;
  color: var(--terms-cream);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 150, 52, 0.16), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(255, 106, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #030201 0%, #0a0705 38%, #060403 100%);
  position: relative;
  overflow: hidden;
}

.terms_lux_page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 160, 80, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
}

.terms_lux_shell {
  width: min(1140px, calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.terms_lux_gold {
  background: linear-gradient(135deg, #ffd699, #ff8a1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Hero —— */
.terms_lux_hero {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: min(92vh, 860px);
  padding: 148px 0 100px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.terms_lux_hero_bg {
  position: absolute;
  inset: -12px;
  z-index: -3;
  filter: blur(7px);
  transform: scale(1.05);
}

.terms_lux_hero_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.terms_lux_hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 2, 1, 0.88) 0%, rgba(6, 4, 2, 0.55) 45%, rgba(4, 3, 2, 0.92) 100%),
    radial-gradient(circle at 50% 28%, rgba(255, 142, 41, 0.22), transparent 58%);
}

.terms_lux_hero_glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.terms_lux_hero_glow_a {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  background: rgba(255, 120, 40, 0.18);
  animation: termsGlowA 9s ease-in-out infinite alternate;
}

.terms_lux_hero_glow_b {
  width: 360px;
  height: 360px;
  bottom: -60px;
  right: -40px;
  background: rgba(255, 180, 90, 0.14);
  animation: termsGlowB 11s ease-in-out infinite alternate;
}

@keyframes termsGlowA {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

@keyframes termsGlowB {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, -14px); }
}

.terms_lux_hero_seps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.terms_lux_hero_seps > span:first-child,
.terms_lux_hero_seps > span:last-child {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 120, 0.75), transparent);
}

.terms_lux_chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 120, 0.45);
  background: rgba(255, 106, 0, 0.14);
  color: #ffe3bf;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.terms_lux_hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: #fffaf5;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.terms_lux_hero_lead {
  margin: 0 auto 24px;
  max-width: 680px;
  color: #dccfbe;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.95;
}

.terms_lux_hero_meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}

.terms_lux_hero_meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 150, 0.32);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff3e0;
}

.terms_lux_hero_meta i {
  color: var(--terms-gold);
}

.terms_lux_scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffe8cc;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 3;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.terms_lux_scroll:hover {
  color: #fff;
  transform: translateX(-50%) translateY(3px);
}

.terms_lux_scroll i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 138, 0.45);
  background: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: termsScrollBounce 1.5s ease-in-out infinite;
}

@keyframes termsScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* —— Stats —— */
.terms_lux_stats {
  margin-top: -36px;
  padding-bottom: 48px;
  position: relative;
  z-index: 4;
}

.terms_lux_stats_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.terms_lux_stat {
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 130, 0.28);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 106, 0, 0.08));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 16px;
  text-align: center;
}

.terms_lux_stat b {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--terms-gold);
  margin-bottom: 6px;
}

.terms_lux_stat span {
  font-size: 13px;
  color: var(--terms-muted);
}

/* —— Sections —— */
.terms_lux_section {
  padding: 72px 0;
  position: relative;
  z-index: 2;
}

.terms_lux_section_head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.terms_lux_eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 170, 90, 0.38);
  background: rgba(255, 106, 0, 0.1);
  color: #ffc27b;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.terms_lux_section_head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff8f0;
}

.terms_lux_section_head p {
  margin: 0;
  color: var(--terms-muted);
  font-size: 16px;
  line-height: 1.9;
}

/* —— Pillars —— */
.terms_lux_pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terms_lux_pillar {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25));
  padding: 26px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.terms_lux_pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 170, 90, 0.4);
}

.terms_lux_pillar_ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--terms-gold);
  background: rgba(255, 106, 0, 0.16);
  border: 1px solid rgba(255, 190, 120, 0.35);
  margin-bottom: 16px;
}

.terms_lux_pillar h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff8f0;
}

.terms_lux_pillar p {
  margin: 0;
  color: var(--terms-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* —— Steps —— */
.terms_lux_steps_wrap {
  background: linear-gradient(180deg, transparent, rgba(255, 106, 0, 0.04), transparent);
}

.terms_lux_steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}

.terms_lux_steps li {
  border-radius: 20px;
  border: 1px solid rgba(255, 200, 150, 0.22);
  background: rgba(0, 0, 0, 0.32);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.terms_lux_step_n {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffd699, #ff7a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terms_lux_steps li strong {
  display: block;
  color: #fff8f0;
  font-size: 16px;
  margin-bottom: 6px;
}

.terms_lux_steps li p {
  margin: 0;
  color: var(--terms-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* —— Policies card —— */
.terms_lux_card {
  border-radius: 28px;
  border: 1px solid rgba(255, 190, 130, 0.3);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 106, 0, 0.08) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 28px 64px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  padding: clamp(24px, 3.5vw, 40px);
}

.terms_page_lang {
  display: none;
}

.terms_page_lang.is_active {
  display: block;
}

.terms_page_heading {
  margin: 0 0 12px;
  color: var(--terms-gold);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
}

.terms_page_intro {
  margin: 0 0 28px;
  color: var(--terms-muted);
  font-size: 16px;
  line-height: 1.95;
  max-width: 920px;
}

.terms_page_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.terms_page_item {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 18px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.terms_page_item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ffb347, #ff6a00);
  opacity: 0.85;
}

.terms_page_item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 170, 90, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.terms_item_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.terms_item_num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 180, 100, 0.35);
}

.terms_item_ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--terms-gold);
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 190, 120, 0.32);
}

.terms_page_item strong {
  display: block;
  color: #fff8f0;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.45;
}

.terms_page_item p {
  margin: 0;
  color: var(--terms-muted);
  font-size: 14px;
  line-height: 1.88;
}

/* —— Quote —— */
.terms_lux_quote {
  padding: 20px 0 64px;
}

.terms_lux_quote blockquote {
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 130, 0.28);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(0, 0, 0, 0.35));
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  position: relative;
}

.terms_lux_quote_ico {
  display: block;
  font-size: 28px;
  color: rgba(255, 180, 100, 0.45);
  margin-bottom: 16px;
}

.terms_lux_quote p {
  margin: 0 auto 16px;
  max-width: 780px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.9;
  color: #fff3e4;
  font-weight: 600;
}

.terms_lux_quote cite {
  font-style: normal;
  color: var(--terms-gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* —— CTA —— */
.terms_lux_cta {
  padding: 0 0 96px;
}

.terms_lux_cta_box {
  border-radius: 26px;
  border: 1px solid rgba(255, 190, 130, 0.32);
  background:
    linear-gradient(120deg, rgba(255, 106, 0, 0.18), rgba(0, 0, 0, 0.45)),
    url('../../training/experience-02.png') center/cover no-repeat;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.terms_lux_cta_box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 3, 2, 0.82), rgba(8, 5, 3, 0.65));
  z-index: 0;
}

.terms_lux_cta_box > * {
  position: relative;
  z-index: 1;
}

.terms_lux_cta_box h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff8f0;
}

.terms_lux_cta_box p {
  margin: 0;
  color: #dccfbe;
  font-size: 15px;
  line-height: 1.85;
  max-width: 520px;
}

.terms_lux_cta_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.terms_lux_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.terms_lux_btn_primary {
  color: #fff;
  background: linear-gradient(135deg, #ff9b34, #ff6a00);
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.38);
}

.terms_lux_btn_primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 106, 0, 0.48);
}

.terms_lux_btn_ghost {
  color: #fff8f0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.terms_lux_btn_ghost:hover {
  color: #fff;
  border-color: rgba(255, 190, 120, 0.65);
  transform: translateY(-2px);
}

/* —— Reveal —— */
.terms_lux_page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.terms_lux_page .reveal.is_visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Light theme —— */
html[data-theme="light"] .terms_lux_page {
  background: linear-gradient(180deg, #faf6f0 0%, #f0e8dc 100%);
  color: #1f1812;
}

html[data-theme="light"] .terms_lux_hero h1,
html[data-theme="light"] .terms_lux_section_head h2,
html[data-theme="light"] .terms_lux_pillar h3,
html[data-theme="light"] .terms_lux_cta_box h2 {
  color: #1f1812;
}

html[data-theme="light"] .terms_lux_hero_lead,
html[data-theme="light"] .terms_lux_section_head p,
html[data-theme="light"] .terms_lux_pillar p,
html[data-theme="light"] .terms_lux_stat span,
html[data-theme="light"] .terms_page_intro,
html[data-theme="light"] .terms_page_item p,
html[data-theme="light"] .terms_lux_steps li p {
  color: #5c5044;
}

html[data-theme="light"] .terms_lux_stat,
html[data-theme="light"] .terms_lux_pillar,
html[data-theme="light"] .terms_lux_card,
html[data-theme="light"] .terms_page_item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 140, 50, 0.2);
}

html[data-theme="light"] .terms_page_item strong,
html[data-theme="light"] .terms_lux_steps li strong {
  color: #1f1812;
}

html[data-theme="light"] .terms_lux_quote p {
  color: #2a2118;
}

/* —— Responsive —— */
@media (max-width: 991px) {
  .terms_lux_stats_grid,
  .terms_lux_pillars,
  .terms_lux_steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms_lux_hero_meta {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .terms_lux_hero {
    min-height: 88vh;
    padding-top: 132px;
    padding-bottom: 88px;
  }

  .terms_lux_stats_grid,
  .terms_lux_pillars,
  .terms_lux_steps,
  .terms_page_grid {
    grid-template-columns: 1fr;
  }

  .terms_lux_cta_box {
    flex-direction: column;
    align-items: flex-start;
  }

  .terms_lux_cta_actions {
    width: 100%;
  }

  .terms_lux_btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms_lux_scroll i,
  .terms_lux_hero_glow_a,
  .terms_lux_hero_glow_b {
    animation: none;
  }

  .terms_lux_page .reveal {
    opacity: 1;
    transform: none;
  }
}
