/* CMM legal pages (Privacy Policy, Terms of Service). Uses the existing cmm-marketing tokens only. 0.6.11 */
.lg-hero { padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.lg-title { max-width: none; font-size: var(--fs-display-s); }
.lg-hero .hero__lead { max-width: 40em; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 5vw, 72px) var(--sp-section); align-items: start; }
.lg-toc { position: sticky; top: 104px; font-size: var(--fs-meta); }
.lg-toc summary { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-micro); list-style: none; cursor: default; margin-bottom: 12px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.lg-toc a:hover, .lg-toc a[aria-current="true"] { color: var(--viridian-700); border-left-color: var(--viridian-700); }
.lg-doc { max-width: 46rem; counter-reset: sec; color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.lg-doc > section { padding-top: 8px; margin-bottom: clamp(36px, 4vw, 52px); scroll-margin-top: 110px; }
.lg-doc h2 { counter-increment: sec; font-size: var(--fs-h3); line-height: 1.25; color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.lg-doc h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--viridian-700); background: var(--vir-50); border-radius: 6px; padding: 2px 7px; transform: translateY(-2px); }
.lg-doc .lg-summary h2::before { content: "i"; }
.lg-doc p, .lg-doc ul { margin: 0 0 14px; }
.lg-doc ul { padding-left: 1.2em; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc li::marker { color: var(--viridian); }
.lg-doc a { color: var(--viridian-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-doc strong { color: var(--ink); }
.lg-doc code { font-family: var(--mono); font-size: .88em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.lg-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 8px; }
.lg-table-wrap { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.lg-doc table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.lg-doc th { text-align: left; background: var(--paper); color: var(--ink); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lg-doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-doc tr:last-child td { border-bottom: 0; }
.lg-doc td:first-child { color: var(--ink); font-weight: 600; width: 42%; }
.lg-cookie-decl { border: 1px solid var(--line-raised); border-radius: 14px; padding: 18px 20px; margin-top: 8px; background: #fff; font-size: .95rem; overflow-x: auto; }
.lg-cookie-decl:empty { display: none; }
.lg-cookie-decl a { color: var(--viridian-700); }
.lg-cookie-decl table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .875rem; }
.lg-cookie-decl th, .lg-cookie-decl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.lg-cookie-decl th { background: var(--paper); color: var(--ink); }
.lg-cookie-decl td:first-child { width: auto; font-weight: 600; }
.lg-inline-btn { font: inherit; color: var(--viridian-700); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lg-related { margin-top: 28px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-meta); }
@media (max-width: 900px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .lg-toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--paper); }
  .lg-toc summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .lg-toc summary::after { content: "+"; font-size: 1.1rem; }
  .lg-toc details[open] summary::after { content: "–"; }
  .lg-toc details[open] summary { margin-bottom: 10px; }
  .lg-doc { font-size: 1rem; }
  .lg-doc td:first-child { width: auto; }
}
.lg-lead { margin-top: 18px; max-width: 40em; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.lg-toc a, .lg-toc a:hover { text-decoration: none !important; }
.lg-doc ul { list-style: disc; }
.lg-doc .lg-mono { list-style: none; padding-left: 0; }
.lg-doc .lg-mono li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lg-summary { background: #fff; }
.lg-hero .hero__title { margin-top: 16px; }
.lg-lead { margin-top: 18px; max-width: 40em; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.lg-toc a, .lg-toc a:hover { text-decoration: none !important; }
.lg-doc ul { list-style: disc; }
.lg-doc .lg-mono { list-style: none; padding-left: 0; }
.lg-doc .lg-mono li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lg-hero .hero__title { margin-top: 16px; }
.lg-scopes code { word-break: break-all; }
/* The Cookie settings controls stay hidden until Cookiebot has loaded (class-legal.php unhides them). */
[data-cmm-cookie-settings][hidden], .site-footer__links li[hidden] { display: none !important; }
/* Show the declaration box only once Cookiebot has written its content into it. */
.lg-cookie-decl:not(:has(> :not(script))) { display: none; }
