/* Shared design system for clozad.com global pages (privacy, legal exports).
   Mirrors the palette/components used on delete-account and the DZ landing
   page — not reused verbatim from there (that page is fully inlined), but
   deliberately kept in sync: same CSS variable values, same class names. */

:root {
  --bg:          #08090e;
  --bg-2:        #0d0f17;
  --surface:     rgba(255,255,255,0.032);
  --surface-h:   rgba(255,255,255,0.055);
  --border:      rgba(255,255,255,0.07);
  --border-a:    rgba(255,193,7,0.26);
  --text:        #eff0f4;
  --muted:       #8b8f9a;
  --soft:        #52555d;
  --accent:      #ffc107;
  --accent-dim:  rgba(255,193,7,0.11);
  --accent-glow: rgba(255,193,7,0.22);
  --r-xl: 26px;
  --r-lg: 16px;
  --r-md: 12px;
  --max: 1080px;
  --font-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ar: "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100svh;
}

html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
html[lang="ar"] h1 { line-height: 1.18; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.glow-tl, .glow-br {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-tl {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  top: -22%; left: -18%;
  background: radial-gradient(circle, rgba(255,193,7,0.13) 0%, transparent 68%);
  filter: blur(40px);
}
.glow-br {
  width: 42vw; height: 42vw;
  max-width: 520px; max-height: 520px;
  bottom: -18%; right: -12%;
  background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 68%);
  filter: blur(40px);
}

nav {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 42px; height: 42px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-a);
  box-shadow: 0 0 0 5px var(--accent-dim);
  flex-shrink: 0;
}
.nav-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-right { display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  flex-shrink: 0;
}

.lang-group { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms, border-color 140ms, color 140ms;
  line-height: 1;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,193,7,0.10);
  border-color: rgba(255,193,7,0.3);
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent-dim);
  border-color: var(--border-a);
  color: var(--accent);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 56px 0 64px;
}
.hero-inner { display: grid; gap: 20px; max-width: 680px; width: 100%; }

h1 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
  margin: 0 auto;
}
html[lang="ar"] .hero-lead { max-width: 48ch; }

.section { padding: 0 0 56px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.7; }

select.field-select {
  width: 100%;
  max-width: 380px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
}
select.field-select:focus { border-color: var(--border-a); outline: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 12px 28px rgba(255,193,7,0.28);
}
html[lang="ar"] .btn-primary { font-family: var(--font-ar); letter-spacing: 0; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(255,193,7,0.08), 0 20px 38px rgba(255,193,7,0.34);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.btn-secondary:hover { border-color: var(--border-a); background: var(--surface-h); }

.section-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
html[lang="ar"] .section-eyebrow { letter-spacing: 0; }
.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); max-width: 56ch; margin-bottom: 28px; font-size: 0.95rem; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: border-color 200ms, background 200ms;
}
.feature-card:hover { border-color: var(--border-a); background: var(--surface-h); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
html[lang="ar"] .feature-card h3 { letter-spacing: 0; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.66; }

/* Legal document body — renders the raw CGU/CGV HTML fragments (h2/p/ul/li) */
.legal-doc { color: var(--muted); font-size: 0.96rem; line-height: 1.8; }
.legal-doc h2 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-inline-start: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--text); }

footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--soft);
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  nav { justify-content: center; text-align: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  select.field-select { max-width: 100%; }
}
