/*
  Legal pages for the Faith Notes apps (Pewbook, Jumuah Journal, Missal,
  Chavrusa).

  Same class names and structure as the other product legal pages so the
  studio's notices share a pattern. One copy serves all four flavours because
  the notices are identical apart from the app name and the two notes about
  hifz data and the Shabbat quiet window. Supports light and dark mode.
*/
:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fbfdf9;
  color: #16241f;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 0, #e8f3ec 0, #fbfdf9 42rem); }
main { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 36px 0 64px; }
header { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #cfe0d7; }
.eyebrow { color: #1b5e4a; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 8px 0; color: #10251e; font-size: clamp(30px, 7vw, 48px); line-height: 1.05; }
.effective { color: #7a5b12; font-size: 14px; }
article { padding: clamp(18px, 4vw, 30px); border: 1px solid #d5e6dd; border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f7fbf8); box-shadow: 0 18px 60px rgba(16, 37, 30, .08); }
h2 { margin: 28px 0 8px; color: #1b5e4a; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
p, li { color: #3f5a51; font-size: 15px; line-height: 1.65; }
li + li { margin-top: 8px; }
b { color: #16241f; }
a { color: #1b5e4a; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
th, td { border: 1px solid #d5e6dd; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #eef6f1; font-size: 13px; }
code { background: #eef6f1; padding: .1rem .3rem; border-radius: 4px; font-size: .92em; }
footer { padding-top: 18px; color: #6d8579; font-size: 12px; text-align: center; }
footer a { color: inherit; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; margin-top: 12px; }
footer a { color: inherit; }

@media (prefers-color-scheme: dark) {
  :root { background: #0f1714; color: #e6efe9; }
  body { background: radial-gradient(circle at 50% 0, #16241f 0, #0f1714 42rem); }
  header { border-bottom-color: #26382f; }
  .eyebrow { color: #8fd4b7; }
  h1 { color: #f1f7f3; }
  .effective { color: #d8b471; }
  article { border-color: #26382f; background: linear-gradient(180deg, #14211c, #101a16); box-shadow: none; }
  h2 { color: #8fd4b7; }
  p, li { color: #b6c7bf; }
  b { color: #eaf3ee; }
  a { color: #8fd4b7; }
  th { background: #16241f; }
  th, td { border-color: #2c3d37; }
  code { background: #16241f; }
  footer { color: #7f958a; }
}
