/* The privacy notice on top of site.css and blog.css: the article frame without a cover, a draft note, placeholders,
   tables and a quieter heading scale for a long reference text. Colours come from the site's tokens, so light and dark
   follow the theme. */

.legal .article-head { padding-bottom: 0; }
.legal .article-title { font-size: clamp(40px, 5.4vw, 68px); }
.legal .article-layout { margin-top: clamp(40px, 5vw, 64px); }
.legal-version { gap: 0; }

/* The draft note: remove data-draft (in tools/build-privacy.mjs) when the notice goes live. */
.legal-draft { max-width: 52ch; margin-top: 8px; padding: 10px 16px; border-radius: 14px; background: var(--record-soft); color: var(--record); font: 600 15px/1.45 var(--font); text-wrap: pretty; }

/* Placeholders the owner still fills in. */
.ph { padding: 0 .12em; border-radius: 6px; background: var(--record-soft); color: var(--record); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.legal .prose { font-size: 18px; line-height: 1.62; }
.legal .prose h2 { font-size: clamp(24px, 2.1vw, 28px); margin-top: 1.7em; }
.legal .prose a { color: var(--accent-text); }
.legal-summary { margin-top: 0; }
.legal-summary li { font-size: 17px; }

.table-wrap { margin-top: 1.1em; overflow-x: auto; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); -webkit-overflow-scrolling: touch; }
.table-wrap + p { margin-top: 1.1em; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
.prose td { border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 600; width: 26%; }

@media (max-width: 640px) {
  .legal .prose { font-size: 17px; }
  /* One card per row: the first cell is its title, the others name their column. */
  .table-wrap { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; min-width: 0; width: auto; }
  .prose thead { display: none; }
  .prose tr { margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); }
  .prose td, .prose tr:last-child td { padding: 0; border: 0; }
  .prose td:first-child { width: auto; font-size: 16px; }
  .prose td + td { margin-top: 8px; }
  .prose td + td::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
  .legal-draft { font-size: 14px; }
}
