/* The plain pages (privacy, in every language): no runtime, same look as the home page. */
html, body { overscroll-behavior-y: none; }
body {
  margin: 0; background: #0a0a0b; color: rgba(255,255,255,.82);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
html[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', 'Space Grotesk', system-ui, sans-serif; }
a { color: #fff; text-decoration: none; }
a:hover { color: rgba(255,255,255,.7); }

@keyframes k-spin { to { transform: rotate(360deg); } }
@keyframes k-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1.06); }
  50%  { transform: translate3d(-5vw, -3vh, 0) scale(1.16); }
  100% { transform: translate3d(0, 0, 0) scale(1.06); }
}

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0a0a0b; pointer-events: none; }
.bg-drift { position: absolute; left: 50%; top: 52%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; animation: k-drift 90s ease-in-out infinite; }
.bg-prism { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #5b6bff, #00d6b4, #ffd98a, #ff6e5a, #b06bff, #5b6bff); filter: blur(60px); opacity: .7; animation: k-spin 70s linear infinite; }
.bg-dim1 { position: absolute; inset: 0; background: radial-gradient(65% 50% at 50% 52%, rgba(10,10,11,.86), transparent 72%); }
.bg-dim2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.7), transparent 35%, rgba(10,10,11,.85)); }
.bg-veil { position: absolute; inset: 0; background: rgba(10,10,11,.72); }
.bg-noise { position: absolute; inset: 0; opacity: .2; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* The prism holds still on phones, with reduced motion, and on short screens, as on the home page. */
@media (max-width: 819px), (max-height: 639px), (prefers-reduced-motion: reduce) {
  .bg-drift, .bg-prism { animation-play-state: paused; }
}

.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: clamp(20px,3.4vh,34px) clamp(22px,5vw,64px); }
.brand { display: flex; align-items: center; gap: clamp(10px,1vw,14px); white-space: nowrap; color: #fff; }
.brand img { display: block; width: clamp(30px,2.9vw,38px); height: auto; }
.brand-name { display: flex; align-items: baseline; gap: 9px; direction: ltr; }
.brand-name b { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(27px,2.9vw,36px); letter-spacing: -.035em; line-height: 1; }
.brand-name span { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: clamp(13px,1.15vw,15px); letter-spacing: .14em; color: rgba(255,255,255,.7); }
.top-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 9px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 14px; white-space: nowrap; transition: color .25s ease-out, border-color .25s ease-out; }
.pill:hover { color: #fff; border-color: rgba(255,255,255,.4); }
html[lang="ar"] .pill { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; text-transform: none; font-size: 14px; }
.pill[lang="en"] { font-family: 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.pill[lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; font-size: 14px; }

main { flex: 1; padding: clamp(18px,4vh,48px) clamp(22px,5vw,64px) clamp(40px,8vh,90px); }
.doc { max-width: 760px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
html[lang="ar"] .eyebrow { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; text-transform: none; font-size: 15px; }
h1 { margin: 0 0 10px; font-weight: 300; font-size: clamp(32px,4.4vw,52px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.3; font-weight: 400; }
.date { margin: 0 0 clamp(26px,4vh,40px); font-size: 15px; color: rgba(255,255,255,.55); }
h2 { margin: clamp(34px,5vh,48px) 0 12px; padding-top: clamp(20px,3vh,28px); border-top: 1px solid rgba(255,255,255,.12); font-weight: 400; font-size: clamp(21px,2vw,25px); line-height: 1.25; letter-spacing: -.02em; color: #fff; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.45; }
h3 { margin: 22px 0 8px; font-weight: 500; font-size: 17px; color: #fff; }
p, li { font-size: clamp(16px,1.2vw,17.5px); line-height: 1.65; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-inline-start: 1.2em; }
li { margin: 0 0 6px; }
.doc a { border-bottom: 1px solid rgba(255,255,255,.3); overflow-wrap: anywhere; }
.doc a:hover { border-bottom-color: currentColor; color: #fff; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.card { margin: 0 0 14px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.03); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Site footer: the same on every page (here, privacy.html via legal.css, and the Arabic twins). */
.kf { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(10,10,11,.62), rgba(10,10,11,.9) 70%); color: rgba(255,255,255,.58); font-family: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
.kf::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 140px; background: linear-gradient(180deg, rgba(10,10,11,0), rgba(10,10,11,.62)); pointer-events: none; }
.kf-inner { max-width: 1100px; margin: 0 auto; padding: clamp(40px,7vh,64px) clamp(22px,5vw,64px) clamp(22px,4vh,34px); box-sizing: border-box; }
.kf-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px clamp(28px,4vw,56px); }
.kf-brand { max-width: 260px; }
.kf-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.kf-logo img { width: 34px; height: auto; display: block; }
.kf-logo span { display: flex; align-items: baseline; gap: 8px; direction: ltr; }
.kf-logo b { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 26px; letter-spacing: -.035em; line-height: 1; }
.kf-logo i { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.kf-tag { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.6); }
.kf-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 28px clamp(24px,3vw,44px); }
.kf-h { margin: 0 0 14px; font-family: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.kf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kf ul a { font-size: 15px; color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s; }
.kf ul a:hover { color: #fff; }
.kf-meta { margin-top: clamp(32px,5vh,48px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }
.kf-meta p { margin: 0; }
@media (max-width: 860px) { .kf-cols { grid-template-columns: repeat(2, auto); } }
@media (max-width: 420px) { .kf-cols { grid-template-columns: 1fr 1fr; } }
html[lang="ar"] .kf-h { letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="ar"] .kf, html[lang="ar"] .kf ul a { letter-spacing: 0; }
html .kf ul li { margin: 0; font-size: 15px; line-height: 1.4; }
html .kf .kf-meta p { font-size: 13px; line-height: 1.6; }
html .kf .kf-tag { font-size: 15px; line-height: 1.55; }
html .kf .kf-h { line-height: 1.4; }
