/*
 * Bacher landing page and privacy policy. Plain CSS, no build step.
 * Colours, type and shapes follow docs/BRAND.md and mobile_app/lib/theme/app_theme.dart.
 * The fonts are the app's own IBM Plex Sans Arabic files (fonts/OFL.txt).
 */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #146a50;
  --forest-hover: #0f5a43;
  --lime: #d5fa70;
  --cream: #fafcf7;
  --paper: #ffffff;
  --ink: #182333;
  /* The app's muted grey (#717986) is 4.2:1 on cream; this one passes WCAG AA. */
  --muted: #5e6673;
  --line: #e5e8e9;
  --navy: #12192a;
  --deep: #173f34;
  --on-deep: #cfe3d8;
  --soft: #edf4e9;
  --soft-strong: #dce8cd;
  --soft-ink: #2f5a3f;
  --quiet: #f1f3ee;
  --amber-bg: #fff7e5;
  --amber-line: #f0dcb6;
  --amber-ink: #8a5a00;
  --gutter: 16px;
  --wrap: 1120px;
  --radius: 20px;
  color-scheme: light;
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-synthesis: none;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong,
b {
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:hover {
  color: var(--forest-hover);
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--lime);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Latin names (Google Play, App Store) stay on one line; addresses may wrap. */
.latin {
  unicode-bidi: isolate;
  white-space: nowrap;
}

a.latin {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Numbered lists count in Arabic-Indic digits, like the rest of the text. */
ol {
  list-style-type: arabic-indic;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -120px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Header */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-tile {
  width: 40px;
  height: 40px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--forest);
}

/* Phones get no section menu: the page is one short scroll. */
.site-nav {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
}

/* Shared section pieces */

.section {
  padding-block: 56px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 88px;
  }
}

.eyebrow {
  color: var(--forest);
  font-size: 0.9375rem;
  font-weight: 600;
}

.section-title {
  margin-top: 6px;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 44rem;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
}

.pill-soon {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.text-link .icon {
  width: 20px;
  height: 20px;
}

/* Hero */

.hero {
  padding-block: 36px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero {
    padding-block: 56px 64px;
  }
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-eyebrow .icon {
  width: 20px;
  height: 20px;
  color: var(--forest);
}

.hero h1 {
  margin-top: 18px;
}

.hero-name {
  display: block;
  color: var(--forest);
  font-size: clamp(3.25rem, 2.2rem + 5vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-promise {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.375rem);
  line-height: 1.45;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.9;
}

@media (min-width: 900px) {
  .hero-lead {
    font-size: 1.1875rem;
  }
}

/* Store buttons: one slot per store, filled by site.js from links.js */

.download {
  margin-top: 28px;
}

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr));
  gap: 12px;
  max-width: 460px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-slot {
  display: flex;
  min-height: 62px;
}

.store {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 16px;
  text-decoration: none;
}

.store-live {
  background: var(--forest);
  color: #ffffff;
}

.store-live:hover {
  background: var(--forest-hover);
  color: #ffffff;
}

.store-soon {
  background: var(--quiet);
  border: 1px solid var(--line);
  color: var(--muted);
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.store-small {
  font-size: 0.8125rem;
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.store-live .store-name {
  color: #ffffff;
}

.store-soon .store-name {
  color: var(--ink);
}

/* Without scripts the slots stay empty; the <noscript> note explains instead. */
@media (scripting: none) {
  .stores {
    display: none;
  }
}

.store-fallback {
  max-width: 460px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--amber-line);
  border-radius: 14px;
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.qr {
  display: none;
}

@media (min-width: 900px) {
  .qr:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }
}

.qr img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
}

.qr figcaption {
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 14px;
  border: 1px solid var(--soft-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.promises .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  color: var(--forest);
}

/* The phone illustration beside the hero text. Decorative: hidden from assistive technology. */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 8px;
}

.phone {
  width: 100%;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--cream);
  font-size: 12px;
  line-height: 1.5;
}

.phone-wrap {
  position: relative;
  width: min(290px, 100%);
}

/* Small screens: a shorter phone whose book grid slides under the tab bar. */
@media (max-width: 899px) {
  .phone-wrap,
  .phone {
    width: min(270px, 100%);
  }

  .phone-screen {
    height: 430px;
  }
}

.ph-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 6px;
}

.ph-tile {
  width: 28px;
  height: 28px;
}

.ph-brand {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.ph-child {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  line-height: 1.3;
}

.ph-child small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.ph-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--soft-strong);
  color: var(--soft-ink);
}

.ph-avatar .icon {
  width: 16px;
  height: 16px;
}

.ph-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 16px 0;
}

.ph-eyebrow {
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
}

.ph-title {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.ph-grade {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 11px;
}

.ph-section {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

.ph-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.ph-book {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 4 / 5;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.ph-book small {
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
}

.ph-book-reading {
  background: #c9d4f7;
  color: #1b2a5c;
}

.ph-book-math {
  background: #e8cd8a;
  color: #4a3a16;
}

.ph-book-science {
  background: var(--forest);
  color: #f2f7c9;
}

.ph-book-english {
  background: #d9c7ef;
  color: #3f2a63;
}

.ph-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.ph-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ph-nav .icon {
  width: 40px;
  height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
}

.ph-nav .is-active .icon {
  background: var(--lime);
}

.float-chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.float-chip .icon {
  width: 18px;
  height: 18px;
  color: var(--forest);
  stroke-width: 2.4;
}

/* The chips hang off the phone's edges only where the column leaves room for them. */
@media (min-width: 1024px) {
  .float-chip {
    display: flex;
  }
}

/* Beside the downloaded books (start edge) and above the «ألعاب» tab (end edge). */
.float-chip-offline {
  top: 232px;
  inset-inline-start: -56px;
}

.float-chip-stars {
  bottom: 92px;
  inset-inline-end: -56px;
}

.float-chip-stars .stars {
  display: flex;
  gap: 1px;
  color: #e0a21b;
}

.float-chip-stars .stars .icon {
  width: 16px;
  height: 16px;
  color: #e0a21b;
}

/* What children get */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-wide {
    grid-column: span 2;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.card h3 {
  font-size: 1.3125rem;
  line-height: 1.4;
}

.card-tag {
  color: var(--forest);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

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

.card .pill {
  margin-inline-start: auto;
  align-self: flex-start;
}

.tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.tile .icon {
  width: 28px;
  height: 28px;
}

.tile-sky {
  background: #c9ddf7;
  color: #1b3a66;
}

.tile-rose {
  background: #f6d0d6;
  color: #7a2c3a;
}

.tile-lilac {
  background: #d8c5f0;
  color: #4a3a80;
}

.tile-butter {
  background: #f3e7a9;
  color: #5a4a16;
}

.tile-apricot {
  background: #f6d2b0;
  color: #7a4a16;
}

.tile-mint {
  background: #cfe9e3;
  color: #14453b;
}

.tile-green {
  background: var(--soft-strong);
  color: #3f6b3c;
}

.checks {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  line-height: 1.7;
}

.checks .icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--forest);
  stroke-width: 2.4;
}

.card-note {
  color: var(--amber-ink);
  font-size: 0.9375rem;
}

/* For parents */

.parents {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.parents-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .parents-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }
}

.pin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft);
}

.pin-card h3 {
  font-size: 1.25rem;
}

.pin-card p {
  color: var(--soft-ink);
}

.pin-dots {
  display: flex;
  gap: 10px;
}

.pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest);
}

.pin-dots span:nth-child(n + 4) {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--forest);
}

.features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.feature .tile {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.feature .tile .icon {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.125rem;
}

.feature p {
  margin-top: 2px;
  color: var(--muted);
}

/* Privacy */

.privacy {
  background: var(--deep);
  color: #ffffff;
}

.privacy .eyebrow {
  color: var(--lime);
}

.privacy .section-intro {
  color: var(--on-deep);
}

.privacy-points {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .privacy-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .privacy-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.privacy-points li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(207, 227, 216, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.privacy-points .icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.privacy-points h3 {
  font-size: 1.125rem;
}

.privacy-points p {
  color: var(--on-deep);
}

.privacy .text-link {
  margin-top: 24px;
  color: var(--lime);
}

.privacy .text-link:hover {
  color: #ffffff;
}

/* How to start */

.steps {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--muted);
}

/* FAQ */

.faq {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
  }

  .faq-list {
    margin-top: 0;
  }
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.faq details[open] {
  background: var(--paper);
  border-color: var(--soft-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.faq summary .icon {
  width: 22px;
  height: 22px;
  color: var(--forest);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Closing call to action */

.cta {
  background: var(--forest);
  color: #ffffff;
  text-align: center;
}

.cta .section-title {
  margin-top: 0;
}

.cta-line {
  margin-top: 8px;
  color: #e4f0e9;
  font-size: 1.125rem;
}

.cta .download {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .stores {
  width: 100%;
}

.cta .store-live {
  background: var(--lime);
  color: var(--ink);
}

.cta .store-live:hover {
  background: #e3fc9c;
  color: var(--ink);
}

.cta .store-live .store-name {
  color: var(--ink);
}

.cta .store-soon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(228, 240, 233, 0.4);
  color: #e4f0e9;
}

.cta .store-soon .store-name {
  color: #ffffff;
}

.cta .store-fallback {
  text-align: start;
}

/* Footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 32px;
  }
}

.footer-brand .brand {
  font-size: 1.375rem;
}

.footer-brand .brand-tile {
  width: 34px;
  height: 34px;
}

.footer-brand p {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.footer-support a {
  display: inline-block;
  padding-block: 10px;
}

.footer-legal {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* Privacy policy page */

.policy {
  padding-block: 32px 72px;
}

@media (min-width: 900px) {
  .policy {
    padding-block: 56px 96px;
  }
}

.policy-wrap {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
}

.policy h1 {
  margin-top: 6px;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  line-height: 1.35;
}

.policy-meta {
  margin-top: 8px;
  color: var(--muted);
}

.draft-banner {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--amber-line);
  border-radius: 16px;
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.draft-banner .icon {
  margin-top: 4px;
}

.draft-banner strong {
  display: block;
  color: #6e4700;
}

.draft-banner p + p {
  margin-top: 6px;
}

.summary-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--soft);
}

.summary-box h2 {
  font-size: 1.25rem;
}

.summary-box ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.summary-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--soft-ink);
}

.summary-box .icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--forest);
  stroke-width: 2.4;
}

.toc {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.toc h2 {
  font-size: 1.0625rem;
}

.toc ol {
  margin: 10px 0 0;
  padding-inline-start: 1.6em;
}

/* Two columns that read downwards, the first on the right. */
@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

.toc li {
  break-inside: avoid;
}

.toc a {
  display: inline-block;
  padding-block: 6px;
}

.policy-section {
  margin-top: 36px;
}

.policy-section h2 {
  font-size: 1.375rem;
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin-top: 10px;
}

.policy-section ul,
.policy-section ol {
  display: grid;
  gap: 8px;
  padding-inline-start: 1.3em;
}

/* Numbered steps count in the page's Arabic-Indic digits. */
.policy-section ol {
  list-style-type: arabic-indic;
}

.policy-section li::marker {
  color: var(--forest);
}

.policy-note {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--quiet);
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  background: var(--soft);
  color: var(--forest);
}

.back-link .icon {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .skip-link,
  .site-nav,
  .back-link,
  .toc {
    display: none;
  }

  .site-header,
  .site-footer {
    border: 0;
    background: #ffffff;
  }

  .draft-banner,
  .summary-box {
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }
}

/* Arabic names of app screens inside the English notes stay whole, so a line break never parts their «». */
.policy-section[lang="en"] bdi {
  white-space: nowrap;
}
