/* ============================================================
   PrimeHR — Legal pages shared stylesheet
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.lgl-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--brand-900) 60%, #0e1a3a 100%);
  color: #fff;
  text-align: center;
}
.lgl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% -10%, rgba(79,70,229,.45), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 110%, rgba(16,185,129,.30), transparent 55%);
  pointer-events: none;
}
.lgl-hero-inner { position: relative; z-index: 1; }
.lgl-hero .eyebrow { color: var(--accent-400); }
.lgl-hero .eyebrow::before { background: var(--accent-400); }
.lgl-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: #fff; margin: 14px 0 16px;
}
.lgl-hero p { font-size: 17px; color: var(--ink-300); max-width: 560px; margin: 0 auto; }
.lgl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 7px 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.85); font-family: var(--f-mono);
  letter-spacing: .04em;
}
.lgl-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
  animation: blink 2s ease-in-out infinite;
}

/* ── Page layout ─────────────────────────────────────────── */
.lgl-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 96px;
  align-items: start;
}
@media (max-width: 900px) {
  .lgl-wrap { grid-template-columns: 1fr; padding: 0 20px 64px; }
}

/* ── Sidebar TOC ─────────────────────────────────────────── */
.lgl-toc {
  position: sticky;
  top: 80px;
  padding: 32px 0 32px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.lgl-toc-inner {
  background: var(--ink-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 0;
  overflow: hidden;
}
.lgl-toc-head {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-500);
  padding: 0 20px 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.lgl-toc-list { list-style: none; margin: 0; padding: 4px 8px; }
.lgl-toc-list li { margin: 0; }
.lgl-toc-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all .18s;
  border-left: 2px solid transparent;
}
.lgl-toc-list a .toc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--ink-200); color: var(--ink-600);
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  transition: all .18s;
}
.lgl-toc-list a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
  border-left-color: var(--brand-300);
  padding-left: 16px;
}
.lgl-toc-list a:hover .toc-num {
  background: var(--brand-100); color: var(--brand-700);
}
.lgl-toc-list a.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
  border-left-color: var(--brand-600);
  font-weight: 700;
  padding-left: 16px;
}
.lgl-toc-list a.is-active .toc-num {
  background: var(--brand-600); color: #fff;
}
@media (max-width: 900px) {
  .lgl-toc { position: static; max-height: none; padding: 32px 0 0; }
  .lgl-toc-list a { padding: 7px 10px; }
  .lgl-toc-list a:hover,
  .lgl-toc-list a.is-active { padding-left: 14px; }
}

/* ── Content area ────────────────────────────────────────── */
.lgl-content {
  padding: 48px 0 0 48px;
  min-width: 0;
}
@media (max-width: 900px) { .lgl-content { padding: 32px 0 0; } }

/* Intro highlight */
.lgl-intro {
  background: linear-gradient(135deg, rgba(79,70,229,.07), rgba(16,185,129,.05));
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 14px; color: var(--ink-700); line-height: 1.75;
  position: relative; overflow: hidden;
}
.lgl-intro::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
  border-radius: 4px 0 0 4px;
}

/* Sections */
.lgl-sec { margin-bottom: 60px; scroll-margin-top: 90px; }
.lgl-sec h2 {
  font-size: 21px; color: var(--ink-900);
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.lgl-sec h2 .snum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(79,70,229,.4);
}
.lgl-sec h3 { font-size: 15px; margin: 22px 0 8px; color: var(--ink-800); }
.lgl-sec p { font-size: 15px; color: var(--ink-700); line-height: 1.8; margin-bottom: 14px; }
.lgl-sec ul, .lgl-sec ol { padding-left: 0; margin: 0 0 16px; list-style: none; }
.lgl-sec li {
  font-size: 14px; color: var(--ink-700); line-height: 1.75;
  padding: 5px 0 5px 28px; position: relative;
}
.lgl-sec li::before {
  content: '';
  position: absolute; left: 8px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400);
}
.lgl-sec ol { counter-reset: ol-c; }
.lgl-sec ol li::before {
  content: counter(ol-c);
  counter-increment: ol-c;
  background: none; border-radius: 0;
  width: auto; height: auto;
  top: 5px; left: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--brand-600);
}

/* Callout boxes */
.lgl-callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px; line-height: 1.75;
}
.lgl-callout--info {
  background: rgba(79,70,229,.07);
  border-left: 3px solid var(--brand-500);
}
.lgl-callout--warn {
  background: rgba(244,63,94,.06);
  border-left: 3px solid var(--rose-500);
  color: var(--ink-700);
}
.lgl-callout--success {
  background: rgba(16,185,129,.08);
  border-left: 3px solid var(--accent-500);
}

/* Data table */
.lgl-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; border-radius: 10px; overflow: hidden; }
.lgl-table th {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff; font-weight: 700; padding: 11px 14px; text-align: left;
}
.lgl-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-700); vertical-align: top; }
.lgl-table tr:last-child td { border-bottom: none; }
.lgl-table tr:nth-child(even) td { background: var(--ink-50); }
.lgl-table tr:hover td { background: var(--brand-50); }

/* Compliance badges */
.lgl-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 12px; margin: 20px 0; }
.lgl-badge-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all .18s;
}
.lgl-badge-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.lgl-badge-card .bdc {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-500); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}
.lgl-badge-card h4 { font-size: 13px; margin: 0 0 2px; }
.lgl-badge-card p { font-size: 11px; color: var(--ink-500); margin: 0; line-height: 1.4; }

/* Pillar grid */
.lgl-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0 40px; }
@media (max-width: 700px) { .lgl-pillars { grid-template-columns: 1fr; } }
.lgl-pillar {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.lgl-pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.lgl-pillar-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 14px;
}
.lgl-pillar h3 { font-size: 14px; margin: 0 0 6px; }
.lgl-pillar p { font-size: 13px; color: var(--ink-600); line-height: 1.6; margin: 0; }

/* Incident timeline */
.lgl-timeline { position: relative; padding-left: 24px; margin: 16px 0; }
.lgl-timeline::before {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--brand-400), var(--accent-400));
  border-radius: 2px;
}
.lgl-step { position: relative; margin-bottom: 22px; }
.lgl-step::before {
  content: ''; position: absolute; left: -19px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-600); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-200);
}
.lgl-step h4 { font-size: 14px; font-weight: 700; color: var(--ink-800); margin: 0 0 4px; }
.lgl-step p { font-size: 13px; color: var(--ink-600); margin: 0; line-height: 1.6; }

/* CTA box */
.lgl-cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900) 60%, var(--ink-900));
  border-radius: var(--radius-xl); padding: 44px 48px;
  color: #fff; margin-top: 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 700px) { .lgl-cta { grid-template-columns: 1fr; padding: 32px; } }
.lgl-cta::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.lgl-cta h3 { font-size: 22px; color: #fff; margin: 0 0 10px; }
.lgl-cta p { color: var(--ink-300); font-size: 15px; margin: 0; line-height: 1.65; }
.lgl-cta .btn-grp { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.lgl-cta a.btn-w { background: #fff; color: var(--brand-700); font-weight: 700; border-radius: var(--radius); padding: 11px 20px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: all .18s; }
.lgl-cta a.btn-w:hover { background: var(--brand-50); }
.lgl-cta a.btn-g { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); font-weight: 600; border-radius: var(--radius); padding: 11px 20px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: all .18s; }
.lgl-cta a.btn-g:hover { background: rgba(255,255,255,.18); }

/* Security report card */
.lgl-report {
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  border-radius: var(--radius-lg); padding: 36px 40px;
  color: #fff; margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 700px) { .lgl-report { grid-template-columns: 1fr; padding: 28px; } }
.lgl-report h3 { color: #fff; font-size: 20px; margin: 0 0 10px; }
.lgl-report p { color: var(--ink-300); font-size: 14px; margin: 0 0 18px; line-height: 1.65; }
.lgl-report a.btn-acc { background: var(--accent-500); color: #042f2e; font-weight: 700; border-radius: var(--radius); padding: 11px 20px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.lgl-report a.btn-acc:hover { background: var(--accent-400); }
.rp-meta { display: flex; flex-direction: column; gap: 14px; }
.rp-item .rl { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 3px; }
.rp-item .rv { font-size: 13px; color: var(--ink-200); }
.rp-item .rv a { color: var(--accent-400); text-decoration: none; }
