/*
 * SalesFision — Cookie Policy (Complianz) styling supplement.
 *
 * The Cookie Policy page now renders inside the SalesFision legal-page chrome (Option B:
 * includes/legal/template.php → .legal-body / .legal-body-inner), so the base legal styles
 * already provide the readable container width, spacing and base typography (shared with
 * Privacy / Disclaimer / Imprint). This file only SUPPLEMENTS that for the Complianz-
 * specific bits the base styles don't cover — chiefly cookie tables and the manage-consent
 * container — plus small heading/list spacing fallbacks for the raw Complianz markup.
 *
 * Scoped to `body.cmplz-document` so it ONLY affects the Complianz cookie policy page and
 * can never affect another page. Loaded only when Complianz is active (see
 * includes/legal-pages.php), so it has no effect locally. Never removes Complianz content.
 */

/* Complianz cookie tables — readable + mobile-friendly (scroll, never overflow the layout). */
body.cmplz-document .legal-body-inner table,
body.cmplz-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

body.cmplz-document th,
body.cmplz-document td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

body.cmplz-document thead th {
  background: #f9fafb;
  font-weight: 600;
}

/* Heading / list spacing fallbacks for the raw (class-less) Complianz markup. */
body.cmplz-document .legal-body-inner h2 {
  margin: 36px 0 12px;
}

body.cmplz-document .legal-body-inner h3 {
  margin: 24px 0 8px;
}

body.cmplz-document .legal-body-inner ul,
body.cmplz-document .legal-body-inner ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

/* Complianz "manage consent" control, if it renders inside the document. */
body.cmplz-document .cmplz-manage-consent-container {
  margin: 24px 0;
}

@media (max-width: 600px) {
  body.cmplz-document table { font-size: 13px; }
  body.cmplz-document .legal-body-inner h2 { font-size: 1.3rem; }
}
