/* All selectors belong to this standalone page; site.js supplies theme tokens. */
body.cm-legal {
  --beige-light: #f4f7fb;
  --white: #ffffff;
  --ink: #243c52;
  --ink-soft: #42566a;
  --green: #205a87;
  --border-soft: #dce4ed;
  --appearance-accent: #285f91;
  --appearance-onaccent: #ffffff;
  --appearance-nav: #18394f;
  --appearance-navink: #ffffff;
  --appearance-font: "Segoe UI";
  --radius: 14px;
  --radius-lg: 22px;
  margin: 0;
  min-width: 0;
  background: var(--beige-light);
  color: var(--ink);
  font: 1rem/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

.cm-legal *, .cm-legal *::before, .cm-legal *::after { box-sizing: border-box; }
.cm-legal a { color: var(--green); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
.cm-legal a:hover { text-decoration-thickness: 0.15em; }
.cm-legal a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; border-radius: 3px; }
.cm-legal summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.cm-legal [id] { scroll-margin-top: 24px; }
.cm-legal p { margin: 0 0 1.05rem; }
.cm-legal h1, .cm-legal h2 { color: var(--ink); line-height: 1.2; text-wrap: balance; }
.cm-legal h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -0.035em; margin: 0 0 1.2rem; }
.cm-legal h2 { font-size: clamp(1.25rem, 2.8vw, 1.7rem); letter-spacing: -0.015em; margin: 0 0 1.15rem; }
.cm-legal .cm-legal__skip { position: absolute; left: 16px; top: 12px; z-index: 10; padding: 12px 18px; background: var(--white); transform: translateY(-180%); }
.cm-legal .cm-legal__skip:focus { transform: none; }
.cm-legal .cm-legal__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px max(24px, calc((100vw - 1040px) / 2)); background: var(--white); border-bottom: 1px solid var(--border-soft); }
.cm-legal .cm-legal__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.3rem; font-weight: 750; text-decoration: none; }
.cm-legal .cm-legal__monogram { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--appearance-nav); color: var(--appearance-navink); border-radius: 50%; font: 700 1.1rem/1 system-ui, sans-serif; }
.cm-legal .cm-legal__site-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-legal .cm-legal__site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; color: var(--ink); font-size: 0.93rem; text-decoration: none; border-radius: var(--radius); }
.cm-legal .cm-legal__site-nav a:hover { background: var(--beige-light); text-decoration: underline; }
.cm-legal .cm-legal__main { width: min(100% - 48px, 880px); margin: 0 auto; padding: 64px 0 48px; }
.cm-legal .cm-legal__intro { margin-bottom: 36px; }
.cm-legal .cm-legal__eyebrow { margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cm-legal .cm-legal__lead { max-width: 680px; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.7; }
.cm-legal .cm-legal__contents { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.cm-legal .cm-legal__contents a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border-soft); border-radius: 99px; background: var(--white); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.cm-legal .cm-legal__contents a:hover { text-decoration: underline; }
.cm-legal .cm-legal__card { margin: 0 0 20px; padding: clamp(24px, 5vw, 38px); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--white); }
.cm-legal .cm-legal__card > :last-child { margin-bottom: 0; }
.cm-legal .cm-legal__section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.cm-legal .cm-legal__version { flex: 0 0 auto; padding: 6px 12px; border-radius: 99px; background: var(--beige-light); color: var(--ink); font-size: 0.84rem; font-weight: 650; }
.cm-legal .cm-legal__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin: 26px 0 0; padding-top: 23px; border-top: 1px solid var(--border-soft); }
.cm-legal .cm-legal__facts > div:last-child { grid-column: 1 / -1; }
.cm-legal .cm-legal__facts dt { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 4px; }
.cm-legal .cm-legal__facts dd { margin: 0; font-weight: 650; }
.cm-legal .cm-legal__action-row { margin: 23px 0; }
.cm-legal .cm-legal__primary-link { display: inline-flex; gap: 14px; align-items: center; min-height: 48px; padding: 12px 18px; background: var(--appearance-accent); color: var(--appearance-onaccent); border-radius: var(--radius); font-weight: 650; text-decoration: none; }
.cm-legal .cm-legal__primary-link:hover { text-decoration: underline; }
.cm-legal .cm-legal__source-list { list-style: none; padding: 0; margin: 23px 0; }
.cm-legal .cm-legal__source-list li { padding: 17px 0; border-top: 1px solid var(--border-soft); }
.cm-legal .cm-legal__source-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.cm-legal .cm-legal__source-list a { display: inline-block; padding: 3px 0; font-weight: 650; }
.cm-legal .cm-legal__source-list li > span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 0.92rem; }
.cm-legal .cm-legal__source-group { margin: 15px 0; padding: 0 18px; border: 1px solid var(--border-soft); border-radius: var(--radius); }
.cm-legal .cm-legal__source-group summary { min-height: 52px; padding: 14px 0; font-weight: 650; line-height: 1.5; cursor: pointer; }
.cm-legal .cm-legal__source-group summary > span { font-weight: 400; font-size: 0.9rem; }
.cm-legal .cm-legal__source-group .cm-legal__source-list { margin: 0 0 5px; }
.cm-legal .cm-legal__source-group .cm-legal__source-list li:last-child { border-bottom: 0; }
.cm-legal .cm-legal__source-name { font-size: 0.96rem; }
.cm-legal .cm-legal__source-actions { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 5px; }
.cm-legal .cm-legal__source-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; }
.cm-legal .cm-legal__note { padding: 0 0 0 16px; border-left: 3px solid var(--border-soft); color: var(--ink-soft); font-size: 0.94rem; }
.cm-legal .cm-legal__card--compact { padding-block: 27px; }
.cm-legal .cm-legal__card--compact h2 { font-size: 1.15rem; }
.cm-legal .cm-legal__return { padding: 10px 0 0; }
.cm-legal .cm-legal__return a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius); background: var(--white); font-weight: 600; }
.cm-legal .cm-legal__footer { width: min(100% - 48px, 1040px); margin: 0 auto; padding: 28px 0 36px; border-top: 1px solid var(--border-soft); color: var(--ink-soft); font-size: 0.87rem; }
.cm-legal .cm-legal__footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cm-legal .cm-legal__footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

@media (max-width: 600px) {
  .cm-legal .cm-legal__header { flex-wrap: wrap; padding: 16px 18px 12px; gap: 10px; }
  .cm-legal .cm-legal__site-nav { margin-left: -10px; }
  .cm-legal .cm-legal__main { width: calc(100% - 28px); padding-top: 38px; }
  .cm-legal .cm-legal__section-heading { flex-direction: column; gap: 0; margin-bottom: 20px; }
  .cm-legal .cm-legal__version { max-width: 100%; }
  .cm-legal .cm-legal__facts { grid-template-columns: 1fr; gap: 18px; }
  .cm-legal .cm-legal__footer { width: calc(100% - 36px); }
}

@media print {
  body.cm-legal { background: white !important; color: black !important; font-size: 11pt; }
  .cm-legal .cm-legal__main { width: 100%; padding: 0; }
  .cm-legal .cm-legal__header, .cm-legal .cm-legal__contents, .cm-legal .cm-legal__return, .cm-legal .cm-legal__footer, .cm-legal .cm-legal__skip { display: none; }
  .cm-legal .cm-legal__card { break-inside: avoid; padding: 15pt 0; border: 0; border-radius: 0; background: white !important; }
  .cm-legal .cm-legal__source-group > .cm-legal__source-list { display: block; }
  .cm-legal h1, .cm-legal h2, .cm-legal a, .cm-legal p, .cm-legal dt, .cm-legal dd { color: black !important; }
  .cm-legal .cm-legal__primary-link { padding: 0; background: none; }
}
