/* ═══════════════════════════════════════════
   جاهز / JAHIZ — Legal & account-deletion pages
   (privacy.html, delete-account.html)
   ═══════════════════════════════════════════ */

/* Inner-page header: navy bar + white logo (same treatment as join.html) */
.site-header {
  background: rgba(0, 18, 50, .92);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header .brand-logo.light-only { display: none; }
.site-header .brand-logo.dark-only { display: block; }
.site-header .btn-outline-navy {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.site-header .btn-outline-navy:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: #fff;
}

/* Buttons/typography used by these pages but not defined in style.css */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
}
.form-foot {
  margin-top: 16px;
  text-align: center;
  color: #6b7790;
  font-size: .9rem;
}
.form-foot a { color: #12406e; font-weight: 600; }

.legal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #001232 0%, #05204a 55%, #001232 100%);
  color: #fff;
  padding: 130px 0 70px;
  text-align: center;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 145, 6, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 145, 6, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .6;
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero .kicker {
  display: inline-block;
  color: #FF9106;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.legal-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  color: #fff;
}
.legal-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .82);
  line-height: 1.9;
}
.legal-updated {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 145, 6, .14);
  border: 1px solid rgba(255, 145, 6, .35);
  color: #FFB65C;
  font-size: .86rem;
}

/* ===== Table of contents ===== */
.legal-toc {
  background: #fff;
  border: 1px solid rgba(0, 18, 50, .1);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 34px;
  box-shadow: 0 10px 34px rgba(0, 18, 50, .06);
}
.legal-toc h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: #001232;
}
.legal-toc ol {
  margin: 0;
  padding-inline-start: 20px;
  columns: 2;
  column-gap: 26px;
}
.legal-toc li { margin-bottom: 8px; break-inside: avoid; }
.legal-toc a { color: #12406e; text-decoration: none; }
.legal-toc a:hover { color: #FF9106; text-decoration: underline; }

/* ===== Body ===== */
.legal-body { max-width: 900px; margin: 0 auto; }
.legal-block {
  background: #fff;
  border: 1px solid rgba(0, 18, 50, .08);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: 0 8px 26px rgba(0, 18, 50, .05);
}
.legal-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  color: #001232;
  margin: 0 0 14px;
}
.legal-block h2 .num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #FF9106, #ffb457);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.legal-block h3 {
  font-size: 1rem;
  color: #12406e;
  margin: 18px 0 8px;
}
.legal-block p,
.legal-block li { line-height: 2; color: #33415c; }
.legal-block ul { padding-inline-start: 22px; margin: 10px 0; }
.legal-block li { margin-bottom: 7px; }
.legal-block a { color: #12406e; font-weight: 600; }
.legal-block strong { color: #001232; }

.legal-note {
  border-inline-start: 4px solid #FF9106;
  background: rgba(255, 145, 6, .07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
}
.legal-note p { margin: 0; }

.legal-contact {
  background: linear-gradient(135deg, #001232, #05204a);
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-top: 26px;
}
.legal-contact h2 { color: #fff; justify-content: center; }
.legal-contact p { color: rgba(255, 255, 255, .85); }
.legal-contact .legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
/* on the navy contact card every button must read white */
.legal-contact .btn-ghost,
.legal-contact .btn-outline-light,
.legal-contact .btn-outline-navy {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.legal-contact .btn-ghost:hover,
.legal-contact .btn-outline-light:hover,
.legal-contact .btn-outline-navy:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
}
.legal-contact .btn-ghost i,
.legal-contact .btn-outline-light i { color: #fff; }
/* .legal-block a (navy) would otherwise beat .btn-primary's own colour */
.legal-contact .btn-primary { color: #001232; }

/* ===== Delete-account page ===== */
.del-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 18, 50, .1);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 14px 40px rgba(0, 18, 50, .08);
}
.del-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.del-step {
  background: #fff;
  border: 1px solid rgba(0, 18, 50, .09);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.del-step i {
  font-size: 1.5rem;
  color: #FF9106;
  margin-bottom: 10px;
  display: block;
}
.del-step b { display: block; color: #001232; margin-bottom: 6px; }
.del-step span { color: #5a6883; font-size: .9rem; line-height: 1.7; }

.del-card .field { margin-bottom: 16px; }
.del-card label {
  display: block;
  font-weight: 600;
  color: #001232;
  margin-bottom: 7px;
}
.del-card input[type="text"],
.del-card input[type="email"],
.del-card input[type="tel"],
.del-card select,
.del-card textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(0, 18, 50, .16);
  border-radius: 12px;
  font-family: inherit;
  font-size: .97rem;
  background: #fbfcfe;
  color: #001232;
  transition: border-color .2s, box-shadow .2s;
}
.del-card input:focus,
.del-card select:focus,
.del-card textarea:focus {
  outline: none;
  border-color: #FF9106;
  box-shadow: 0 0 0 3px rgba(255, 145, 6, .15);
}
.del-card .hint { display: block; color: #7a869e; font-size: .84rem; margin-top: 6px; }
.del-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .del-grid-2 { grid-template-columns: 1fr; } }

.del-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 145, 6, .07);
  border: 1px solid rgba(255, 145, 6, .3);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
}
.del-check input { margin-top: 5px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: #FF9106; }
.del-check span { color: #33415c; line-height: 1.8; font-size: .93rem; }

.del-warning {
  border-inline-start: 4px solid #d94a4a;
  background: rgba(217, 74, 74, .07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.del-warning p { margin: 0; color: #8c2f2f; line-height: 1.9; }

.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 22px; }
.form-msg.error { color: #c62828; }
.form-msg.ok { color: #1b7f3b; }

.honey { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* Success / processing state */
.del-success { max-width: 640px; margin: 0 auto; text-align: center; }
.del-success .success-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FF9106, #ffb457);
  color: #fff;
  font-size: 2.1rem;
  box-shadow: 0 12px 34px rgba(255, 145, 6, .35);
  animation: delPulse 2.4s ease-in-out infinite;
}
@keyframes delPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 34px rgba(255, 145, 6, .35); }
  50% { transform: scale(1.05); box-shadow: 0 18px 44px rgba(255, 145, 6, .5); }
}
.del-success h2 { color: #001232; margin-bottom: 12px; }
.del-success p { color: #4a5772; line-height: 2; }
.del-ticket {
  display: inline-block;
  margin: 16px 0 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(0, 18, 50, .06);
  color: #001232;
  font-weight: 700;
  letter-spacing: 1px;
}
.del-success .success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.legal-section { padding: 70px 0 80px; background: #f6f8fb; }
