/* Website CMS pages (/page/<name>) such as Privacy Policy. 2026-11-12 */
.cmsp {
  --cp-brand: var(--ws-brand, #ad0101);
  --cp-ink: #0f172a;
  --cp-text: #374151;
  --cp-muted: #6b7280;
  --cp-line: #e5e7eb;
  --cp-soft: #f8fafc;
  color: var(--cp-text);
}

.cmsp, .cmsp *, .cmsp *::before, .cmsp *::after { box-sizing: border-box; }
.cmsp .container { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* Header band */
.cmsp-hero { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); border-bottom: 1px solid var(--cp-line); padding: 28px 0 34px; }
.cmsp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--cp-muted); margin-bottom: 14px; }
.cmsp-crumbs a { color: var(--cp-muted); text-decoration: none; }
.cmsp-crumbs a:hover { color: var(--cp-brand); }
.cmsp-crumbs span:last-child { color: var(--cp-ink); font-weight: 600; }
.cmsp-title { font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--cp-ink); margin: 0; letter-spacing: -.01em; }
.cmsp-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--cp-brand); margin-top: 14px; }
.cmsp-lead { font-size: 16px; line-height: 1.6; color: var(--cp-muted); margin: 14px 0 0; max-width: 720px; }
.cmsp-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cp-muted); background: #fff; border: 1px solid var(--cp-line); border-radius: 999px; padding: 5px 12px; margin: 16px 0 0; }

/* Layout */
.cmsp-wrap { padding: 36px 0 60px; }
.cmsp-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.cmsp-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }

/* On this page */
.cmsp-side { position: sticky; top: 110px; }
.cmsp-toc { background: #fff; border: 1px solid var(--cp-line); border-radius: 14px; padding: 6px 0; max-height: calc(100vh - 140px); overflow: auto; }
.cmsp-toc summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-muted); padding: 12px 18px 8px; }
.cmsp-toc summary::-webkit-details-marker { display: none; }
.cmsp-toc ol { list-style: none; margin: 0; padding: 0 8px 8px; counter-reset: none; }
.cmsp-toc li { margin: 0; padding: 0; }
.cmsp-toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--cp-text); text-decoration: none; padding: 7px 10px; border-radius: 8px; border-left: 3px solid transparent; }
.cmsp-toc a:hover { background: var(--cp-soft); color: var(--cp-ink); }
.cmsp-toc a.is-active { background: #fef2f2; color: var(--cp-brand); border-left-color: var(--cp-brand); font-weight: 600; }

/* Reading card */
.cmsp-card { background: #fff; border: 1px solid var(--cp-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -20px rgba(15, 23, 42, .18); padding: 40px 48px; }

/* Typography for the admin's HTML. Colors are set here on purpose because the
   theme's color utility classes are tinted red. */
.cmsp-body { font-size: 16px; line-height: 1.75; color: var(--cp-text); max-width: 760px; overflow-wrap: anywhere; }
.cmsp-body p, .cmsp-body li, .cmsp-body td, .cmsp-body th, .cmsp-body span, .cmsp-body div { color: var(--cp-text); }
.cmsp-body p { margin: 0 0 14px; }
.cmsp-body > p:first-child { display: inline-block; font-size: 14px; background: var(--cp-soft); border: 1px solid var(--cp-line); border-radius: 10px; padding: 8px 14px; margin-bottom: 20px; }
.cmsp-body strong, .cmsp-body b { color: var(--cp-ink); font-weight: 600; }
.cmsp-body h1, .cmsp-body h2, .cmsp-body h3, .cmsp-body h4, .cmsp-body h5, .cmsp-body h6 { color: var(--cp-ink); font-weight: 700; line-height: 1.3; scroll-margin-top: 110px; }
.cmsp-body h2 { font-size: 26px; margin: 38px 0 14px; }
.cmsp-body h3 { font-size: 21px; margin: 40px 0 14px; padding-top: 26px; border-top: 1px solid var(--cp-line); }
.cmsp-body h4 { font-size: 16px; margin: 24px 0 8px; color: var(--cp-ink); }
.cmsp-body h5, .cmsp-body h6 { font-size: 15px; margin: 20px 0 8px; }
.cmsp-body ul, .cmsp-body ol { margin: 0 0 18px; padding-left: 0; }
.cmsp-body ul { list-style: none; }
.cmsp-body ul li { position: relative; padding-left: 22px; margin: 6px 0; }
.cmsp-body ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--cp-brand); opacity: .85; }
.cmsp-body ol { list-style: decimal; padding-left: 22px; }
.cmsp-body ol li { margin: 6px 0; padding-left: 4px; }
.cmsp-body a { color: var(--cp-brand); text-decoration: underline; text-underline-offset: 2px; }
.cmsp-body a:hover { text-decoration-thickness: 2px; }
.cmsp-body img { max-width: 100%; height: auto; border-radius: 10px; }
.cmsp-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.cmsp-body th, .cmsp-body td { border: 1px solid var(--cp-line); padding: 8px 12px; text-align: left; }
.cmsp-body th { background: var(--cp-soft); color: var(--cp-ink); }
.cmsp-body blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 4px solid var(--cp-brand); background: var(--cp-soft); border-radius: 0 10px 10px 0; }
.cmsp-body hr { border: 0; border-top: 1px solid var(--cp-line); margin: 28px 0; }

/* Back to top */
.cmsp-top { position: fixed; right: 20px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; background: var(--cp-ink); color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .6); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, background .2s; z-index: 50; text-decoration: none; }
.cmsp-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.cmsp-top:hover { background: var(--cp-brand); }

/* Tablet and phone */
@media (max-width: 991px) {
  .cmsp-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cmsp-side { position: static; }
  .cmsp-toc { max-height: none; }
  .cmsp-toc summary { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 12px 16px; }
  .cmsp-toc summary::after { content: "\25BE"; font-size: 14px; transition: transform .2s; }
  .cmsp-toc[open] summary::after { transform: rotate(180deg); }
  .cmsp-card { padding: 30px 28px; }
}
@media (max-width: 575px) {
  .cmsp-hero { padding: 20px 0 24px; }
  .cmsp-title { font-size: 28px; }
  .cmsp-lead { font-size: 15px; }
  .cmsp-wrap { padding: 20px 0 40px; }
  .cmsp-card { padding: 22px 18px; border-radius: 12px; }
  .cmsp-body { font-size: 15px; line-height: 1.7; }
  .cmsp-body h3 { font-size: 19px; margin-top: 30px; padding-top: 20px; }
}

/* Print: just the text */
@media print {
  .cmsp-hero { background: none; border: 0; padding: 0 0 10px; }
  .cmsp-crumbs, .cmsp-side, .cmsp-top, .cmsp-meta { display: none !important; }
  .cmsp-grid { display: block; }
  .cmsp-card { border: 0; box-shadow: none; padding: 0; }
  .cmsp-body { max-width: none; font-size: 12pt; }
  .cmsp-body a { color: #000; }
}
