/* Long-form prose pages (privacy, terms). Deliberately plain and readable
   rather than styled like the app: these are documents, and they are also
   the pages someone reads when they are already unhappy. */

.legal-body {
  background: #f8fafc;
  color: #1f2937;
  padding: 0;
}

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  line-height: 1.65;
}

/* The way out, above the title rather than at the foot of the page. These
   pages are long — the price list runs well past a screen — and navigation
   that only exists after all of it is navigation somebody has to go looking
   for. The row of links at the bottom stays; this is for the reader who has
   decided they are done. */
.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.legal-back:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.legal-back[hidden] { display: none; }

.legal-shell header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.legal-shell h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.legal-updated {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.legal-shell h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  color: #111827;
}

.legal-shell h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  color: #374151;
}

.legal-shell p,
.legal-shell li {
  font-size: 0.96rem;
}

.legal-shell ul {
  padding-left: 22px;
}

.legal-shell li {
  margin-bottom: 6px;
}

.legal-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal-shell th,
.legal-shell td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.legal-shell th {
  background: #f1f5f9;
  font-weight: 600;
}

.legal-shell a {
  color: #4338ca;
}

.legal-nav {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Banner at the top of a document that has not been through legal review. */
.legal-draft {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: #78350f;
}

.legal-draft strong {
  display: block;
  margin-bottom: 4px;
}

/* An individual clause a lawyer has to decide, inline where it applies —
   a single banner at the top is too easy to scroll past and forget. */
.legal-review {
  background: #fff7ed;
  border-left: 3px solid #fb923c;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 0.88rem;
  color: #7c2d12;
}

.legal-review::before {
  content: 'Needs review: ';
  font-weight: 700;
}

/* Values that must be filled in before publishing. Styled to be impossible
   to miss on the rendered page, not just in the source. */
.legal-todo {
  background: #fee2e2;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: #991b1b;
  white-space: nowrap;
}
