/* /privacy and /terms.
   A long document that people actually have to read, so it is set as prose:
   one column at a comfortable measure, generous leading, and headings that
   separate sections instead of shouting. Nothing here is shared with the app
   UI, which is deliberately dense for the opposite reason. */

#legal-root {
  max-width: 46rem;
  margin: 0 auto;
  padding: 28px 22px 90px;
}

.legal-doc {
  color: var(--text, #e8edf7);
  /* ~66 characters per line at this size, which is where continuous prose is
     easiest to read; the app's monospace stack would be wrong here. */
  font: 400 16px/1.68 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.legal-doc h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.legal-doc h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  letter-spacing: -0.005em;
}

.legal-doc p { margin: 0 0 14px; }
.legal-doc ul,
.legal-doc ol { margin: 0 0 16px; padding-left: 1.35em; }
.legal-doc li { margin-bottom: 7px; }

.legal-doc a { color: var(--accent-soft, #7fd7ff); }

.legal-doc code {
  font: 500 0.87em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(127, 215, 255, 0.09);
  border: 1px solid rgba(127, 215, 255, 0.16);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.legal-date {
  color: var(--text-dim, #8b93a7);
  font-size: 13.5px;
  margin-bottom: 26px !important;
}

/* The summary at the top. Set apart because it is the part most people will
   read, and it should be findable without scanning. */
.legal-tldr {
  background: rgba(127, 215, 255, 0.06);
  border: 1px solid rgba(127, 215, 255, 0.2);
  border-radius: 10px;
  padding: 16px 18px 3px;
  margin: 24px 0 30px;
}
.legal-tldr p { margin-bottom: 13px; }

/* The storage-key inventory: a reference list, not an argument, so it is
   tightened up and set smaller than the prose around it. */
.legal-keys { font-size: 14.5px; line-height: 1.55; }
.legal-keys li { margin-bottom: 9px; }
.legal-keys code { white-space: normal; }

.legal-cross {
  margin-top: 44px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
}

.legal-note {
  color: var(--text-dim, #8b93a7);
  font-size: 13.5px;
  line-height: 1.55;
}

/* An unfilled placeholder. Loud on purpose: it is a promise the site cannot
   keep yet, and it must not reach a reader unnoticed. */
.legal-todo {
  background: rgba(255, 176, 84, 0.1);
  border: 1px solid rgba(255, 176, 84, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffcf8f;
  font-size: 14.5px;
  line-height: 1.55;
}
.legal-todo code {
  background: rgba(255, 176, 84, 0.14);
  border-color: rgba(255, 176, 84, 0.3);
  color: inherit;
}

/* With JavaScript off, legal.js never hides the second language -- so both
   appear, one after the other, separated rather than run together. That is the
   right failure: a legal document should degrade to more text, never to less. */
.legal-doc + .legal-doc {
  margin-top: 60px;
  padding-top: 34px;
  border-top: 2px solid var(--border-soft, rgba(255, 255, 255, 0.12));
}

@media (max-width: 620px) {
  #legal-root { padding: 18px 16px 70px; }
  .legal-doc { font-size: 15.5px; }
  .legal-doc h1 { font-size: 25px; }
  .legal-doc h2 { font-size: 17.5px; margin-top: 32px; }
}
