:root {
  --bg: #0B0B0F;
  --bg-card: #16161D;
  --bg-input: #1E1E27;
  --border: #2A2A35;
  --text: #F4F4F6;
  --muted: #9A9AA8;
  --gold: #F5C518;
  --gold-dim: #C9A009;
  --danger: #FF5A5A;
  --radius: 16px;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Heebo", "Assistant", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body { padding: 0 20px 80px; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 0 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
}
.brand .dot { color: var(--gold); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--gold);
  color: #15140B;
}

/* Typography */
h1 { font-size: 32px; line-height: 1.2; margin: 18px 0 8px; }
h2 { font-size: 22px; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p, li { color: var(--text); }
a { color: var(--gold); }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 15px; margin-top: -2px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* Cards & layout */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}

/* Tables (privacy data table) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: var(--bg-input); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #15140B; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
input, textarea, select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 100px; resize: vertical; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; }

.notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.notice-warn { border-color: var(--gold-dim); background: rgba(245,197,24,0.08); }
.notice-ok { border-color: #2E7D5B; background: rgba(46,125,91,0.12); }
.notice-err { border-color: var(--danger); background: rgba(255,90,90,0.10); }
.hidden { display: none !important; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .sep { opacity: 0.4; }

/* Landing hero */
.hero { text-align: center; padding: 40px 0 10px; }
.hero h1 { font-size: 40px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 520px; margin: 12px auto 24px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.features { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 36px 0; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin: 4px 0 0; }

/* RTL handling: Hebrew content blocks set their own dir, but lists need padding flip */
[dir="rtl"] ul, [dir="rtl"] ol { padding-inline-start: 22px; }
