/* صفحات الخصوصية والشروط (T30) — نفس شكل الصفحة الرئيسية: كريمي بلمسات دهبي وبنفسجي، والنقش الإسلامي فوق. */

/* خط «دِيني» بالحروف المرسلة من ملف التطبيق (ملف الـ CDN مفهوش البدائل) */
@font-face {
  font-family: "Dini Display";
  src: url("../assets/fonts/thmanyahserifdisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #FBF6EC;
  --cream-2: #F4EBDA;
  --surface: #FFFFFF;
  --line: #E6DCC8;
  --ink: #1F1747;
  --muted: #5C5677;
  --gold: #B98A2E;
  --violet: #5B34C9;
  /* بنفسجي الجلد البرقوقي ودهبي الختم */
  --plum: #4E1A4C;
  --foil: #C9A043;

  --f-display: "Thmanyah Serif Display", "Thmanyah Sans", serif;
  --f-text: "Thmanyah Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.9;
  background-color: var(--cream);
  background-image:
    radial-gradient(40rem 26rem at 88% 0%, rgba(233, 200, 119, .32), transparent 60%),
    linear-gradient(170deg, #FFFCF5 0%, var(--cream) 50%, var(--cream-2) 100%);
}

/* نقش الأقواس الدهبي (T242) ظاهر من فوق وبيختفي لتحت — الصفحة الرئيسية ليها نسختها (body.hold) */
body:not(.hold)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  pointer-events: none;
  background-image: url("../assets/pattern/arches-gold.svg");
  background-size: 132px 228px;
  background-position: center top;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

body > * { position: relative; }

a { color: var(--violet); text-underline-offset: 4px; }

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.legal-nav .brand {
  color: var(--plum);
  font-family: "Dini Display", var(--f-display);
  font-feature-settings: "salt" 1;
  font-size: 40px;
  line-height: 1.6;
  text-decoration: none;
}

.legal-nav .brand span { color: var(--foil); }

.legal-nav nav { display: flex; gap: 20px; font-size: 15px; }
.legal-nav nav a { color: var(--muted); text-decoration: none; }
.legal-nav nav a[aria-current="page"] { color: var(--plum); font-weight: 600; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}

.doc h1 {
  color: var(--plum);
  font-family: var(--f-display);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.3;
  margin: 0 0 8px;
}

.doc .updated { color: var(--gold); font-size: 15px; margin: 0 0 32px; }

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--foil);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 40px;
  box-shadow: 0 12px 30px -18px rgba(78, 26, 76, .25);
}

.doc .summary ul { margin: 0; padding-inline-start: 20px; }
.doc .summary li::marker { color: var(--foil); }

.doc h2 {
  color: var(--plum);
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.4;
  margin: 44px 0 12px;
}

.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }

.legal-foot {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
