/* Wenya Connect — shared layout for legal pages
   (privacy, terms, ai-policy, cookies, do-not-sell, dpa).
   Template from Figma "FINAL landing pages": nav · legal header · on-this-page · sections · contact · footer.
   Uses the tokens defined in site.css. */

/* Legal header (tint band) */
.legal-head { background: var(--tint); padding: 72px var(--gutter) 56px; }
.legal-head__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.legal-head h1 { font-size: 48px; font-weight: 800; line-height: 1.12; letter-spacing: -0.96px; color: var(--blue); }
.legal-head__date { font-size: 14px; line-height: 1.5; color: var(--soft); }
.legal-head__lede { max-width: 860px; font-size: 19px; line-height: 1.55; color: var(--mute); }

/* Body: on-this-page rail + sections */
.legal-body {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 64px var(--gutter) 88px;
  display: flex; gap: 80px; align-items: flex-start;
}

.legal-toc {
  flex: none; width: 280px; padding-top: 4px;
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 24px;
}
.legal-toc__title { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.52px; text-transform: uppercase; color: var(--soft); }
.legal-toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { display: block; font-size: 14px; line-height: 1.5; color: var(--blue); }
.legal-toc a:hover { text-decoration: underline; }

.legal-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.legal-section { display: flex; flex-direction: column; gap: 10px; }
.legal-section h2 { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--ink); scroll-margin-top: 24px; }
.legal-section p { font-size: 16px; line-height: 1.55; color: var(--mute); overflow-wrap: anywhere; }

/* Inline links in legal copy: same colour as the text (per Figma), underlined so they read as links */
.legal-content p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal-content p a:hover { color: var(--blue); }

/* Focus ring: zest (site default) is invisible on white, so use blue on legal pages */
.legal a:focus-visible { outline-color: var(--blue); }

/* Contact box */
.legal-contact { background: var(--tint); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.legal-contact h2 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--blue); }
.legal-contact p { font-size: 16px; line-height: 1.55; color: var(--mute); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .legal-body { gap: 48px; }
  .legal-toc { width: 240px; }
}
@media (max-width: 860px) {
  .legal-head { padding-top: 48px; padding-bottom: 40px; }
  .legal-head h1 { font-size: 36px; letter-spacing: -0.72px; }
  .legal-head__lede { font-size: 17px; }
  .legal-body { flex-direction: column; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
  .legal-toc { position: static; width: 100%; padding: 20px; background: var(--tint); border-radius: 16px; }
  .legal-section h2 { font-size: 20px; }
  .legal-contact { padding: 22px; }
}
