/* unidash.food policy pages (2026-10-14): terms, refunds, cancellation, privacy and their Arabic
   twins. Presentation only: the legal text in each page is unchanged and must stay so (owner
   sign-off, site/README.md). These pages also open inside both apps' legal viewer, so they stay
   light: no motion beyond a reading progress line, nothing hidden without JavaScript. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/assets/fonts/epilogue-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  color-scheme: light dark;
  --blue: #1533BF; --blue-ink: #0C2494; --blue-soft: #E6EAFC; --blue-tint: #F1F3FE; --peri: #8CA1FF;
  --ink: #111827; --ink-2: #374151; --muted: #5B6474; --bg: #F8FAFC; --card: #FFFFFF;
  --line: rgba(17, 24, 39, 0.09); --line-2: rgba(17, 24, 39, 0.14);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Epilogue", "Inter", system-ui, sans-serif;
  --link: var(--blue);
}
:root[lang="ar"] {
  --font-body: "Plex Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Plex Arabic", "Epilogue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F5FB; --ink-2: #D3D9E8; --muted: #A9B3C9; --bg: #060B26; --card: #0F1638;
    --blue-soft: #18215A; --blue-tint: #0C1440; --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.15);
    --link: var(--peri);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:root[lang="ar"] body { line-height: 1.95; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 4px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ─── Header bar ─── */
.lg-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.lg-bar { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.15rem/1 "Epilogue", "Inter", sans-serif; letter-spacing: -0.03em; }
.lg-brand .logo-tile { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.lg-brand .logo-tile svg { width: 20px; height: auto; display: block; }
.lg-lang { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.lg-lang:hover { background: var(--blue-soft); }
.lg-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; pointer-events: none; }
.lg-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--peri)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
:root[dir="rtl"] .lg-progress i { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--blue), var(--peri)); }

/* ─── Title band ─── */
.wrap { max-width: 780px; margin: 0 auto; padding: 56px 20px 96px; position: relative; }
.wrap > h1 {
  font: 700 clamp(2.3rem, 5.4vw, 3.6rem)/1.02 var(--font-display); letter-spacing: -0.045em; color: var(--ink);
  margin: 0 0 18px; text-wrap: balance;
}
:root[lang="ar"] .wrap > h1 { letter-spacing: 0; line-height: 1.3; }
.meta {
  display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 28px;
  font-size: 0.88rem; color: var(--muted); padding: 7px 14px; border-radius: 999px; background: var(--blue-tint); border: 1px solid var(--line);
}
.meta strong { color: var(--ink); font-weight: 600; }

/* ─── Text ─── */
h2 {
  font: 650 clamp(1.35rem, 2.6vw, 1.7rem)/1.25 var(--font-display); letter-spacing: -0.025em; color: var(--ink);
  margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); text-wrap: balance;
}
:root[lang="ar"] h2 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
h3 { font: 650 1.12rem/1.4 var(--font-display); color: var(--ink); margin: 30px 0 8px; letter-spacing: -0.01em; }
:root[lang="ar"] h3 { letter-spacing: 0; font-weight: 700; }
p { margin: 0 0 1.05em; }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
li { margin: 0.35em 0; }
li::marker { color: var(--blue); }
@media (prefers-color-scheme: dark) { li::marker { color: var(--peri); } }
code { font-size: 0.9em; background: var(--blue-tint); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* tables scroll sideways on small screens instead of squeezing */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0 26px; font-size: 0.94rem; line-height: 1.6; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
@media (max-width: 640px) { table { display: block; overflow-x: auto; } }
th, td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--blue-tint); color: var(--ink); font-weight: 650; }
td + td, th + th { border-inline-start: 1px solid var(--line); }

.callout {
  margin: 22px 0; padding: 16px 20px; border-radius: 14px;
  background: var(--blue-tint); border: 1px solid var(--line); border-inline-start: 4px solid var(--blue);
  color: var(--ink-2);
}
@media (prefers-color-scheme: dark) { .callout { border-inline-start-color: var(--peri); } }
.short {
  margin: 24px 0 8px; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(9, 26, 115, 0.05), 0 12px 32px rgba(9, 26, 115, 0.06);
}
.short ul { margin-bottom: 0; }

footer {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-2);
  color: var(--muted); font-size: 0.9rem; line-height: 2;
}

/* ─── On this page (built by legal.js on wide screens) ─── */
.lg-toc { display: none; }
@media (min-width: 1240px) {
  .lg-toc {
    display: block; position: fixed; top: 110px; inset-inline-start: max(20px, calc(50% - 390px - 260px));
    width: 220px; max-height: calc(100vh - 140px); overflow: auto; font-size: 0.86rem; line-height: 1.45;
  }
  .lg-toc b { display: block; font: 600 0.74rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  :root[lang="ar"] .lg-toc b { letter-spacing: 0; font-size: 0.85rem; }
  .lg-toc a { display: block; padding: 6px 12px; color: var(--muted); text-decoration: none; border-inline-start: 2px solid var(--line); transition: color 0.2s, border-color 0.2s; }
  .lg-toc a:hover { color: var(--ink); }
  .lg-toc a.is-on { color: var(--blue); border-inline-start-color: var(--blue); font-weight: 600; }
  @media (prefers-color-scheme: dark) { .lg-toc a.is-on { color: var(--peri); border-inline-start-color: var(--peri); } }
}

@media print {
  .lg-head, .lg-progress, .lg-toc { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { padding-top: 0; }
}
