/* Sanabel's privacy policy: a long text, one page per language (/privacy/, /ar/privacy/, /es/privacy/), so it is an ordinary page that
   scrolls, with its own sheet. The look is the site's (style.css): the same colours and fonts, the cream strips for header and footer with
   the same language switcher, the cream ticket with a hard shadow for the summary. The tokens and fonts below repeat style.css on purpose:
   change both. Logical properties and [dir="rtl"] rules do the right to left. */

@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Marhey"; src: url("/fonts/marhey-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --cream: #FFF6DC;
  --ink: #3A2A10;
  --ink-soft: #5E5440;
  --forest: #2D5F3F;
  --forest-deep: #1F4A2D;
  --honey: #E9B949;
  --honey-deep: #D4A24C;
  --muted: #7A6A4A;

  --display: "Marhey", "Tajawal", "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif;
  --body: "Tajawal", "Segoe UI", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; text-wrap: balance; color: var(--forest-deep); }
.skip { position: absolute; inset-inline-start: 12px; top: 0; transform: translateY(-150%); background: var(--forest); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { transform: translateY(12px); }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---- Header: the site's strip of cream ticket, perforated along its lower edge. It stays on top, so the language links are always there. ---- */
.bar { position: sticky; top: 0; z-index: 20; filter: drop-shadow(0 5px 0 var(--ink)); }
.top { background: var(--cream); padding-block: 8px 20px;
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) left top / 30px 100% repeat-x; mask: radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) left top / 30px 100% repeat-x; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.langs { display: flex; gap: 6px; font-size: 0.95rem; }
.langs a { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.langs a:hover { background: var(--ink); color: var(--cream); }
.langs a[aria-current="page"] { background: var(--ink); color: var(--cream); font-weight: 700; }
@media (max-width: 479px) {
  .brand { gap: 6px; } .brand img { width: 34px; } .brand span { font-size: 1.3rem; }
  .langs { gap: 0; } .langs a { padding: 3px 7px; font-size: 0.8rem; }
}
@media (max-width: 340px) {
  .brand span { font-size: 1.15rem; } .brand img { width: 30px; }
  .langs a { padding: 2px 5px; font-size: 0.74rem; }
}

/* ---- The text: h1, then the summary ticket, then the numbered items in h2 (the Arabic text also has a few h3 under them) ---- */
.doc { max-width: 780px; margin-inline: auto; padding: 44px 20px 72px; }
[lang="ar"] .doc { line-height: 1.95; font-size: 1.125rem; }
.doc h1 { text-align: center; font-size: clamp(1.6rem, 5vw, 2.4rem); margin-block-end: 28px; }
.doc h2 { font-size: 1.3rem; margin-block: 36px 10px; padding-block-end: 8px; border-block-end: 3px dashed rgb(58 42 16 / 0.22); }
.doc h3 { font-size: 1.08rem; margin-block: 22px 6px; color: var(--ink); }
h2 + p, h3 + p { margin-block-start: 0; }
p + p, p + ul, ul + p { margin-block-start: 12px; }
ul { padding-inline-start: 1.5rem; list-style: disc; }
li { margin-block-end: 7px; }
li::marker { color: var(--forest); }
strong { color: var(--ink); }
code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--cream); padding: 1px 7px; border-radius: 6px; }

/* the summary at the top of the page: a cream ticket with a hard shadow that falls toward the end of the line */
.card { background: var(--cream); border: 3px dashed var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 24px 20px; margin-block: 8px 28px; }
[dir="rtl"] .card { box-shadow: -6px 6px 0 var(--ink); }

.meta { margin-block-start: 64px; padding-block-start: 16px; border-block-start: 2px dashed rgb(58 42 16 / 0.3); font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.foot-bar { position: relative; z-index: 10; filter: drop-shadow(0 -5px 0 var(--ink)); }
.foot { background: var(--cream); color: var(--ink-soft); font-size: 0.95rem; padding-block: 16px 14px;
  -webkit-mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) left top / 30px 100% repeat-x; mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) left top / 30px 100% repeat-x; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.f-copy { font-family: var(--display); color: var(--ink); }
.f-links { display: flex; flex-wrap: wrap; gap: 4px; }
.f-links a { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.f-links a:hover { background: var(--ink); color: var(--cream); }

@media print {
  .bar, .skip, .foot-bar { display: none; }
  .doc { padding: 0; max-width: none; }
  .card { box-shadow: none; }
}
