/* Complydome legal pages: Privacy Policy and Terms of Service */
:root {
  --lg-ink: #1f1f1f;
  --lg-body: #3c4043;
  --lg-muted: #5f6368;
  --lg-line: #dadce0;
  --lg-soft: #f8f9fa;
  --lg-accent: #0b57d0;
  --lg-accent-soft: #e8f0fe;
  --lg-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--lg-body); font-family: var(--lg-font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--lg-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Header */
.lg-header { position: sticky; top: 0; z-index: 50; background: #ffffffeb; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--lg-line); }
.lg-header-inner { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--lg-ink); font-weight: 500; }
.lg-brand:hover { text-decoration: none; }
.lg-brand img { height: 34px; width: auto; display: block; }
.lg-brand span { padding-left: 12px; border-left: 1px solid var(--lg-line); font-size: 18px; color: var(--lg-muted); }
.lg-tabs { display: flex; gap: 4px; }
.lg-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--lg-muted); }
.lg-tabs a:hover { background: var(--lg-soft); text-decoration: none; color: var(--lg-ink); }
.lg-tabs a[aria-current="page"] { background: var(--lg-accent-soft); color: var(--lg-accent); }

/* Layout */
.lg-layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px 96px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.lg-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.lg-toc summary { display: block; list-style: none; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-muted); pointer-events: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--lg-line); }
.lg-toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--lg-muted); }
.lg-toc li a:hover { color: var(--lg-ink); text-decoration: none; border-left-color: var(--lg-line); }
.lg-toc li a.is-active { color: var(--lg-accent); border-left-color: var(--lg-accent); font-weight: 500; }
.lg-toc-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.lg-btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px; border: 1px solid var(--lg-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--lg-accent); cursor: pointer; }
.lg-btn:hover { background: var(--lg-accent-soft); text-decoration: none; }

/* Document */
.lg-doc { max-width: 760px; min-width: 0; }
.cd-legal h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--lg-ink); }
.cd-legal .lg-meta { margin: 0 0 32px; font-size: 14px; color: var(--lg-muted); }
.cd-legal .lg-lead { font-size: 18px; line-height: 1.7; color: var(--lg-body); }
.cd-legal .lg-callout { margin: 28px 0; padding: 20px 24px; border-radius: 16px; background: var(--lg-soft); border: 1px solid var(--lg-line); }
.cd-legal .lg-callout p { margin: 0; }
.cd-legal .lg-callout p + p { margin-top: 10px; }
.cd-legal .lg-callout.lg-important { background: #fef7e0; border-color: #f9e3a3; }
.cd-legal section { padding-top: 16px; }
.cd-legal h2 { margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--lg-line); font-size: 24px; font-weight: 500; line-height: 1.3; color: var(--lg-ink); }
.cd-legal section:first-of-type h2 { border-top: 0; padding-top: 0; }
.cd-legal h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; color: var(--lg-ink); }
.cd-legal p { margin: 0 0 14px; }
.cd-legal ul, .cd-legal ol { margin: 0 0 16px; padding-left: 22px; }
.cd-legal li { margin-bottom: 8px; }
.cd-legal li::marker { color: var(--lg-muted); }
.cd-legal strong { color: var(--lg-ink); font-weight: 600; }
.cd-legal .lg-caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.cd-legal .lg-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--lg-line); border-radius: 12px; }
.cd-legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.cd-legal th, .cd-legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lg-line); }
.cd-legal tr:last-child td { border-bottom: 0; }
.cd-legal th { background: var(--lg-soft); font-weight: 600; color: var(--lg-ink); }
.cd-legal address { font-style: normal; margin: 0 0 16px; padding: 18px 22px; border-left: 3px solid var(--lg-accent); background: var(--lg-soft); border-radius: 0 12px 12px 0; }

/* Footer */
.lg-footer { border-top: 1px solid var(--lg-line); background: var(--lg-soft); }
.lg-footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--lg-muted); }
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lg-footer a { color: var(--lg-muted); }

@media (max-width: 920px) {
  .lg-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px 20px 64px; }
  .lg-toc { position: static; max-height: none; padding: 0; border: 1px solid var(--lg-line); border-radius: 14px; background: var(--lg-soft); overflow: hidden; }
  .lg-toc summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: .06em; color: var(--lg-ink); }
  .lg-toc summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--lg-muted); border-bottom: 2px solid var(--lg-muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .lg-toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .lg-toc details[open] summary { border-bottom: 1px solid var(--lg-line); }
  .lg-toc ol { margin: 10px 18px 14px; }
  .lg-toc li a { padding: 9px 0 9px 14px; font-size: 15px; }
  .lg-toc-actions { display: none; }
  .cd-legal section { padding-top: 4px; }
  .cd-legal h2 { margin-top: 28px; padding-top: 22px; }
  .cd-legal .lg-meta { margin-bottom: 22px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .lg-header-inner { height: 58px; padding: 0 16px; }
  .lg-brand img { height: 28px; }
  .lg-brand span { display: none; }
  .lg-tabs a { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .cd-legal h1 { font-size: 30px; }
  .cd-legal h2 { font-size: 20px; }
  .cd-legal h3 { font-size: 16px; }
  .cd-legal .lg-lead { font-size: 16px; }
  .cd-legal .lg-callout { margin: 20px 0; padding: 16px 18px; }
  .cd-legal ul, .cd-legal ol { padding-left: 20px; }
  .cd-legal th, .cd-legal td { padding: 10px 12px; }
  .cd-legal address { padding: 14px 16px; overflow-wrap: anywhere; }
  .lg-footer-inner { padding: 22px 20px; flex-direction: column; }
}
@media (max-width: 480px) {
  .lg-tab-extra { display: none; }
}
@media print {
  .lg-header, .lg-toc, .lg-footer, .skip-link { display: none !important; }
  .lg-layout { display: block; padding: 0; }
  .lg-doc { max-width: none; }
  body { font-size: 11pt; color: #000; }
  .cd-legal h2 { break-after: avoid; }
  a { color: #000; }
}
.cd-legal section:first-of-type h2 { margin-top: 24px; }
