/* Shared stylesheet for localized legal pages (privacy-*.html, terms-*.html).
   Mirrors the inline styles in privacy.html / terms.html (English originals)
   so every language variant looks identical. Extracted to one file instead
   of duplicating ~180 lines of CSS across 22 localized pages. */
:root {
  --bg: #0e0e10;
  --surface: #1a1a1f;
  --surface-2: #22222b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f2;
  --text-dim: #a8a8b3;
  --text-muted: #6b6b78;
  --purple: #7c67c4;
  --purple-dark: #6b57b3;
  --purple-glow: rgba(124, 103, 196, 0.25);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 18px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-back {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.nav-back:hover {
  color: var(--text);
  text-decoration: none;
}
.lang-switch {
  font-size: 13px;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-dim);
  margin-left: 6px;
}
.lang-switch a.current {
  color: var(--purple);
  font-weight: 700;
  pointer-events: none;
}

.hero {
  padding: 96px 24px 56px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(124, 103, 196, 0.18),
    transparent 55%
  );
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 6px 14px;
  border: 1px solid var(--purple-dark);
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgba(124, 103, 196, 0.08);
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.updated {
  color: var(--text-muted);
  font-size: 13px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}
main h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 14px;
  color: var(--text);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
main h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}
main h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
main p,
main li {
  color: var(--text-dim);
  font-size: 15px;
}
main p {
  margin-bottom: 14px;
}
main ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
main li {
  margin-bottom: 6px;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text);
}
.callout strong {
  color: var(--purple);
}
.callout.lang-notice {
  border-left-color: var(--text-muted);
  font-size: 13px;
  color: var(--text-dim);
}

footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
footer a {
  color: var(--text-dim);
  margin: 0 8px;
}

/* Right-to-left languages (Arabic) */
html[dir="rtl"] main ul {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .callout {
  border-left: none;
  border-right: 3px solid var(--purple);
}
html[dir="rtl"] .callout.lang-notice {
  border-right-color: var(--text-muted);
}
html[dir="rtl"] .lang-switch a {
  margin-left: 0;
  margin-right: 6px;
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 16px 40px;
  }
  main {
    padding: 16px 16px 64px;
  }
  nav {
    padding: 0 16px;
  }
  .nav-back {
    display: none;
  }
}
