/* Yazmo website pages: privacy, terms, support, delete-data, custom pages (core/resources/views/site/page.blade.php). */
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro/ReadexPro-Variable.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f6f0;
  --surface: #fffefb;
  --ink: #171b1a;
  --sub: #5d605d;
  --line: #e3e4dc;
  --lime: #c9f26a;
  --link: #3f6f26;
  --footer-bg: #171b1a;
  --footer-ink: #f8f7f1;
  --footer-sub: #b4b7b2;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #1b1f1e;
    --ink: #f2f2ec;
    --sub: #b4b7b2;
    --line: #2f3432;
    --link: #c9f26a;
    --footer-bg: #0d0f0e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
}
body:lang(ar) { line-height: 1.9; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--lime);
  color: #171b1a;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.preview-banner {
  padding: 10px 16px;
  background: #fff1d6;
  color: #171b1a;
  font-size: 15px;
  text-align: center;
  border-bottom: 1px solid #e8d3a4;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand-mark { display: block; border-radius: 8px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--sub); }
.lang-switch a { color: var(--sub); text-decoration: none; padding: 6px 4px; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--lime); }

/* ---------- Article ---------- */
.legal-main { flex: 1; width: 100%; }
.legal-article {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.legal-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
:lang(ar) .legal-head h1 { letter-spacing: 0; line-height: 1.4; }
.legal-updated { margin: 10px 0 0; color: var(--sub); font-size: 15px; }
.legal-updated::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 1px;
}

.legal-body { max-width: 72ch; overflow-wrap: break-word; }
.legal-body > :first-child { margin-top: 0; }
.legal-body h2 { margin: 2.2em 0 0.6em; font-size: 1.35em; line-height: 1.35; font-weight: 650; scroll-margin-top: 16px; }
.legal-body h3 { margin: 1.8em 0 0.5em; font-size: 1.12em; line-height: 1.4; font-weight: 600; scroll-margin-top: 16px; }
.legal-body h4 { margin: 1.5em 0 0.4em; font-size: 1em; font-weight: 600; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body table, .legal-body blockquote { margin: 0 0 1em; }
.legal-body ul, .legal-body ol { padding-inline-start: 1.4em; }
.legal-body li { margin: 0.3em 0; }
.legal-body li::marker { color: var(--sub); }
.legal-body strong { font-weight: 650; }
.legal-body blockquote {
  padding: 12px 16px;
  border-inline-start: 4px solid var(--lime);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.legal-body blockquote p:last-child { margin-bottom: 0; }
[dir="rtl"] .legal-body blockquote { border-radius: 10px 0 0 10px; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.legal-body code { padding: 1px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9em; }
.legal-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.94em;
}
.legal-body th, .legal-body td { padding: 8px 12px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-body th { background: var(--surface); font-weight: 600; }
.legal-body img { max-width: 100%; height: auto; }

.legal-missing { text-align: center; padding-top: 64px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-sub); font-size: 15px; }
.site-footer-inner { max-width: 880px; margin: 0 auto; padding: 28px 16px 36px; }
.site-footer a { color: var(--footer-ink); }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 4px 0; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--lime); }
.footer-contact, .footer-legal { margin: 6px 0; }
.footer-legal { font-size: 13px; }

@media (min-width: 720px) {
  .site-header-inner { padding: 14px 24px; }
  .legal-article { padding: 44px 24px 72px; }
  .site-footer-inner { padding: 32px 24px 40px; }
}

@media print {
  .site-header, .site-footer, .skip-link, .preview-banner { display: none; }
  body { background: #fff; color: #000; }
}
