/* Ebla Studio — legal pages of the COMPUTER experience: /desktop/{terms,privacy,cookies,accessibility}.html,
   in Hebrew (binding), and in Arabic and English under /desktop/ar/ and /desktop/en/.
   The HTML is generated by legal/build.sh: do not edit the pages by hand.

   The look comes from the studio and uses the same colours as /desktop/css/app.css: kiln-cream paper, the logo's brown ink,
   terracotta, and the turquoise glaze of the glazed pieces. The top edge of the page is "dipped" in glaze; the rings of the
   logo (the wheel seen from above) open the title. Frank Ruhl Libre for headings, Heebo for text. The table of contents
   stays beside the text while reading.

   Rules kept on purpose:
   - text sizes are rem/em, so the accessibility toolbar's text-size steps and browser zoom scale everything
     (at 200% zoom and above the page folds into one column: see the 60em rule);
   - backgrounds behind text are flat colours (no gradients or images), so contrast can be measured;
   - nothing is hidden or moved by JavaScript, and nothing animates. */

:root{
  --paper:#faf6f0;        /* kiln-cream paper */
  --paper-2:#fffdf9;      /* cards */
  --bisque:#f3e9db;
  --ink:#5c2a1e;          /* the logo's brown ink: headings */
  --text:#3b1d15;         /* body text */
  --soft:#6b5549;
  --terra:#b4532f;        /* terracotta: marks and the focus ring */
  --terra-deep:#8e3f22;   /* links */
  --glaze:#2a7f86;
  --rule:#e2d3bf;
  --serif:"Frank Ruhl Libre","Times New Roman",serif;
  --sans:Heebo,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --pad:clamp(1.25rem,4vw,3.5rem);
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:1.5rem}
body{margin:0;background:var(--paper);color:var(--text);font:400 1.0625rem/1.85 var(--sans);overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
::selection{background:#cfe6df;color:#1d1410}

a{color:var(--terra-deep);text-decoration-thickness:.08em;text-underline-offset:.22em}
a:hover{color:var(--ink)}
a[href^="tel:"]{white-space:nowrap}   /* a phone number never breaks at its hyphens */
:focus-visible{outline:3px solid var(--terra);outline-offset:3px}
.lg-main a:focus-visible,.lg-legal a:focus-visible,.lg-brand:focus-visible,.lg-skip:focus-visible{border-radius:6px}

.lg-skip{position:absolute;inset-inline-start:1rem;top:-6rem;z-index:100;padding:.7rem 1.1rem;border-radius:10px;background:var(--ink);color:var(--paper);font-weight:700;text-decoration:none}
.lg-skip:focus{top:1rem;color:var(--paper)}

.lg-wrap{max-width:72rem;margin-inline:auto;padding-inline:var(--pad)}

/* ── header ─────────────────────────────────────────────────────────────── */
.lg-glaze{display:block;width:100%;height:3.6rem}
.lg-head__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem 1.5rem;padding-block:.4rem 1.7rem}   /* wraps when the text is enlarged */
.lg-brand{display:inline-flex;align-items:center;gap:1rem;min-height:44px;color:var(--ink);text-decoration:none}
.lg-brand img{display:block;width:auto;height:5.75rem}
.lg-brand__name{font:700 1.65rem/1.1 var(--serif)}
.lg-brand:hover .lg-brand__name{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:.06em}

/* "back to the site": a hand-cut slab, slightly uneven */
.lg-back{display:inline-flex;align-items:center;gap:.35rem;min-height:46px;padding-block:.5rem;padding-inline:.85rem 1.3rem;
  border:1.5px solid var(--ink);border-radius:25px 22px 26px 21px / 22px 26px 21px 25px;
  color:var(--ink);font:700 1rem/1.2 var(--sans);text-decoration:none;white-space:nowrap}
.lg-back svg{flex:none;width:1.15rem;height:1.15rem}
.lg-back:hover{background:var(--ink);color:var(--paper)}
.lg-back:focus-visible{border-radius:25px 22px 26px 21px / 22px 26px 21px 25px}

/* ── title ──────────────────────────────────────────────────────────────── */
.lg-title{display:flex;align-items:center;gap:1.75rem;padding-block:2.6rem 2.4rem;border-top:1.5px solid var(--rule)}
.lg-rings{flex:none;display:block;width:6rem;height:6rem}
h1{margin:0;font:700 clamp(2.3rem,4.2vw,3.5rem)/1.12 var(--serif);color:var(--ink);letter-spacing:-.012em;text-wrap:balance}
.lg-updated{margin:.7rem 0 0;color:var(--soft);font-size:1rem;line-height:1.6}

/* ── two columns: contents beside the text ──────────────────────────────── */
.lg-cols{display:grid;grid-template-columns:16.5rem minmax(0,1fr);gap:clamp(2rem,5vw,4.75rem);align-items:start;padding-top:2.4rem;border-top:1.5px solid var(--rule)}
.lg-toc{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto;padding:.2rem .2rem 1rem}
.lg-toc__title{margin:0 0 .5rem;color:var(--soft);font:700 .85rem/1.4 var(--sans);letter-spacing:.04em}
.lg-toc__list{margin:0;padding:0;list-style:none;counter-reset:toc}
.lg-toc__list li{counter-increment:toc;border-top:1px dashed var(--rule)}
.lg-toc__list li:last-child{border-bottom:1px dashed var(--rule)}
.lg-toc__list a{display:flex;align-items:baseline;gap:.5rem;min-height:44px;padding:.65rem .25rem;color:var(--text);font-size:.97rem;line-height:1.45;text-decoration:none;border-radius:6px}
.lg-toc__list a::before{content:counter(toc) ".";flex:none;min-width:1.75em;font:700 1.05rem/1 var(--serif);color:var(--terra-deep)}
.lg-toc__list a:hover{color:var(--ink);background:var(--bisque)}
.lg-toc__list a:focus-visible{outline-offset:-3px}   /* inside the link: the sticky column clips anything outside it */

/* ── the document ───────────────────────────────────────────────────────── */
.lg-main{padding-bottom:1rem}
.lg-doc{max-width:44rem}
.lg-doc h2{display:flex;align-items:baseline;gap:.65rem;margin:3rem 0 1rem;padding-top:1.7rem;border-top:1px solid var(--rule);
  font:700 1.65rem/1.3 var(--serif);color:var(--ink);scroll-margin-top:1rem}
.lg-doc h2:first-of-type{margin-top:0;padding-top:0;border-top:0}
.lg-num{flex:none;color:var(--terra-deep)}
.lg-doc h3{margin:1.8rem 0 .5rem;font:700 1.25rem/1.35 var(--serif);color:var(--ink)}
.lg-doc p{margin:0 0 1.05rem}
.lg-doc strong{color:var(--ink)}

/* numbered clauses: the number hangs, the text keeps one straight edge */
.lg-clause{padding-inline-start:3.2em;text-indent:-3.2em}
.lg-clause__num{display:inline-block;min-width:3.2em;text-indent:0;font-weight:700;color:var(--ink)}

.lg-doc ul,.lg-doc ol{margin:0 0 1.05rem;padding-inline-start:1.4rem}
.lg-doc li{margin-bottom:.5rem;padding-inline-start:.25rem}
.lg-doc li::marker{color:var(--terra)}
.lg-doc code{direction:ltr;unicode-bidi:isolate;padding:.1em .4em;border-radius:6px;background:var(--bisque);color:var(--ink);
  font:500 .9em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* tables */
.tablewrap{margin:.2rem 0 1.4rem;border:1px solid var(--rule);border-radius:14px;overflow:hidden;background:var(--paper-2)}
table{width:100%;border-collapse:collapse;font-size:.97rem;line-height:1.6}
caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
th,td{padding:.85rem 1rem;border-bottom:1px solid var(--rule);text-align:start;vertical-align:top}
th{background:var(--bisque);color:var(--ink);font:700 .9rem/1.45 var(--sans)}
tbody tr:last-child td{border-bottom:0}
.lg-cell-label{display:none}

.lg-end{margin:3rem 0 0;padding-top:1.8rem;border-top:1px solid var(--rule)}

/* ── footer: the site's footer (logo, legal links, copyright, credit). The bottom padding keeps the accessibility button off the text. ── */
.lg-foot{margin-top:3.5rem;padding-block:2.6rem 6.5rem;background:var(--paper);border-top:1.5px solid var(--rule);color:var(--soft)}
.lg-foot__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem}
.lg-foot__logo{flex:none;display:block;width:auto;height:7.375rem}
.lg-legal{display:flex;flex-wrap:wrap;gap:.2rem 2rem}
.lg-legal a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:700;text-decoration:none}
.lg-legal a:hover{text-decoration:underline;text-underline-offset:5px}
.lg-legal a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:.12em;text-underline-offset:5px}   /* the page you are on */
.lg-foot__base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;margin-top:1.8rem;font-size:.98rem}
.lg-copy{margin:0;line-height:1.6}

/* DOR-B credit (fixed rule): one link, black badge, logo blended with "screen"; no opacity, transform or filter on the link, hover included */
.dorb-credit{flex:none;display:inline-flex;align-items:center;gap:.75rem;min-height:48px;padding:.625rem 1.125rem;border-radius:14px;background:#000;color:#fff;
  border:1px solid rgba(255,255,255,.22);box-shadow:0 6px 18px rgba(0,0,0,.18);font:600 .875rem/1.2 var(--sans);text-decoration:none}
.dorb-credit img{display:block;width:6.875rem;height:auto;mix-blend-mode:screen}
.dorb-credit:hover{color:#fff}
/* the English and Arabic credit text is longer: at 200% text the badge wraps (logo under the text) instead of leaving the screen */
.dorb-credit{flex-wrap:wrap;justify-content:center;max-width:100%}
.dorb-credit:focus-visible{outline-offset:3px;border-radius:14px}

/* ── narrow window, or a zoomed-in page: one column, tables as cards ────── */
@media (max-width:60em){
  .lg-cols{display:block;padding-top:1.6rem}
  .lg-toc{position:static;max-height:none;overflow:visible;margin-bottom:2.2rem;padding:1rem 1.2rem .4rem;border:1px solid var(--rule);border-radius:16px;background:var(--paper-2)}
  .lg-toc__list li:last-child{border-bottom:0}
  .lg-toc__list a{align-items:center}
  .lg-doc{max-width:none}
  .lg-title{gap:1.2rem;padding-block:2rem 1.8rem}
  .lg-rings{width:4.25rem;height:4.25rem}
}
@media (max-width:44em){
  .lg-glaze{height:2.6rem}
  .lg-brand img{height:4.25rem}
  .lg-brand__name{font-size:1.35rem}
  .lg-title{display:block}
  .lg-rings{margin-bottom:.9rem}
  .tablewrap{border:0;border-radius:0;overflow:visible;background:none}
  thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  table,tbody,tr,td{display:block}
  tr{margin-bottom:.9rem;padding:.3rem 1.05rem;border:1px solid var(--rule);border-radius:16px;background:var(--paper-2)}
  td{padding:.7rem 0;border-bottom:1px dashed var(--rule)}
  tbody tr:last-child td{border-bottom:1px dashed var(--rule)}
  td:last-child,tbody tr:last-child td:last-child{border-bottom:0}
  .lg-cell-label{display:block;margin-bottom:.1rem;color:var(--soft);font:700 .82rem/1.5 var(--sans)}
  .lg-foot__row,.lg-foot__base{flex-direction:column;justify-content:center;text-align:center}
}

/* ── three languages (Hebrew, binding · Arabic · English): language switch, translation note, direction and Arabic type ── */
.lg-head__tools{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .9rem}
.lg-langs ul{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
.lg-langs li+li{border-inline-start:1px solid var(--rule)}   /* a rule, not a "·" character: nothing extra for a screen reader */
.lg-langs a{display:inline-flex;align-items:center;min-height:44px;padding:0 .6rem;color:var(--ink);font:700 .95rem/1.2 var(--sans);text-underline-offset:4px}
.lg-langs a[aria-current]{color:var(--text);text-decoration:none}   /* the language you are reading: not underlined */
.lg-langs a:lang(ar){font-family:var(--sans-ar)}
.lg-binding{margin:1rem 0 0;padding:.8rem 1rem;border:1px solid var(--rule);border-inline-start:4px solid var(--glaze);border-radius:12px;background:var(--paper-2);color:var(--text);font-size:.95rem;line-height:1.65}
.lg-binding strong{color:var(--ink)}
/* English pages run left to right: the "back" chevron turns round */
[dir="ltr"] .lg-back svg{transform:scaleX(-1)}
/* Arabic: the self-hosted fonts have no Arabic letters, so Arabic text uses the system's Arabic fonts (nothing is downloaded);
   letter-spacing would break the joined letters */
:root{--sans-ar:Heebo,"Noto Sans Arabic","Geeza Pro","Segoe UI",Tahoma,system-ui,sans-serif;--serif-ar:"Frank Ruhl Libre","Noto Naskh Arabic","Times New Roman",serif}
html:lang(ar){--sans:var(--sans-ar);--serif:var(--serif-ar)}
html:lang(ar) h1,html:lang(ar) .lg-toc__title{letter-spacing:0}
html.a11y-contrast .lg-binding{border-color:#000}
/* long English words ("Accessibility", "Environments") in the contents list and the headings: at 200% text a flex item would not
   shrink below one word and pushed the page sideways; let such a word break only when it cannot fit */
.lg-toc__list a,.lg-doc h2,h1{overflow-wrap:anywhere}
.lg-back{white-space:normal;max-width:100%}   /* "Back to the site" may wrap at 200% text rather than stick out */

/* ── the accessibility toolbar, in the studio's colours (same values as the home page) ── */
.a11y-widget{--forest:#5c2a1e;--forest-soft:#7a3a2a;--canvas:#faf6f0;--canvas-deep:#ecdcc6;--panel:#fffdf9;--ink:#3b1d15;
  --accent:#d9a441;--accent-hover:#8e3f22;--accent-muted:#f1dcbd;--line:#e2d3bf;--text-secondary:#6b5549;
  --label:Heebo,system-ui,sans-serif}
/* the toolbar's own focus ring is its accent colour, which is too pale on cream paper: use the deep terracotta here */
.a11y-toggle:focus-visible,.a11y-item:focus-visible{outline-color:var(--terra-deep)}
.a11y-item[hidden]{display:none!important}
/* on a short window (or a zoomed-in page) the open panel was taller than the screen: let it scroll */
.a11y-panel{max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
/* toolbar modes that recolour every link or text would wipe out the credit badge, the skip link and the hover states: keep them readable */
html.a11y-contrast a.dorb-credit.dorb-credit,html.a11y-links a.dorb-credit.dorb-credit{background:#000!important;color:#fff!important;padding-inline:1.125rem}
html.a11y-contrast a.dorb-credit span.dorb-credit__text{color:#fff!important}
html.a11y-invert .dorb-credit img{filter:none}
html.a11y-contrast .lg-back:hover,html.a11y-contrast .lg-toc__list a:hover{background:transparent}
html.a11y-contrast .lg-foot{border-top-color:#000}
html.a11y-contrast .lg-skip{background:#fff!important;outline:3px solid #000}

@media print{
  .lg-skip,.lg-glaze,.lg-back,.lg-langs,.lg-toc,.lg-end,.lg-foot,.a11y-widget{display:none!important}
  html,body{background:#fff;color:#000}
  .lg-cols{display:block}
  .lg-doc h2{break-after:avoid}
  tr{break-inside:avoid}
  a{color:#000}
}
