/* ==========================================================================
   Secretary42 — legal / policy pages (long-form reading layout)
   --------------------------------------------------------------------------
   Add this to Appearance → Customize → Additional CSS *after* the product
   page CSS (wordpress-css.css). It only adds the `.s42-legal` long-form
   layout; the brand tokens, font, and box-sizing reset come from the
   product `.s42-page` rules already in Additional CSS.

   Used by the product-scoped legal pages (/secretary42/privacy, /terms,
   /refund, /security, /third-party-notices). The Impressum stays on the
   existing corporate /imprint page and does NOT use this style.
   ========================================================================== */

.s42-page .s42-legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) 24px clamp(48px, 7vw, 88px);
  color: var(--s42-ink);
  font-size: 1.0rem;
  line-height: 1.7;
}

/* Title block ------------------------------------------------------------- */
.s42-page .s42-legal__header {
  border-bottom: 1px solid var(--s42-line);
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.s42-page .s42-legal__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--s42-blue-700);
  margin-bottom: 10px;
}
.s42-page .s42-legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
}
.s42-page .s42-legal__meta {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--s42-ink-500);
}
.s42-page .s42-legal__lede {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--s42-ink-700);
}

/* Headings + flow --------------------------------------------------------- */
.s42-page .s42-legal h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 740;
  margin: 38px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 84px;
}
.s42-page .s42-legal h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 26px 0 8px;
}
.s42-page .s42-legal h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 6px;
}
.s42-page .s42-legal p { margin: 0 0 15px; }
.s42-page .s42-legal ul,
.s42-page .s42-legal ol { margin: 0 0 15px; padding-left: 24px; }
.s42-page .s42-legal :where(ul) { list-style: disc; }
.s42-page .s42-legal :where(ol) { list-style: decimal; }
.s42-page .s42-legal li { margin: 6px 0; padding-left: 4px; }
.s42-page .s42-legal strong { font-weight: 700; color: var(--s42-ink); }
.s42-page .s42-legal a { color: var(--s42-blue-700); text-decoration: underline; }
.s42-page .s42-legal a:hover { color: var(--s42-blue-800); }
.s42-page .s42-legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--s42-surface-soft);
  border: 1px solid var(--s42-line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Callout (the "short version" blockquotes) ------------------------------- */
.s42-page .s42-legal blockquote {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--s42-blue-050);
  border-left: 4px solid var(--s42-blue-500);
  border-radius: 0 10px 10px 0;
  color: var(--s42-ink-700);
}
.s42-page .s42-legal blockquote p:last-child { margin-bottom: 0; }

/* Editable placeholder for values set at publication --------------------- */
.s42-page .s42-legal .s42-fill {
  background: #fff7e6;
  border: 1px dashed #e0b15a;
  border-radius: 5px;
  padding: 0 6px;
  font-style: normal;
  color: #8a6d3b;
  font-size: 0.92em;
}

/* Tables ------------------------------------------------------------------ */
.s42-page .s42-legal__table {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--s42-line);
  border-radius: 10px;
}
.s42-page .s42-legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.s42-page .s42-legal th,
.s42-page .s42-legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--s42-line);
}
.s42-page .s42-legal thead th {
  background: var(--s42-surface-soft);
  font-weight: 700;
  color: var(--s42-ink);
  white-space: nowrap;
}
.s42-page .s42-legal tbody tr:last-child td { border-bottom: 0; }

/* Footer line ------------------------------------------------------------- */
.s42-page .s42-legal__footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--s42-line);
  font-size: 0.92rem;
  color: var(--s42-ink-500);
}

@media (max-width: 600px) {
  .s42-page .s42-legal { font-size: 0.97rem; }
  .s42-page .s42-legal th,
  .s42-page .s42-legal td { padding: 8px 10px; }
}
