/* =============================================================================
   DATENSCHUTZ REDESIGN — body.privacy-page
   Date: 2026-05-07 · Clean rewrite per admin_redesign_playbook.md
   (customer-page adaptation). Replaces the broken
   `body.privacy-page * { all: revert !important }` strip artifact left
   behind by an earlier session.

   Paradigm: "Long-read article — eyebrow byline · giant H1 · sticky
              table-of-contents rail · hairline-numbered sections ·
              reading-progress + back-to-top." No card-on-card. Hairlines
              and air separate sections.

   Owns: page shell, top rail, hero, TOC, article sections, rights grid,
         contact tail, reading-progress bar, back-to-top, footer,
         language-menu restyle, cookie-info-banner restyle, RTL + Cairo,
         reduced-motion.

   Reused from legal-core.css (shared with kontakt/impressum/AGB):
     * { box-sizing: border-box }, body padding+gradient, @font-face Cairo,
     anchor base color. Everything else is owned here under the
     body.privacy-page scope.
   ============================================================================= */

/* §1 — Scoped tokens (light only — page meta sets color-scheme: light) */
body.privacy-page {
  --dse-content-max: min(1180px, 100%);
  --dse-stack-gap: clamp(28px, 4vw, 44px);
  --dse-section-gap: clamp(20px, 2.6vw, 32px);
  --dse-prose-max: 70ch;

  --dse-ink: #0f172a;
  --dse-ink-strong: #050b16;
  --dse-ink-muted: #5a6473;
  --dse-ink-subtle: #8a94a3;
  --dse-hairline: rgba(15, 23, 42, 0.10);
  --dse-hairline-strong: rgba(15, 23, 42, 0.18);

  --dse-accent: #1a73e8;
  --dse-accent-strong: #0f5bcc;
  --dse-accent-soft: rgba(26, 115, 232, 0.10);
  --dse-accent-soft-hover: rgba(26, 115, 232, 0.16);
  --dse-accent-on: #ffffff;

  --dse-warn: #b45309;
  --dse-warn-soft: rgba(180, 83, 9, 0.10);

  --dse-radius-pill: 999px;
  --dse-radius-md: 12px;
  --dse-radius-sm: 8px;
  --dse-radius-lg: 18px;

  --dse-touch: 44px;
  --dse-touch-sm: 38px;

  --dse-cairo-stack: "Cairo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dse-system-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

/* §2 — Strip (additive, scoped). The previous attempt used
   `body.privacy-page * { all: revert !important }` which hid every img/svg.
   Replaced with: override the body essentials (font + ink) that legal-core
   sets, and rely on the new partial to simply NOT use card/grid/badge
   classes. The classes are still defined in legal-core.css for siblings;
   they're harmless because we don't apply them. */
body.privacy-page {
  color: var(--dse-ink);
  font-family: var(--dse-system-stack);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* §3 — Page shell + top rail.
   Specificity bumped to (0,3,0) via `body.privacy-page.page-shell` so we
   win over batch7-polish.css's `body.page-shell .page-width { max-width:
   100% }` rule which would otherwise un-constrain the content frame. */
body.privacy-page.page-shell .page-width,
body.privacy-page .page-width {
  width: 100%;
  max-width: var(--dse-content-max);
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--dse-stack-gap);
}

body.privacy-page .skip-link {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 12px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--dse-ink-strong);
  color: #fff;
  border-radius: var(--dse-radius-md);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.16s ease;
}
body.privacy-page .skip-link:focus {
  transform: translateY(0);
}

body.privacy-page .dse-toprail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
  border-block-end: 1px solid var(--dse-hairline);
}
body.privacy-page .dse-toprail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--dse-touch);
  padding-inline: 6px;
  color: var(--dse-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--dse-radius-md);
  transition: color 0.16s ease;
}
body.privacy-page .dse-toprail__back:hover,
body.privacy-page .dse-toprail__back:focus-visible {
  color: var(--dse-accent-strong);
  outline: none;
}
body.privacy-page .dse-toprail__back-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* §4 — Hero block (eyebrow byline + giant H1 + lead + meta tags) */
body.privacy-page .dse-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block-end: 8px;
}
body.privacy-page .dse-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dse-ink-subtle);
}
body.privacy-page .dse-hero__eyebrow-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dse-ink-subtle);
}
body.privacy-page .dse-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--dse-ink-strong);
  max-width: 22ch;
  word-break: break-word;
  overflow-wrap: anywhere;
}
body.privacy-page .dse-hero__lead {
  margin: 0;
  color: var(--dse-ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  max-width: 60ch;
}
body.privacy-page .dse-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--dse-ink-muted);
}
body.privacy-page .dse-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.privacy-page .dse-hero__meta li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dse-ink-subtle);
  margin-inline-end: 4px;
}
body.privacy-page .dse-hero__meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--dse-accent);
}

/* §5 — Article frame (grid with TOC rail on desktop) */
body.privacy-page .dse-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--dse-stack-gap);
  align-items: start;
}
body.privacy-page .dse-toc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 14px;
  border-block-start: 1px solid var(--dse-hairline);
  border-block-end: 1px solid var(--dse-hairline);
}
body.privacy-page .dse-toc__label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dse-ink-subtle);
}
body.privacy-page .dse-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 12px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 12px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}
body.privacy-page .dse-toc__list::-webkit-scrollbar {
  display: none;
}
body.privacy-page .dse-toc__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
body.privacy-page .dse-toc__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--dse-touch-sm);
  padding-inline: 12px;
  border-radius: var(--dse-radius-pill);
  border: 1px solid var(--dse-hairline);
  background: #ffffff;
  color: var(--dse-ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
body.privacy-page .dse-toc__link:hover,
body.privacy-page .dse-toc__link:focus-visible {
  color: var(--dse-accent-strong);
  border-color: var(--dse-accent);
  background: var(--dse-accent-soft);
  outline: none;
}
body.privacy-page .dse-toc__link[aria-current="true"],
body.privacy-page .dse-toc__link.is-active {
  color: var(--dse-accent-strong);
  border-color: var(--dse-accent);
  background: var(--dse-accent-soft-hover);
}
body.privacy-page .dse-toc__num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--dse-ink-subtle);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
body.privacy-page .dse-toc__link[aria-current="true"] .dse-toc__num,
body.privacy-page .dse-toc__link.is-active .dse-toc__num {
  color: var(--dse-accent-strong);
}

/* §6 — Article + sections */
body.privacy-page .dse-article {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
body.privacy-page .dse-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: clamp(20px, 3vw, 32px);
  border-block-end: 1px solid var(--dse-hairline);
  scroll-margin-block-start: 64px;
}
body.privacy-page .dse-section:first-child {
  padding-block-start: clamp(8px, 2vw, 16px);
}
body.privacy-page .dse-section:last-child {
  border-block-end: 0;
}
body.privacy-page .dse-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
body.privacy-page .dse-section__num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dse-ink-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.privacy-page .dse-section__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--dse-ink-strong);
  line-height: 1.2;
  max-width: 32ch;
  flex: 1 1 auto;
  min-width: 0;
}
body.privacy-page .dse-section__lede {
  margin: 0;
  color: var(--dse-ink);
  max-width: var(--dse-prose-max);
  font-size: 1rem;
}
body.privacy-page .dse-section p {
  margin: 0;
  color: var(--dse-ink);
  max-width: var(--dse-prose-max);
}
body.privacy-page .dse-section p + p {
  margin-block-start: 8px;
}

body.privacy-page .dse-subsection {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 10px;
}
body.privacy-page .dse-subsection + .dse-subsection {
  border-block-start: 1px dashed var(--dse-hairline);
}
body.privacy-page .dse-subsection__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
body.privacy-page .dse-subsection__num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dse-ink-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 2.6em;
}
body.privacy-page .dse-subsection__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dse-ink-strong);
  letter-spacing: -0.005em;
}
body.privacy-page .dse-subsection p {
  color: var(--dse-ink-muted);
}

body.privacy-page .dse-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--dse-prose-max);
}
body.privacy-page .dse-list li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--dse-ink);
}
body.privacy-page .dse-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dse-accent);
}

body.privacy-page .dse-checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--dse-prose-max);
}
body.privacy-page .dse-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dse-ink);
  font-weight: 500;
}
body.privacy-page .dse-checks__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #047857;
  margin-block-start: 0.18em;
}

/* §7 — Rights grid (section 5 — special block) */
body.privacy-page .dse-rights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-block-start: 4px;
  border-block-start: 1px solid var(--dse-hairline);
  border-inline-start: 1px solid var(--dse-hairline);
}
body.privacy-page .dse-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 2vw, 18px);
  border-inline-end: 1px solid var(--dse-hairline);
  border-block-end: 1px solid var(--dse-hairline);
  background: #ffffff;
  min-width: 0;
}
body.privacy-page .dse-right__icon {
  width: 22px;
  height: 22px;
  color: var(--dse-accent);
  flex-shrink: 0;
}
body.privacy-page .dse-right__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dse-ink-strong);
}
body.privacy-page .dse-right p {
  margin: 0;
  color: var(--dse-ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: none;
}

/* §8 — Contact tail */
body.privacy-page .dse-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-block-start: 4px;
  max-width: 720px;
}
body.privacy-page .dse-contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--dse-hairline);
  border-radius: var(--dse-radius-md);
  background: #ffffff;
  text-decoration: none;
  color: var(--dse-ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-height: var(--dse-touch);
  min-width: 0;
}
body.privacy-page .dse-contact__row:hover,
body.privacy-page .dse-contact__row:focus-visible {
  border-color: var(--dse-accent);
  transform: translateY(-1px);
  outline: none;
}
body.privacy-page .dse-contact__icon {
  width: 22px;
  height: 22px;
  color: var(--dse-accent);
  flex-shrink: 0;
}
body.privacy-page .dse-contact__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
body.privacy-page .dse-contact__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dse-ink-subtle);
}
body.privacy-page .dse-contact__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dse-ink-strong);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* §9 — Reading-progress bar + back-to-top */
body.privacy-page .dse-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}
body.privacy-page .dse-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--dse-accent), var(--dse-accent-strong));
  transition: width 0.12s linear;
  transform-origin: 0 50%;
}

body.privacy-page .dse-toplink {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dse-hairline-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--dse-ink-strong);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
body.privacy-page .dse-toplink[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.privacy-page .dse-toplink:hover,
body.privacy-page .dse-toplink:focus-visible {
  border-color: var(--dse-accent);
  color: var(--dse-accent-strong);
  outline: none;
}
body.privacy-page .dse-toplink__icon {
  width: 18px;
  height: 18px;
}

/* §10 — Footer (matches impressum sibling — plain centred text links,
   small muted copyright. No pill chrome, no border, no background.) */
body.privacy-page .dse-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 14px 6px;
  margin-block-start: 8px;
}
body.privacy-page .dse-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 18px;
}
body.privacy-page .dse-footer__link {
  color: var(--dse-ink-muted);
  font-weight: 400;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 2px 0;
  background: transparent;
  border: 0;
  transition: color 0.16s ease;
}
body.privacy-page .dse-footer__link:hover,
body.privacy-page .dse-footer__link:focus-visible {
  color: var(--dse-ink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  outline: none;
}
body.privacy-page .dse-footer__link[aria-current="page"] {
  color: var(--dse-ink);
  font-weight: 500;
}
body.privacy-page .dse-footer__note {
  margin: 0;
  text-align: center;
  color: var(--dse-ink-subtle);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  unicode-bidi: plaintext;
}
body.privacy-page .dse-footer__note strong {
  color: var(--dse-ink-muted);
  font-weight: 500;
}

/* Platform attribution ("Ein Service von gastrozukunft.de") is appended
   to the body by restaurant-profile.js. Match the page content cap so the
   row aligns with the footer above it. */
body.privacy-page .gz-platform-attribution {
  max-width: var(--dse-content-max);
  margin-inline: auto;
}

/* §11 — Language menu restyle (replaces legal-core defaults under
   privacy-page scope so the slim toprail aesthetic is consistent). */
body.privacy-page .rt-lang-menu {
  position: relative;
  z-index: 40;
}
body.privacy-page .rt-lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--dse-touch-sm);
  padding: 6px 10px;
  border-radius: var(--dse-radius-pill);
  border: 1px solid var(--dse-hairline-strong);
  background: #ffffff;
  color: var(--dse-ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
body.privacy-page .rt-lang-menu__toggle:hover,
body.privacy-page .rt-lang-menu__toggle:focus-visible {
  border-color: var(--dse-accent);
  color: var(--dse-accent-strong);
  outline: none;
}
body.privacy-page .rt-lang-menu__toggle img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
body.privacy-page .rt-lang-menu__chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}
body.privacy-page .rt-lang-menu__dropdown {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: 180px;
  max-height: min(320px, 70vh);
  overflow: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: var(--dse-radius-md);
  background: #ffffff;
  border: 1px solid var(--dse-hairline-strong);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}
body.privacy-page .rt-lang-menu[data-open="true"] .rt-lang-menu__dropdown {
  display: flex;
}
body.privacy-page .rt-lang-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--dse-touch-sm);
  width: 100%;
  border: 0;
  padding: 8px 10px;
  border-radius: var(--dse-radius-sm);
  background: transparent;
  color: var(--dse-ink);
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}
body.privacy-page .rt-lang-menu__item img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
body.privacy-page .rt-lang-menu__item:hover,
body.privacy-page .rt-lang-menu__item:focus-visible {
  background: var(--dse-accent-soft);
  color: var(--dse-accent-strong);
  outline: none;
}
body.privacy-page .rt-lang-menu__item[aria-current="true"] {
  background: var(--dse-accent-soft-hover);
  color: var(--dse-accent-strong);
  font-weight: 700;
}
body.privacy-page .rt-lang-menu__item[data-lang="ar"] {
  font-family: var(--dse-cairo-stack);
}

/* §12 — Desktop layout: TOC becomes a sticky right rail next to the
   article. Mobile stays single-column with the chip rail above. */
@media (min-width: 1024px) {
  body.privacy-page .dse-frame {
    grid-template-columns: minmax(0, 1fr) 232px;
    column-gap: 56px;
    row-gap: var(--dse-stack-gap);
  }
  body.privacy-page .dse-article {
    grid-column: 1;
    grid-row: 1;
  }
  body.privacy-page .dse-toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    inset-block-start: 24px;
    align-self: start;
    flex-direction: column;
    padding: 16px 14px;
    border: 1px solid var(--dse-hairline);
    border-radius: var(--dse-radius-md);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  body.privacy-page .dse-toc__list {
    flex-direction: column;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: none;
    gap: 4px;
  }
  body.privacy-page .dse-toc__item {
    flex: 0 0 auto;
    width: 100%;
  }
  body.privacy-page .dse-toc__link {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    border-radius: var(--dse-radius-sm);
    padding-inline: 10px;
    padding-block: 6px;
    min-height: 36px;
    font-size: 0.92rem;
    line-height: 1.3;
    white-space: normal;
    text-align: start;
  }
  body.privacy-page .dse-toc__link:hover,
  body.privacy-page .dse-toc__link:focus-visible {
    background: var(--dse-accent-soft);
  }
  body.privacy-page .dse-toc__link[aria-current="true"],
  body.privacy-page .dse-toc__link.is-active {
    background: var(--dse-accent-soft-hover);
    border-inline-start: 2px solid var(--dse-accent);
    padding-inline-start: 8px;
    border-radius: 0 var(--dse-radius-sm) var(--dse-radius-sm) 0;
  }
}

/* §13 — Tablet refinements */
@media (min-width: 641px) and (max-width: 1023px) {
  body.privacy-page .dse-section__head {
    align-items: baseline;
  }
  body.privacy-page .dse-rights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* §14 — Mobile refinements (≤640px). Re-set every desktop property the
   media query cares about (per playbook A12). */
@media (max-width: 640px) {
  body.privacy-page .dse-toprail__back span {
    display: inline;
  }
  body.privacy-page .rt-lang-menu__toggle [data-rt-lang-current] {
    display: none;
  }
  body.privacy-page .dse-hero {
    gap: 12px;
  }
  body.privacy-page .dse-hero__title {
    max-width: none;
  }
  body.privacy-page .dse-hero__meta {
    font-size: 0.88rem;
  }
  body.privacy-page .dse-section {
    padding-block: 22px;
  }
  body.privacy-page .dse-section__title {
    max-width: none;
  }
  body.privacy-page .dse-rights {
    grid-template-columns: 1fr;
    border-inline-start: 0;
    border-block-start: 1px solid var(--dse-hairline);
  }
  body.privacy-page .dse-right {
    border-inline-end: 0;
  }
  body.privacy-page .dse-contact {
    grid-template-columns: 1fr;
  }
  body.privacy-page .dse-toplink {
    inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 14px;
  }
}

/* §15 — RTL discipline (Arabic). Logical CSS already handles most things;
   these are the explicit physical-axis overrides for transforms and one-way
   icons, scoped at html level so the rules reach side-sheets/popovers too. */
html[dir="rtl"] body.privacy-page .dse-toprail__back-icon,
html[lang="ar"] body.privacy-page .dse-toprail__back-icon {
  transform: scaleX(-1);
}
html[dir="rtl"] body.privacy-page .dse-toc__list,
html[lang="ar"] body.privacy-page .dse-toc__list {
  mask-image: linear-gradient(
    to left,
    transparent 0,
    #000 12px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    transparent 0,
    #000 12px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}
@media (min-width: 1024px) {
  html[dir="rtl"] body.privacy-page .dse-toc__list,
  html[lang="ar"] body.privacy-page .dse-toc__list {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
html[dir="rtl"] body.privacy-page .dse-progress__bar,
html[lang="ar"] body.privacy-page .dse-progress__bar {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

/* §16 — Cairo font for every Arabic glyph in the page scope.
   `font-family: inherit` on form controls preserves Cairo through inputs/
   buttons/selects/textarea (legal-core sets that already, kept here for
   defensiveness in case the page is loaded without the shared file). */
html[lang="ar"] body.privacy-page,
html[dir="rtl"] body.privacy-page,
body.privacy-page.cairo-font {
  font-family: var(--dse-cairo-stack);
}
html[lang="ar"] body.privacy-page button,
html[lang="ar"] body.privacy-page input,
html[lang="ar"] body.privacy-page select,
html[lang="ar"] body.privacy-page textarea,
html[dir="rtl"] body.privacy-page button,
html[dir="rtl"] body.privacy-page input,
html[dir="rtl"] body.privacy-page select,
html[dir="rtl"] body.privacy-page textarea {
  font-family: inherit;
}
/* Phone numbers stay LTR even in Arabic context */
html[lang="ar"] body.privacy-page .js-restaurant-phone,
html[dir="rtl"] body.privacy-page .js-restaurant-phone {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* §17 — Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.privacy-page .dse-toplink,
  body.privacy-page .dse-progress__bar,
  body.privacy-page .dse-contact__row,
  body.privacy-page .dse-toc__link,
  body.privacy-page .dse-footer__link {
    transition: none !important;
  }
}
