/* ===== LEGAL / SUPPORT PAGES — shared styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clay:    #B8543A;
  --clay-d:  #923E2A;
  --clay-l:  #F3E1D2;
  --date:    #6E3B2A;
  --saffron: #D98A2B;
  --ink:     #2B2622;
  --n50:     #FBF5EC;
  --n100:    #F3EADD;
  --n200:    #E8D8C5;
  --n300:    #E3D2BE;
  --n400:    #C9B7A6;
  --n500:    #8A7B66;
  --n700:    #6B5D4C;
  --n900:    #2B2622;
  --body-bg: #E7DDCD;
  --canvas:  #F6EEE2;
  --pill:    100px;
  --card-r:  20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--body-bg);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(227, 210, 190, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 38, 34, .10);
}

.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  gap: 16px;
}

.legal-nav-logo {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: 32px;
  line-height: .85;
  color: var(--clay);
}

.legal-nav-logo .logo-en {
  font-family: 'Marcellus', serif;
  font-size: 0.2em;
  letter-spacing: .44em;
  color: var(--ink);
  margin-top: 0.18em;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n700);
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(42, 38, 34, .12);
  background: rgba(255, 255, 255, .45);
  transition: color .2s, border-color .2s, background .2s;
}

.legal-back:hover {
  color: var(--clay);
  border-color: rgba(184, 84, 58, .35);
  background: #fff;
}

.legal-back svg {
  flex-shrink: 0;
}

/* ===== MAIN ===== */
.legal-main {
  flex: 1;
  padding: 48px 0 64px;
}

.legal-card {
  background: var(--canvas);
  border-radius: var(--card-r);
  border: 1px solid rgba(42, 38, 34, .07);
  box-shadow: 0 16px 40px -24px rgba(42, 38, 34, .28);
  padding: 40px 36px;
}

.legal-title {
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

.legal-intro {
  font-size: 16px;
  font-weight: 400;
  color: var(--n700);
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 12px;
  font-weight: 400;
  color: var(--n500);
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--date);
  margin-bottom: 10px;
  line-height: 1.4;
}

.legal-section p {
  font-size: 15px;
  font-weight: 400;
  color: var(--n700);
  line-height: 1.85;
}

.legal-section ul,
.legal-section ol {
  margin-top: 10px;
  padding-right: 20px;
}

.legal-section li {
  font-size: 15px;
  font-weight: 400;
  color: var(--n700);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-steps {
  list-style: none;
  padding-right: 0;
  margin-top: 14px;
}

.legal-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clay-l);
  color: var(--clay);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}

/* ===== CONTACT OPTIONS ===== */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(42, 38, 34, .08);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}

a.contact-option:hover {
  border-color: rgba(184, 84, 58, .35);
  box-shadow: 0 8px 24px -12px rgba(184, 84, 58, .25);
}

.contact-option-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clay-l);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-option-text {
  flex: 1;
  min-width: 0;
}

.contact-option-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--n500);
  margin-bottom: 2px;
}

.contact-option-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--clay);
  word-break: break-word;
}

.contact-option-arrow {
  flex-shrink: 0;
  color: var(--n400);
}

.legal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--clay);
  border-radius: var(--pill);
  transition: background .2s, transform .15s;
}

.legal-cta:hover {
  background: var(--clay-d);
  transform: translateY(-1px);
}

.legal-cta-block {
  display: flex;
  justify-content: flex-start;
}

/* ===== INLINE FOOTER LINKS ===== */
.legal-links {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(42, 38, 34, .08);
}

.legal-links-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--date);
  margin-bottom: 14px;
}

.legal-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links-row a {
  font-size: 13px;
  font-weight: 500;
  color: var(--n700);
  padding: 8px 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(42, 38, 34, .08);
  border-radius: var(--pill);
  transition: color .2s, border-color .2s, background .2s;
}

.legal-links-row a:hover,
.legal-links-row a.is-active {
  color: var(--clay);
  border-color: rgba(184, 84, 58, .3);
  background: var(--clay-l);
}

/* ===== SITE FOOTER ===== */
.legal-footer {
  background: var(--ink);
  color: var(--n400);
  padding: 40px 0 32px;
  margin-top: auto;
}

.legal-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer-logo {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: .85;
  color: #E08A5B;
  margin-bottom: 8px;
}

.legal-footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: #9C8B79;
  max-width: 280px;
  line-height: 1.7;
}

.legal-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: flex-end;
}

.legal-footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: #8A7B66;
  transition: color .2s;
}

.legal-footer-links a:hover {
  color: #C9B7A6;
}

.legal-footer-copy {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6B5D4C;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .container,
  .legal-nav-inner,
  .legal-footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-card {
    padding: 28px 22px;
  }

  .legal-nav-logo {
    font-size: 28px;
  }

  .legal-back span {
    display: none;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-footer-nav {
    align-items: flex-start;
  }

  .legal-footer-links {
    justify-content: flex-start;
  }
}
