/* The legal pages. The same look as web/src/styles/legal.css in the app, without the app's own styles. */
@import url('/site.css');

:root {
  --ink: #1b1840;
  --sun: #ffc533;
  --paper: #f6f2e9;
  --paper-2: #eae4d5;
  --muted: #5c5878;
  --focus: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body.legal { background: var(--paper); }
body.legal {
  color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Hebrew', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.legal :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.legal h1, .legal h2, .legal h3, .brand { font-family: 'Fredoka', 'Rubik', system-ui, sans-serif; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.link {
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.legal-head {
  --focus: var(--sun);
  background: var(--ink);
  color: #fff;
}
.legal-head .brand,
.legal-doc,
.legal-foot {
  inline-size: min(100% - 2 * clamp(16px, 5vw, 40px), 47rem);
  margin-inline: auto;
}
.legal-head .brand {
  min-block-size: 68px;
  justify-content: flex-start;
}
.legal-doc {
  padding-block: clamp(28px, 6vw, 64px) 36px;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.legal-doc h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1.15;
}
.legal-doc h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin-block-end: 8px;
}
.legal-doc h3 {
  font-size: 1.25rem;
  margin-block: 20px 4px;
}
.legal-date {
  margin-block: 8px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.legal-doc section {
  margin-block-start: 28px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--paper-2);
}
.legal-doc ul {
  list-style: disc;
  padding-inline-start: 1.25em;
}
.legal-doc section > * + :is(p, ul),
.legal-doc li + li {
  margin-block-start: 8px;
}
.legal-foot {
  border-block-start: 1px solid var(--paper-2);
  padding-block: 8px max(16px, env(safe-area-inset-bottom));
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.25rem;
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}
.todo {
  background: #fff4d2;
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  padding: 2px 8px;
}
