/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Service). Light theme in the site's
   navy / blue / teal. Header, footer and popup are the site's own.
   ========================================================================== */
.legal {
  --lg-ink: #061124;
  --lg-navy: #0a192d;
  --lg-blue: #1e40af;
  --lg-teal: #14b8a6;
  --lg-body: #334155;
  --lg-mute: #64748b;
  --lg-line: #e4e9f0;
  --lg-tint: #f3f8ff;
  --lg-grad: linear-gradient(135deg, #1e40af 0%, #0f5fb8 55%, #14b8a6 100%);
  padding-top: 76px; /* the site header is fixed */
  background: #fff;
  color: var(--lg-ink);
}

/* the site header is transparent over dark photo heroes; on this light page it starts in its solid navy state
   and then follows the site's normal scrolled style */
.lg-page .header-fullwidth:not(.scrolled) { background: #0a192d; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.lg-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.legal [id] { scroll-margin-top: 96px; }

/* ---- hero ---- */
.lg-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%); border-bottom: 1px solid var(--lg-line); }
.lg-hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 80% at 12% 0%, rgba(30, 64, 175, 0.1), transparent 70%), radial-gradient(ellipse 40% 60% at 92% 100%, rgba(20, 184, 166, 0.14), transparent 70%); }
.lg-hero-in { position: relative; z-index: 1; }
.lg-hero-in > * { opacity: 0; transform: translateY(16px); animation: abUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.lg-hero-in > :nth-child(2) { animation-delay: 0.06s; }
.lg-hero-in > :nth-child(3) { animation-delay: 0.14s; }
.lg-hero-in > :nth-child(4) { animation-delay: 0.22s; }
.lg-hero-in > :nth-child(5) { animation-delay: 0.3s; }

.lg-crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 0.86rem; color: var(--lg-mute); }
.lg-crumbs a { color: var(--lg-blue); font-weight: 600; }
.lg-crumbs a:hover { text-decoration: underline; }
.lg-crumbs i { font-size: 0.6rem; }

.lg-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px; background: #fff; border: 1px solid var(--lg-line); box-shadow: 0 6px 18px rgba(11, 42, 99, 0.08); font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lg-blue); }
.lg-pill i { color: var(--lg-teal); }

.lg-h1 { margin: 0 0 16px; font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: var(--lg-ink); }
.lg-lead { max-width: 760px; margin-bottom: 22px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--lg-body); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; font-size: 0.92rem; color: var(--lg-mute); }
.lg-meta i { margin-right: 6px; color: var(--lg-teal); }

/* ---- layout ---- */
.lg-body { padding: 56px 0 72px; }
.lg-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; align-items: start; }

/* ---- table of contents ---- */
.lg-side { position: sticky; top: 100px; }
.lg-toc { padding: 22px 8px 22px 0; }
.lg-toc-title { margin: 0 0 14px; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lg-mute); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--lg-line); counter-reset: toc; max-height: calc(100vh - 220px); overflow-y: auto; scrollbar-width: thin; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { position: relative; display: block; padding: 7px 12px 7px 18px; font-size: 0.9rem; line-height: 1.4; color: var(--lg-mute); transition: color 0.25s ease, background 0.25s ease; }
.lg-toc a::before { content: counter(toc) '. '; font-variant-numeric: tabular-nums; }
.lg-toc a::after { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--lg-blue); transform: scaleY(0); transition: transform 0.3s ease; }
.lg-toc a:hover { color: var(--lg-ink); }
.lg-toc a.on { color: var(--lg-blue); font-weight: 600; background: linear-gradient(90deg, rgba(30, 64, 175, 0.07), transparent); }
.lg-toc a.on::after { transform: scaleY(1); }

/* ---- article ---- */
.lg-article { max-width: 860px; }

.lg-glance { margin-bottom: 44px; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--lg-line); border-left: 5px solid var(--lg-blue); background: linear-gradient(135deg, #f3f8ff, #ffffff); box-shadow: 0 14px 34px rgba(11, 42, 99, 0.07); }
.lg-glance-title { margin: 0 0 14px; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--lg-ink); }
.lg-glance-title i { margin-right: 8px; color: var(--lg-teal); }
.lg-glance ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lg-glance li { position: relative; padding-left: 26px; line-height: 1.65; color: var(--lg-body); }
.lg-glance li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 4px; background: var(--lg-grad); }

.lg-sec { padding: 8px 0 34px; }
.lg-sec + .lg-sec { border-top: 1px solid var(--lg-line); padding-top: 38px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-family: var(--font-heading); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--lg-ink); }
.lg-n { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--lg-grad); font-size: 0.95rem; font-weight: 700; color: #fff; transform: translateY(-2px); }
.lg-sec h3 { margin: 26px 0 8px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--lg-ink); }
.lg-sec p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.8; color: var(--lg-body); }
.lg-sec ul { margin: 0 0 18px; padding: 0 0 0 22px; }
.lg-sec li { margin-bottom: 9px; font-size: 1.02rem; line-height: 1.75; color: var(--lg-body); }
.lg-sec li::marker { color: var(--lg-blue); }
.lg-sec a { color: var(--lg-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(30, 64, 175, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.lg-sec a:hover { text-decoration-color: var(--lg-blue); }
.lg-sec strong { color: var(--lg-ink); }

.lg-table-wrap { margin: 6px 0 20px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--lg-line); }
.lg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.97rem; }
.lg-table th { padding: 13px 18px; text-align: left; font-family: var(--font-heading); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lg-tint); color: var(--lg-blue); }
.lg-table td { padding: 14px 18px; vertical-align: top; line-height: 1.65; color: var(--lg-body); border-top: 1px solid var(--lg-line); }
.lg-table td:first-child { width: 30%; }

/* ---- call to action ---- */
.lg-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; padding: 30px 32px; border-radius: 20px; background: var(--lg-grad); color: #fff; box-shadow: 0 22px 46px rgba(30, 64, 175, 0.28); }
.lg-cta h2 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #fff; }
.lg-cta p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.lg-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lg-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: #fff; font-family: var(--font-heading); font-weight: 600; color: var(--lg-navy); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22); }
.lg-btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.lg-btn.ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .lg-wrap { padding: 0 20px; }
  .lg-hero { padding: 44px 0 40px; }
  .lg-body { padding: 36px 0 48px; }
  .lg-grid { grid-template-columns: 1fr; gap: 28px; }
  .lg-side { position: static; }
  .lg-toc { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--lg-line); background: var(--lg-tint); }
  .lg-toc ol { max-height: none; }
  .lg-cta { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-hero-in > * { animation: none; opacity: 1; transform: none; }
}

/* printing a policy should give a clean page */
@media print {
  .header-fullwidth, .lg-side, .lg-cta, footer, .sx-modal { display: none !important; }
  .legal { padding-top: 0; }
  .lg-grid { display: block; }
}
