:root {
  --orange: #F0801E;
  --charcoal: #1C1D20;
  --gray: #C8CCCF;
  --offwhite: #FDFEFE;
  --text: #2D2F33;
  --muted: #6D7278;
  --border: rgba(28,29,32,.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  background: #F7F8F8;
  color: var(--text);
  line-height: 1.72;
}

.legal-header {
  background:
    radial-gradient(circle at 80% 10%, rgba(240,128,30,.22), transparent 34%),
    var(--charcoal);
  color: var(--offwhite);
  padding: 24px 20px 72px;
}

.legal-nav {
  max-width: 1040px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 800;
}

.legal-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
}

.back-link {
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 600;
  opacity: .86;
}

.back-link:hover {
  opacity: 1;
}

.legal-hero {
  max-width: 1040px;
  margin: 58px auto 0;
}

.legal-hero span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  font-weight: 800;
}

.legal-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--gray);
}

.legal-main {
  max-width: 1040px;
  margin: -34px auto 70px;
  padding: 0 20px;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(28,29,32,.08);
  padding: clamp(26px, 5vw, 56px);
}

.legal-card h2 {
  margin: 36px 0 10px;
  color: var(--charcoal);
  font-size: 1.32rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul,
.legal-card ol {
  padding-left: 24px;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(240,128,30,.08);
  border: 1px solid rgba(240,128,30,.24);
  border-radius: 16px;
}

.action {
  display: inline-flex;
  margin-top: 10px;
  padding: 13px 18px;
  border-radius: 13px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.legal-footer {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 640px) {
  .legal-header {
    padding-bottom: 58px;
  }

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

  .back-link {
    font-size: .82rem;
  }

  .legal-card {
    border-radius: 20px;
  }
}

/* DzairFood legal language and contact controls */
.legal-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-lang-toggle {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #FDFEFE;
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin: 28px 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item strong {
  color: var(--orange);
}

.legal-page-links {
  display: flex;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.legal-page-links a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

html[lang="ar"] body {
  font-family: Cairo, Arial, sans-serif;
}

html[dir="rtl"] .legal-card ul,
html[dir="rtl"] .legal-card ol {
  padding-left: 0;
  padding-right: 24px;
}

@media(max-width:760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-controls {
    align-items: flex-end;
    flex-direction: column;
  }
}

/* DzairFood public account deletion request portal */
.delete-request-card {
  margin-top: 24px;
}

.delete-request-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.delete-request-card > h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.delete-request-form {
  margin-top: 28px;
}

.delete-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.delete-field label {
  color: var(--charcoal);
  font-weight: 700;
}

.delete-field input,
.delete-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.delete-field input:focus,
.delete-field select:focus {
  border-color: rgba(240,128,30,.75);
  box-shadow: 0 0 0 3px rgba(240,128,30,.10);
}

.delete-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  cursor: pointer;
}

.delete-confirmation input {
  margin-top: 5px;
}

.delete-submit {
  border: 0;
  cursor: pointer;
}

.delete-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.delete-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.delete-form-message {
  margin-top: 16px;
}

.delete-form-error {
  color: #B42318;
  font-weight: 600;
}

.delete-request-success {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(32,139,76,.20);
  border-radius: 16px;
  background: rgba(32,139,76,.07);
}

.delete-request-success strong {
  color: var(--charcoal);
}

.delete-support-note {
  margin-top: 26px;
}

.delete-support-note a {
  margin-inline-start: 6px;
  color: var(--orange);
  font-weight: 700;
}

html[dir="rtl"] .delete-confirmation {
  text-align: right;
}

/* DzairFood deletion portal final visual fixes */
.delete-request-card {
  position: relative;
  margin-top: 26px;
}

.delete-request-form {
  max-width: 720px;
  margin: 30px auto 0;
}

.delete-field {
  text-align: start;
}

.delete-field label {
  display: block;
  margin-bottom: 2px;
}

.delete-field input,
.delete-field select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(28,29,32,.14);
  border-radius: 14px;
  background-color: #fff;
  color: #1C1D20;
  font: inherit;
  font-size: .96rem;
}

.delete-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #6D7278 50%),
    linear-gradient(135deg, #6D7278 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

html[dir="rtl"] .delete-field select {
  background-position:
    20px 23px,
    15px 23px;
  padding-right: 15px;
  padding-left: 42px;
}

.delete-confirmation {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(28,29,32,.08);
  border-radius: 14px;
  background: #F9FAFA;
}

.delete-confirmation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.delete-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  margin-top: 18px;
}

.delete-honeypot,
.delete-honeypot *,
#delete-website {
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

html[dir="rtl"] .delete-request-card,
html[dir="rtl"] .delete-request-form,
html[dir="rtl"] .delete-field {
  text-align: right;
}

@media(max-width:640px) {
  .delete-request-card {
    padding: 24px 18px;
  }

  .delete-request-form {
    width: 100%;
  }

  .delete-submit {
    width: 100%;
  }
}

/* DzairFood account deletion SMS verification */
.delete-otp-step {
  max-width: 720px;
  margin: 30px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.delete-otp-step h3 {
  margin-top: 0;
  color: var(--charcoal);
  font-size: 1.4rem;
}

.delete-reference-line {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F7F8F8;
  word-break: break-word;
}

.delete-secondary-action {
  margin-inline-start: 10px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.delete-secondary-action:hover {
  color: var(--orange);
}

#delete-phone,
#delete-otp {
  direction: ltr;
}

html[dir="rtl"] #delete-phone,
html[dir="rtl"] #delete-otp {
  text-align: right;
}

@media(max-width:640px) {
  .delete-secondary-action {
    display: block;
    width: 100%;
    margin: 10px 0 0;
  }
}
