/* Mishnah Max — the privacy, terms and support pages on mishnahmax.com, in
   the app's look. The pages in pages/ are written to stand alone (their own
   inline styles, the same text privacy-site/ deploys), so the build adds this
   file after their <style> rather than editing them: their text stays one
   source, and here they wear white paper on dawn like the rest of the site.
   Light only, as the app is. */

:root {
  --bg: #FFFFFF;
  --panel: #F5F4F1;
  --rule: #DDD9D1;
  --ink: #1B1713;
  --ink-soft: #433930;
  --ink-mute: #756C62;
  --gold: #C9A13A;
  --wine: #5C2318;
  --wine-2: #6B2D20;
  color-scheme: light;
}

html {
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(201, 161, 58, 0.16), rgba(201, 161, 58, 0) 70%) fixed,
    linear-gradient(180deg, #EEF1F7 0%, #F9EEE6 55%, #FFFFFF 100%) fixed;
  min-height: 100%;
}

body {
  background: transparent !important;
  color: var(--ink-soft) !important;
  font: 17.5px/1.68 ui-serif, "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif !important;
}
body:lang(he),
html[lang="he"] body { font-family: "Frank Ruhl Libre", "Times New Roman", serif !important; font-size: 18px !important; }

.wrap {
  max-width: 46rem !important;
  margin: 28px auto 64px !important;
  padding: 44px clamp(22px, 5vw, 56px) 52px !important;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(27, 23, 19, 0.04), 0 24px 60px -30px rgba(92, 35, 24, 0.28);
}
@media (max-width: 560px) {
  .wrap { margin: 0 !important; border-radius: 0; border: 0; box-shadow: none; }
}

header {
  border-bottom: 1px solid var(--rule) !important;
  padding-bottom: 22px !important;
  margin-bottom: 30px !important;
}
/* The brand mark the app's sign-in screen sets over its title. */
header::before {
  content: "מ";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wine-2), #3A1810);
  color: #F4ECDA;
  font: 700 21px/1 "Frank Ruhl Libre", "Times New Roman", serif;
  box-shadow: 0 6px 14px -6px rgba(58, 24, 16, 0.6);
}
h1 {
  font-size: clamp(30px, 4.4vw, 40px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
}
html[lang="he"] h1 { letter-spacing: 0 !important; font-weight: 600 !important; }
.updated {
  margin-top: 10px !important;
  font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
  font-style: normal !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute) !important;
}
html[lang="he"] .updated { font: 600 14px/1.4 -apple-system, system-ui, sans-serif !important; letter-spacing: 0; }

nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
nav a {
  margin: 0 !important;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font: 500 14px/1.2 -apple-system, system-ui, "Segoe UI", sans-serif;
  color: var(--ink-soft) !important;
  text-decoration: none !important;
}
nav a:hover { border-color: rgba(92, 35, 24, 0.35); color: var(--wine) !important; }
nav a:first-child { background: var(--wine); border-color: var(--wine); color: #F4ECDA !important; }

h2 {
  margin: 2.6rem 0 0.8rem !important;
  font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
  font-variant-caps: normal !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--wine) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2::before { content: ""; flex: 0 0 26px; height: 1px; background: var(--gold); }
html[lang="he"] h2 { font: 700 15px/1.4 -apple-system, system-ui, sans-serif !important; letter-spacing: 0 !important; }

strong { color: var(--ink) !important; }
a { color: var(--wine) !important; text-decoration-color: rgba(201, 161, 58, 0.8) !important; }

.lead {
  background: var(--panel) !important;
  border: 1px solid var(--rule) !important;
  border-inline-start: 3px solid var(--gold) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
}

footer {
  border-top: 1px solid var(--rule) !important;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  color: var(--ink-mute) !important;
}
