/* ============================================================
   Zexovo — legal documents (/privacy-policy, /legal-notice)

   These two pages used to carry their own cut-down <nav> and a
   wall of inline styles, which made them the only pages on the
   site with a different header and a different idea of what a
   page looks like. They now use the shared nav and footer from
   aihrms.css, and this sheet supplies the one thing those pages
   need that no other page does: a long, numbered document with a
   contents rail beside it.

   Both pages share every rule here. Only the accent changes, and
   it is a single custom property on .lg-page — amber for the
   legal notice, indigo for the privacy policy — so the two read
   as siblings rather than as two unrelated documents.
   ============================================================ */

.lg-page {
  --lg-accent: #5b4dff;
  --lg-accent-soft: #f2f1ff;
  --lg-accent-line: #ddd9ff;
  --lg-tint-a: #f7f7ff;
  --lg-tint-b: #f4fbff;

  --lg-ink: #111827;
  --lg-ink-2: #374151;
  --lg-gray: #4b5563;
  --lg-muted: #6b7280;
  --lg-line: #e8e6f5;

  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--lg-ink);
  background: #fff;
}

/* The accent is a text colour as much as a fill — links, the eyebrow, the
   section numbers, and the label on the solid button all take it. The old
   #c97a14 managed only 3.35:1 against white, so it is deepened here: #a35f08
   clears 5:1 both ways, on white and under white. */
.lg-page.lg-amber {
  --lg-accent: #a35f08;
  --lg-accent-soft: #fdf5e8;
  --lg-accent-line: #f3e2c4;
  --lg-tint-a: #fffaf2;
  --lg-tint-b: #fff7eb;
  --lg-line: #f1e7d8;
}

.lg-page *,
.lg-page *::before,
.lg-page *::after { box-sizing: border-box; }

/* Content column: 1180px, the same one .footer-inner and every
   section on the product pages use, so the edges line up. */
.lg-inner {
  max-width: 1268px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ── Hero ─────────────────────────────────────────────── */
.lg-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--lg-line);
  background:
    radial-gradient(62% 80% at 88% 0%, color-mix(in srgb, var(--lg-accent) 14%, transparent) 0%, transparent 58%),
    linear-gradient(180deg, var(--lg-tint-a) 0%, #fff 78%);
  padding: 68px 0 52px;
}

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lg-accent-soft);
  border: 1px solid var(--lg-accent-line);
  color: var(--lg-accent);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lg-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.lg-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 20px 0 16px;
  max-width: 16ch;
}

.lg-lead {
  max-width: 62ch;
  color: var(--lg-gray);
  font-size: 16.5px;
  line-height: 1.68;
  margin: 0;
}

.lg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lg-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lg-gray);
}

.lg-meta span b {
  color: var(--lg-ink);
  font-weight: 700;
}

.lg-meta svg {
  width: 14px;
  height: 14px;
  color: var(--lg-accent);
  flex-shrink: 0;
}

/* ── Body: contents rail + document ───────────────────── */
.lg-body {
  padding: 56px 0 88px;
  background: #fff;
}

.lg-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.lg-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.lg-toc h2 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin: 0 0 14px;
}

.lg-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lg-toc;
  border-left: 2px solid var(--lg-line);
}

.lg-toc a {
  counter-increment: lg-toc;
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--lg-gray);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.lg-toc a::before {
  content: counter(lg-toc) ". ";
  color: var(--lg-muted);
  font-variant-numeric: tabular-nums;
}

.lg-toc a:hover { color: var(--lg-accent); }

.lg-toc a.is-active {
  color: var(--lg-accent);
  border-left-color: var(--lg-accent);
  font-weight: 700;
}

.lg-toc a.is-active::before { color: var(--lg-accent); }

/* ── The document ─────────────────────────────────────── */
.lg-doc {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  padding: 40px 44px 44px;
  box-shadow: 0 18px 44px -26px rgba(15, 23, 42, 0.22);
}

.lg-doc > p:first-child {
  font-size: 16px;
  line-height: 1.75;
  color: var(--lg-ink-2);
}

.lg-doc p,
.lg-doc li {
  color: var(--lg-ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.lg-doc p { margin: 0 0 14px; }

/* Prose links only. A classed link inside the document — the end-cap
   buttons — carries its own colour, and this rule is two classes deep, so
   without the :not() it outranks .lg-btn-solid and paints the button's
   label the same amber as its background. */
.lg-doc a:not([class]) {
  color: var(--lg-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-sec {
  scroll-margin-top: 96px;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--lg-line);
}

.lg-doc > .lg-sec:first-of-type {
  padding-top: 0;
  border-top: 0;
}

/* The number sits in the margin on a wide screen and inline on a
   narrow one, so a heading never wraps around a floating digit. */
.lg-sec h2 {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lg-ink);
  margin: 0 0 12px;
}

.lg-sec h2 .lg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--lg-accent-soft);
  border: 1px solid var(--lg-accent-line);
  color: var(--lg-accent);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  vertical-align: 2px;
}

.lg-sec h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--lg-ink);
  margin: 22px 0 8px;
}

.lg-sec ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.lg-sec ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}

.lg-sec ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lg-accent);
  opacity: .55;
}

/* An address / contact block: the same content the pages used to
   set as a run of <br>s, given a shape instead. */
.lg-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--lg-line);
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 14px;
}

.lg-facts div {
  background: #fff;
  padding: 14px 16px;
}

.lg-facts dt,
.lg-facts .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 4px;
}

.lg-facts .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-ink);
  line-height: 1.5;
  word-break: break-word;
}

/* A short aside inside a section — the "we do not sell your data"
   kind of line that should not read like every other paragraph. */
.lg-note {
  background: var(--lg-accent-soft);
  border: 1px solid var(--lg-accent-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

.lg-note p:last-child { margin-bottom: 0; }

.lg-note p {
  font-size: 14px;
  color: var(--lg-ink-2);
}

/* ── Foot of the document ─────────────────────────────── */
.lg-endcap {
  margin-top: 34px;
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--lg-tint-a), var(--lg-tint-b));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lg-endcap h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lg-ink);
  margin: 0 0 5px;
}

.lg-endcap p {
  font-size: 14px;
  color: var(--lg-gray);
  margin: 0;
  max-width: 52ch;
}

.lg-endcap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.lg-btn-solid {
  background: var(--lg-accent);
  border: 1px solid var(--lg-accent);
  color: #fff;
}

.lg-btn-solid:hover { filter: brightness(1.07); }

.lg-btn-ghost {
  background: #fff;
  border: 1px solid var(--lg-line);
  color: var(--lg-ink);
}

.lg-btn-ghost:hover { border-color: var(--lg-accent); color: var(--lg-accent); }

.lg-disclaimer {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lg-muted);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .lg-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Collapsed to a plain card above the document: sticky would
     otherwise hold a full-width block over the text. */
  .lg-toc {
    position: static;
    max-height: none;
    border: 1px solid var(--lg-line);
    border-radius: 14px;
    padding: 18px 20px;
    background: #fff;
  }

  .lg-toc ol {
    border-left: 0;
    columns: 2;
    column-gap: 24px;
  }

  .lg-toc a {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    break-inside: avoid;
  }

  .lg-toc a.is-active { border-left: 0; }
}

@media (max-width: 640px) {
  .lg-inner { padding: 0 20px; }
  .lg-hero { padding: 44px 0 36px; }
  .lg-body { padding: 36px 0 64px; }
  .lg-doc { padding: 26px 22px 30px; border-radius: 16px; }
  .lg-toc ol { columns: 1; }
  .lg-endcap { padding: 22px; }
  .lg-endcap-actions { width: 100%; }
  .lg-btn { flex: 1; justify-content: center; }
}
