/* H2 Pure Life — Legal pages
 * Loaded after pages/blog.css. Reuses .article-wrap / .article-header / .article-body
 * typography from blog.css; only adds the legal-specific bits (page wrap, "Last updated"
 * meta line, table styles for the cookies policy).
 */

/* Page wrap — mirrors .blog-page-wrap so the article clears the sticky nav with the
   same rhythm as a blog post. */
.legal-page-wrap {
  padding-top: clamp(28px, 4vw, 48px);
}

/* Article body needs a sensible bottom rhythm on legal pages — there's no related-strip
   underneath. */
.legal-page-wrap .article-body {
  padding-bottom: clamp(64px, 8vw, 96px);
}

/* "Last updated" line — inherits .article-meta typography from blog.css, but on legal
   pages it's standalone (no byline / read-time), so a touch more space below it. */
.article-header .article-meta--legal {
  font-style: italic;
  color: var(--ink-mute);
}

/* Tables (used by the Cookies Policy). Plain, readable, calm. */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: clamp(20px, 3vw, 28px) 0 clamp(28px, 4vw, 36px);
  font-size: 0.95rem;
  line-height: 1.55;
}
.article-body table th,
.article-body table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.article-body table thead th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.article-body table tbody tr:last-child th,
.article-body table tbody tr:last-child td {
  border-bottom: 0;
}
/* Mammoth wraps every cell value in <p> — kill the trailing margin so cell padding
   does the work. */
.article-body table td p,
.article-body table th p {
  margin: 0;
}
.article-body table td p + p,
.article-body table th p + p {
  margin-top: 0.4em;
}

/* Mobile — let the tables scroll horizontally rather than crushing the columns. */
@media (max-width: 640px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .article-body table td,
  .article-body table th {
    white-space: normal;
    min-width: 140px;
  }
}
