/* =============================================================
   css/utility-pages.css — Bluworks
   Shared styles for: 404, Thank You, Privacy Policy pages.
   ============================================================= */


/* ── 404 ──────────────────────────────────────────────────────── */
.four04-section {
  padding: var(--s-10, 72px) 0;
  background: var(--bg, #FAFBFD);
  min-height: 70vh;
;
  align-items: center;
}

.four04-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.four04-card h1 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink, #0A0F1E);
  margin: 0 0 var(--s-4, 16px);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .four04-card h1 { white-space: normal; font-size: clamp(24px, 7vw, 36px); }
}

.four04-card .lead {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 17px;
  color: var(--ink-mid, #4B5068);
  margin: 0 auto var(--s-7, 40px);
  max-width: 520px;
  line-height: 1.55;
}

.four04-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3, 12px);
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}

@media (max-width: 600px) {
  .four04-links { grid-template-columns: 1fr; }
}

.four04-link {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E4E8F3);
  border-radius: var(--r-3, 12px);
  padding: 32px var(--s-5, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 16px;
  color: var(--ink, #0A0F1E);
  font-weight: 700;
  transition: border-color var(--dur, 220ms) var(--ease),
              transform   var(--dur, 220ms) var(--ease);
}

.four04-link:hover {
  border-color: var(--blu-primary, #1E50E5);
  transform: translateY(-2px);
  color: var(--ink, #0A0F1E);
}


/* ── Thank You ────────────────────────────────────────────────── */
.ty-section {
  padding: var(--s-10, 72px) 0;
  min-height: calc(100vh - 200px);

  align-items: center;
}

.ty-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E4E8F3);
  border-radius: var(--r-4, 16px);
  padding: 56px 48px 48px;
  box-shadow: 0 4px 24px rgba(10, 15, 30, 0.05);
}

@media (max-width: 600px) {
  .ty-card { padding: 36px 24px 32px; }
}

.ty-check {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-6, 28px);
  background: var(--blu-soft, #EEF3FF);
  color: var(--blu-primary, #1E50E5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-check svg { width: 32px; height: 32px; }

.ty-card h1 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4, 16px);
  color: var(--ink, #0A0F1E);
  line-height: 1.1;
}

.ty-card .lead {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 16px;
  color: var(--ink-mid, #4B5068);
  margin: 0 auto var(--s-6, 28px);
  max-width: 420px;
  line-height: 1.6;
}

/* WhatsApp CTA — bordered box */
.ty-whatsapp-cta {
  border: 1px solid var(--line, #E4E8F3);
  border-radius: var(--r-3, 12px);
  padding: 24px 28px;
  margin-bottom: 0;
}

.ty-whatsapp-label {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 14px;
  color: var(--ink-mid, #4B5068);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: 0;
  text-transform: none;
}

.ty-whatsapp-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #4CAF50 !important;
  border-color: #4CAF50 !important;
  width: 100% !important;
  justify-content: center !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: background var(--dur, 220ms) var(--ease) !important;
}

.ty-whatsapp-btn:hover {
  background: #43A047 !important;
  border-color: #43A047 !important;
  color: #fff !important;
}

.ty-whatsapp-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

/* Social links */
.ty-socials {
  margin-top: var(--s-6, 28px);
  padding-top: var(--s-6, 28px);
  border-top: 1px solid var(--line, #E4E8F3);
}

.ty-socials-label {
  display: block;
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 11px;
  color: var(--ink-muted, #6B7088);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4, 16px);
}

.ty-socials-list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ty-socials-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--blu-soft, #EEF3FF);
  color: var(--blu-primary, #1E50E5);
  border-radius: var(--r-2, 8px);
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur, 220ms) var(--ease),
              color     var(--dur, 220ms) var(--ease);
}

.ty-socials-list a:hover {
  background: var(--blu-primary, #1E50E5);
  color: #fff;
}

.ty-socials-list svg { width: 16px; height: 16px; flex-shrink: 0; }


/* ── Privacy Policy ───────────────────────────────────────────── */
.legal-section {
  padding: var(--s-9, 64px) 0 var(--s-10, 96px);
}

.legal-head {
  max-width: 760px;
  margin: 0 auto var(--s-7, 40px);
}

.legal-head h1 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2, 8px);
  color: var(--ink, #0A0F1E);
  line-height: 1.05;
}

.legal-meta {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 12px;
  color: var(--ink-muted, #6B7088);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #E4E8F3);
  border-radius: var(--r-3, 12px);
  padding: 36px 40px;
}

@media (max-width: 600px) {
  .legal-body { padding: 24px 20px; }
}

.legal-body h2 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--s-7, 40px) 0 var(--s-3, 12px);
  color: var(--blu-primary, #1E50E5);
}

.legal-body h2:first-child,
.legal-body h2:first-of-type { margin-top: 0; }

.legal-body h3 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0A0F1E);
  margin: var(--s-5, 20px) 0 var(--s-2, 8px);
}

.legal-body p {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif);
  margin: 0 0 var(--s-4, 16px);
  color: var(--ink-soft, #4B5068);
  line-height: 1.7;
  font-size: 15px;
}

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

.legal-body a {
  color: var(--blu-primary, #1E50E5);
  font-weight: 600;
  text-decoration: none;
}

.legal-body a:hover { text-decoration: underline; }

/* ── Arabic RTL font override ───────────────────────────────────── */
html[dir="rtl"] .four04-card h1,
html[dir="rtl"] .four04-card .lead,
html[dir="rtl"] .four04-link,
html[dir="rtl"] .ty-card h1,
html[dir="rtl"] .ty-card .lead,
html[dir="rtl"] .ty-whatsapp-label,
html[dir="rtl"] .ty-whatsapp-btn,
html[dir="rtl"] .ty-socials-label,
html[dir="rtl"] .ty-socials-list a,
html[dir="rtl"] .legal-head h1,
html[dir="rtl"] .legal-meta,
html[dir="rtl"] .legal-body h2,
html[dir="rtl"] .legal-body h3,
html[dir="rtl"] .legal-body p {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .four04-link,
  .ty-socials-list a,
  .ty-whatsapp-btn { transition: none !important; }
}