/* Privacy Policy and Terms of Service. Shares colours, header and footer with landing.css. */
.cq-legal-page .cq-header-inner { justify-content: space-between; }
.cq-legal-page .cq-brand-name { white-space: nowrap; }
.cq-legal-home .cq-icon { width: 18px; height: 18px; }

.cq-legal-hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.cq-landing .cq-legal-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.cq-legal-updated { font-size: 14px; font-weight: 600; color: var(--cq-muted); }

.cq-legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: 40px; }

/* Contents list stays in view while reading on wide screens. */
.cq-legal-toc { position: sticky; top: 110px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--cq-line); }
.cq-legal-toc p { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cq-accent); }
.cq-landing .cq-legal-toc ol { display: flex; flex-direction: column; gap: 2px; counter-reset: cq-toc; }
.cq-landing .cq-legal-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--cq-body); font-size: 14px; text-decoration: none; }
.cq-landing .cq-legal-toc a:hover { background: var(--cq-sand); color: var(--cq-ink); }

.cq-legal-body { max-width: 760px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: rgba(255, 255, 255, 0.8); border: 1px solid #fff; box-shadow: 0 24px 48px -32px rgba(34, 21, 14, 0.35); }
.cq-legal-body section { scroll-margin-top: 110px; }
.cq-legal-body section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--cq-line); }
.cq-landing .cq-legal-body h2 { margin-bottom: 14px; font-size: clamp(24px, 2.6vw, 30px); }
.cq-legal-body h2 span { color: var(--cq-caramel); }
.cq-legal-body p { color: var(--cq-body); }
.cq-legal-body p + p,
.cq-legal-body ul + p { margin-top: 12px; }
.cq-landing .cq-legal-body ul { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.cq-legal-body li { position: relative; padding-left: 22px; color: var(--cq-body); }
.cq-legal-body li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cq-caramel); }

.cq-landing .cq-legal-contact { display: grid; gap: 0; margin-top: 16px; }
.cq-legal-contact div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--cq-line); }
.cq-legal-contact dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cq-muted); padding-top: 3px; }
.cq-legal-contact dd { font-weight: 600; overflow-wrap: anywhere; }

.cq-legal-other { margin-top: 36px; }
.cq-landing .cq-legal-other a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.cq-legal-other .cq-icon { width: 18px; height: 18px; }

/* Tablet and phone: one column, the contents list above the text. */
@media (max-width: 900px) {
  .cq-legal-grid { grid-template-columns: minmax(0, 1fr); }
  .cq-legal-toc { position: static; }
}

@media (max-width: 600px) {
  .cq-legal-home { min-height: 42px; padding: 0 12px; gap: 6px; font-size: 14px; }
  .cq-legal-contact div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
