/*
 * Prose styles for the two legal pages (/privacy, /terms).
 *
 * Loaded AFTER main.css, which already supplies the shared chrome
 * (.site-header, .site-footer, .skip-link, .btn) and the h1/h2/h3 reset —
 * this file only adds what a long-form Persian text page needs and nothing
 * the marketing page already covers. Every colour comes from tokens.css.
 */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--container-pad) 0;
}

.legal-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 30px;
}

.legal-head h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.35;
  margin-bottom: 14px;
}

.legal-updated {
  font-size: 13px;
  color: var(--color-muted);
}

/*
 * Unmissable-by-design. These pages ship with placeholders that only the
 * business can fill (legal entity, contact address, governing law), and a
 * draft privacy policy that goes live unreviewed is worse than none at all.
 * This banner is deliberately loud and deliberately at the top of the
 * document: delete it in the same change that fills the last [[ ]] below.
 */
.legal-draft {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fdf3d8;
  border: 1px solid #e2b84f;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 34px;
}

.legal-draft .icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: #8a6a12;
  margin-top: 1px;
}

.legal-draft-body {
  font-size: 14px;
  line-height: 1.85;
  color: #5c4a12;
}

.legal-draft-title {
  font-weight: 800;
  margin-bottom: 4px;
}

/* Every unresolved value renders like this, so it is impossible to read the
   page and not notice what is still missing. */
.todo {
  background: #fdf3d8;
  border-bottom: 2px dotted #b8901f;
  color: #7a5f10;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
}

.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-inline-start: 20px;
  columns: 2;
  column-gap: 30px;
  font-size: 14px;
  line-height: 2.1;
}

.legal-toc a {
  color: var(--color-ink);
}

.legal-body section {
  margin-bottom: 38px;
  scroll-margin-top: 86px; /* clears the sticky header on anchor jumps */
}

.legal-body h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.legal-body h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 2.05;
  color: #3d3831;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-inline-start: 22px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body strong {
  color: var(--color-ink);
  font-weight: 800;
}

.legal-body a {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pulled-out statement for the handful of claims that matter most. */
.legal-callout {
  background: var(--color-accent-soft);
  border-inline-start: 3px solid var(--color-accent-ink);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 18px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* Data inventory. Scrolls on its own rather than widening the page. */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.legal-table th,
.legal-table td {
  text-align: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.8;
}

.legal-table th {
  background: var(--color-surface);
  font-weight: 800;
  font-size: 13px;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
}
