* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fff;
  --text: #111;
  --text-light: #555;
  --text-muted: #999;
  --border: #ddd;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.rtl {
  direction: rtl;
  text-align: right;
}

a { color: var(--text); }
a:hover { opacity: 0.5; }

.navbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }

.toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 0.75rem;
  padding: 3px 8px;
  cursor: pointer;
}
.toggle-btn:hover { color: var(--text); border-color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 3px 6px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}

.page {
  flex: 1;
  max-width: 640px; width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.hero { text-align: center; padding: 2rem 0 0; }
.hero-logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.hero .tagline { font-size: 0.95rem; color: var(--text-light); }

.section { margin-bottom: 0; }
.section-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.section p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 0.8rem;
}
.section p:last-child { margin-bottom: 0; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.divider-thick { border-top: 2px solid var(--text); margin: 3rem 0; }

.last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.policy-heading {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.policy-list { list-style: none; padding: 0; margin: 0.7rem 0; }
.policy-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-light);
}
body.rtl .policy-list li { padding-left: 0; padding-right: 1rem; }
.policy-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
body.rtl .policy-list li::before { left: auto; right: 0; }

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer a { color: var(--text-light); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-right { gap: 0.8rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .navbar-inner { position: relative; }
  .hero-logo { font-size: 1.8rem; }
  .page { padding: 2rem 1.2rem; }
}
