/* CruitUp legal pages: dark title band, sticky contents, readable column; tokens match the main site */
:root {
  color-scheme: light;
  --black: #0d0e12; --white: #ffffff; --pink: #fc2670; --green: #4fda97; --blue: #2567fe;
  --ink: #0d0e12; --muted: #5b6070; --line: #e4e6eb; --soft: #f4f5f8; --mark-bg: #fff3cf; --mark-fg: #7a5600;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.7 var(--font); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: calc(1320px + 2 * max(16px, env(safe-area-inset-left, 0px))); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.lg-head { background: var(--black); color: var(--white); padding-top: env(safe-area-inset-top, 0px); position: relative; overflow: hidden; }
.lg-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: url(assets/icon-grid.svg) right -60px top -40px / 760px auto repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }
.lg-bar { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; position: relative; }
.lg-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.lg-logo svg { width: 24px; height: auto; }
.lg-back { display: inline-flex; align-items: center; gap: 8px; color: #c9ccd6; text-decoration: none; font-size: 14px; font-weight: 500; }
.lg-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.lg-back:hover { color: var(--white); }
.lg-back:hover svg { transform: translateX(-3px); }
.lg-title { position: relative; padding-block: 72px 40px; }
.lg-title h1 { margin: 0; font-weight: 500; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: .02em; text-wrap: balance; }
.lg-title p { margin: 16px 0 0; color: #c9ccd6; font-size: 18px; max-width: 56ch; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: #8b90a0; letter-spacing: .04em; }
.lg-tabs { position: relative; display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 28px; }
.lg-tabs a { text-decoration: none; font-size: 14px; font-weight: 500; color: #c9ccd6; padding: 8px 14px; border-radius: 999px; border: 1px solid #2b2d36; transition: color .2s, border-color .2s, background .2s; }
.lg-tabs a:hover { color: var(--white); border-color: #4a4d5a; }
.lg-tabs a[aria-current="page"] { background: var(--white); color: var(--black); border-color: var(--white); }

.lg-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; padding-block: 64px 96px; }
.lg-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
.lg-toc h2 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.lg-toc a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 6px 10px; margin-left: -10px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.4; color: var(--muted); transition: background .2s, color .2s; }
.lg-toc a span { font-variant-numeric: tabular-nums; color: #a3a8b5; font-size: 12px; padding-top: 1px; }
.lg-toc a:hover { background: var(--soft); color: var(--ink); }
.lg-toc a.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.lg-toc a.on span { color: var(--green); }

.lg-doc { max-width: 72ch; min-width: 0; }
.lg-sec { scroll-margin-top: 24px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.lg-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.lg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.lg-sec h2 { margin: 6px 0 16px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
.lg-sec p { margin: 0 0 14px; }
.lg-sec ul, .lg-sec ol { margin: 0 0 14px; padding-left: 20px; }
.lg-sec li { margin-bottom: 8px; }
.lg-sec li::marker { color: #a3a8b5; }
.lg-sec a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(37,103,254,.35); text-underline-offset: 3px; }
.lg-sec a:hover { text-decoration-color: var(--blue); }
.facts { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 10px 28px; margin: 0; padding: 22px 24px; background: var(--soft); border-radius: 12px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.legal-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: 0; }
mark.ph { background: var(--mark-bg); color: var(--mark-fg); border-radius: 4px; padding: 1px 5px; font-weight: 500; }

@media (max-width: 900px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 72px; }
  .lg-toc { position: static; max-height: none; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
  .lg-title { padding-block: 44px 28px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Footer, shared with the home page */
.band-dark { background: var(--black); color: var(--white); }
.site-foot a { text-decoration: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(79,218,151,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(79,218,151,0); } }
/* Footer: brand + four link columns, then a thin legal strip with a live status pill */
.site-foot { margin-top: 0; border-top: 1px solid #23252d; color: #a3a8b5; font-size: 14px; }
.foot-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr); gap: 48px; padding-block: 64px 56px; }
.foot-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.foot-logo svg { width: 24px; height: auto; }
.foot-brand p { margin-top: 18px; line-height: 1.6; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.soc { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #2b2d36; display: grid; place-items: center; color: #a3a8b5; transition: color .25s, border-color .25s, transform .25s; }
.soc svg { width: 16px; height: 16px; fill: currentColor; }
.soc:hover { color: var(--white); border-color: #4a4d5a; transform: translateY(-1px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, max-content); justify-content: end; gap: 32px 88px; }
.fcol h4 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fcol a { color: #a3a8b5; transition: color .2s; }
.fcol a:hover { color: var(--white); }
.foot-strip { border-top: 1px solid #23252d; font-size: 13px; }
.foot-strip .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.strip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.strip-links a, .status { color: #8b90a0; transition: color .2s; }
.strip-links a:hover, .status:hover { color: var(--white); }
.strip-muted { color: #5a5e6b; cursor: default; }
.status { display: inline-flex; align-items: center; gap: 9px; }
.lang { position: relative; }
.lang-btn { appearance: none; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 6px 4px; color: #8b90a0; font: 600 13px/1 var(--font, inherit); letter-spacing: .06em; cursor: pointer; transition: color .2s; border-radius: 8px; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: #fff; }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .lang-chev { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #16171d; border: 1px solid #2b2d36; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 20; transform-origin: 100% 100%; animation: langUp .22s cubic-bezier(.32,.72,0,1); }
.lang-menu[hidden] { display: none; }
@media (max-width: 640px) { .lang-menu { right: auto; left: 0; transform-origin: 0 100%; } }
@keyframes langUp { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.lang-menu button { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #c9ccd6; font: 500 14px/1.2 var(--font, inherit); cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.lang-menu button b { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #5a5e6b; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255,255,255,.06); color: #fff; outline: none; }
.lang-menu button[aria-checked="true"] { color: #fff; }
.lang-menu button[aria-checked="true"] b { color: var(--green, #4fda97); }
@media (prefers-reduced-motion: reduce) { .lang-menu { animation: none; } .lang-btn .lang-chev { transition: none; } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2.4s ease-out infinite; }
@media (max-width: 1000px) { .foot-main { grid-template-columns: minmax(0, 1fr); } .foot-cols { justify-content: start; } }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } .site-foot { margin-top: 70px; } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }
