/* Shared styling for the static content/legal pages (terms, privacy, faq,
   cancellation, pickup, contact). Pairs with index.css (body, header, footer). */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 130px 24px 80px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #13B5EA;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}
.legal-back:hover { opacity: 0.8; }

.legal-main h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #ffffff;
}
.legal-updated {
  color: #8b94a6;
  font-size: 14px;
  margin: 0 0 36px;
}
.legal-main h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin: 34px 0 12px;
  color: #13B5EA;
}
.legal-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: #e8ebf2;
}
.legal-main p,
.legal-main li {
  color: #c2c9d6;
  line-height: 1.85;
  font-size: 15px;
}
.legal-main p { margin: 0 0 14px; }
.legal-main ul { padding-inline-start: 22px; margin: 12px 0 18px; }
.legal-main li { margin-bottom: 8px; }
.legal-main a { color: #13B5EA; }
.legal-main strong { color: #ffffff; font-weight: 600; }

.legal-qa { margin-bottom: 18px; }
.legal-qa .q { color: #ffffff; font-weight: 600; }

/* Language divider + Arabic block */
.lang-divider {
  margin: 60px 0 44px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.legal-ar { direction: rtl; text-align: right; }
.legal-ar ul { padding-inline-start: 0; padding-inline-end: 22px; }

/* Footer legal links (used on landing + content pages) */
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin: 14px 0 4px;
}
.legal-footer-links a {
  color: #8b94a6;
  font-size: 13px;
  text-decoration: none;
}
.legal-footer-links a:hover { color: #13B5EA; }

/* ── Marketing pop-up (admin-managed promo modal) ── */
.mkt-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}
.mkt-popup {
  position: relative; width: 100%; max-width: 420px;
  background: #0d1528; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: mktPopIn 0.25s ease;
}
@keyframes mktPopIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.mkt-popup-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 22px; line-height: 1;
}
.mkt-popup-img { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.mkt-popup-img[data-link] { cursor: pointer; }
.mkt-popup-body { padding: 22px 22px 24px; text-align: center; }
.mkt-popup-headline { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.mkt-popup-text { color: #c2c9d6; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.mkt-popup-cta { display: block; background: #0047AB; color: #fff; text-decoration: none; font-weight: 700; padding: 13px; border-radius: 12px; font-size: 15px; }
.mkt-popup-cta:hover { background: #1a5fc8; }
.mkt-popup-dismiss { display: block; width: 100%; margin-top: 10px; padding: 6px; background: none; border: none; color: #8b94a6; font-size: 13px; cursor: pointer; }

/* Pop-up sign-up form (lead capture) */
.mkt-popup-form { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; text-align: start; }
.mkt-popup-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 15px; font-family: inherit; outline: none; box-sizing: border-box;
}
.mkt-popup-input::placeholder { color: #8b94a6; }
.mkt-popup-input:focus { border-color: #3b82f6; background: rgba(255, 255, 255, 0.09); }
.mkt-popup-submit { border: none; width: 100%; cursor: pointer; margin-top: 2px; font-family: inherit; }
.mkt-popup-submit:disabled { opacity: 0.6; cursor: default; }
.mkt-popup-formerr { color: #fca5a5; font-size: 13px; line-height: 1.4; }
/* Pop-up success state (code reveal) */
.mkt-popup-success { display: flex; flex-direction: column; align-items: center; }
.mkt-popup-success-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 4px auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.18); color: #34d399; font-size: 28px; font-weight: 700;
}
.mkt-popup-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 22px; font-weight: 800;
  letter-spacing: 0.12em; color: #fff; padding: 12px 18px; margin: 2px 0 16px;
  border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06); width: 100%; text-align: center; box-sizing: border-box;
}

/* ── Landing photo gallery (admin-managed) ── */
.gallery-section { padding: 90px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 38px;
}
.gallery-item {
  margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ==========================================================================
   Bilingual content pages — show ONE language at a time, driven by <html lang>
   (set by the no-flash head script + landing-ui.js). EN content is the bare
   children of .legal-main; AR is the .legal-ar block. + light-mode text colors.
   ========================================================================== */
.lang-divider { display: none !important; }
html:not([lang="ar"]) .legal-ar { display: none; }
html[lang="ar"] .legal-main > :not(.legal-ar):not(.legal-back) { display: none; }

/* Legal copy hardcodes light-on-dark colors → darken them for the light theme */
html[data-theme="light"] .legal-main h1,
html[data-theme="light"] .legal-main h3,
html[data-theme="light"] .legal-main strong,
html[data-theme="light"] .legal-qa .q { color: #11161f; }
html[data-theme="light"] .legal-main p,
html[data-theme="light"] .legal-main li { color: #3a4250; }
html[data-theme="light"] .legal-main h2,
html[data-theme="light"] .legal-main a,
html[data-theme="light"] .legal-back { color: #0047AB; }
