/* =========================================================
   HADRONPLAY — Legal & Policies Center styles
   Loaded after ../assets/css/styles.css (uses its colour tokens).
   ========================================================= */
.lg-skip { position: absolute; left: -9999px; top: 0; }
.lg-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 16px; border: 2px solid var(--blue); border-radius: 10px; }

/* Header */
.lg-header { position: sticky; top: 0; z-index: 50; background: var(--nav); border-bottom: 1px solid var(--border); }
.lg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.lg-logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font: 800 20px/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.lg-logo img { width: 34px; height: 34px; }
.lg-logo b { color: var(--blue); font-weight: 800; }
.lg-logo small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.lg-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lg-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); transition: color .2s, background .2s; }
.lg-nav a:hover { color: var(--blue); background: rgba(23,105,255,.06); }
.lg-nav a[aria-current="page"] { color: var(--blue); }

/* Hero */
.lg-hero { background: var(--section); border-bottom: 1px solid var(--border); padding: clamp(28px, 5vw, 56px) 0; position: relative; overflow: hidden; }
.lg-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(121,87,255,.16), rgba(23,105,255,0) 70%); pointer-events: none; }
.lg-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.lg-crumbs a { color: var(--blue); font-weight: 600; }
.lg-crumbs a:hover { text-decoration: underline; }
.lg-hero h1 { font-size: clamp(28px, 5vw, 44px); }
.lg-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-hero p.lg-sub { color: var(--muted); max-width: 64ch; margin: 12px 0 0; font-size: 17px; }
.lg-dates { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.lg-dates strong { color: var(--ink); font-weight: 600; }

/* Draft banner */
.lg-draft { background: #FFF8E6; border: 1px solid #F3D58A; color: #5A4300; border-radius: 12px; padding: 12px 16px; margin: 20px 0 0; font-size: 14px; max-width: 900px; }

/* Layout */
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.lg-toc { position: sticky; top: 92px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 8px; }
.lg-toc summary { list-style: none; cursor: pointer; font: 700 14px/1 var(--font-head); padding: 14px 12px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: "▾"; color: var(--muted); }
.lg-toc[open] summary::after { content: "▴"; }
.lg-toc ul { list-style: none; margin: 0; padding: 0 0 6px; }
.lg-toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.lg-toc a:hover { color: var(--blue); background: rgba(23,105,255,.06); }
.lg-toc a[aria-current="page"] { color: var(--blue); background: rgba(23,105,255,.08); font-weight: 600; }

/* Document */
.lg-doc { max-width: 780px; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.lg-doc h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 90px; }
.lg-doc h2:first-child { margin-top: 0; }
.lg-doc h3 { font-size: 18px; margin: 26px 0 8px; }
.lg-doc p, .lg-doc ul, .lg-doc ol { margin: 0 0 14px; }
.lg-doc ul, .lg-doc ol { padding-left: 22px; }
.lg-doc li { margin: 4px 0; }
.lg-doc a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.lg-doc a:hover { color: var(--purple); }
.lg-doc .lg-summary { background: var(--section); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; margin-bottom: 28px; }
.lg-doc .lg-summary h2 { margin: 0 0 8px; font-size: 18px; padding: 0; }
.lg-doc .lg-summary ul { margin: 0; }
.lg-doc .lg-pagetoc { border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; margin-bottom: 28px; font-size: 15px; }
.lg-doc .lg-pagetoc strong { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.lg-doc .lg-pagetoc ol { margin: 0; columns: 2 220px; column-gap: 28px; }

/* Tables scroll inside their own box so the page never scrolls sideways */
.lg-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; margin: 0 0 18px; }
.lg-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lg-table th { background: var(--section); font-weight: 600; }
.lg-table tr:last-child td { border-bottom: 0; }

/* Placeholders and review flags */
.ph { background: #FFF1C2; color: #5A4300; border: 1px dashed #D9A400; border-radius: 6px; padding: 0 5px; font-weight: 600; font-size: .95em; white-space: normal; }
.review { background: #F4F0FF; border: 1px solid #D5CAFF; border-left: 4px solid var(--purple); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14.5px; color: #3A2A85; }
.review strong { color: var(--purple); }
.note { background: #EEF4FF; border: 1px solid #C9DBFF; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 15px; }

/* Landing page cards */
.lg-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lg-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; color: var(--ink); text-decoration: none !important; }
.lg-card:hover, .lg-card:focus-visible { border-color: rgba(23,105,255,.5); box-shadow: var(--glow); transform: translateY(-2px); }
.lg-card .lg-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(23,105,255,.12), rgba(121,87,255,.14)); color: var(--blue); }
.lg-card .lg-ico svg { width: 22px; height: 22px; }
.lg-card h2, .lg-card h3 { font-size: 18px; margin: 0; }
.lg-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.lg-card .lg-go { color: var(--blue); font-weight: 600; font-size: 14px; }
.lg-section-title { font-size: 22px; margin: 0 0 18px; }
.lg-wide { padding-top: 40px; padding-bottom: 64px; }

/* Footer */
.lg-footer { border-top: 1px solid var(--border); background: #fff; padding: 36px 0 28px; font-size: 14px; color: var(--muted); }
.lg-footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0 0 18px; padding: 0; }
.lg-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.lg-footer-links a:hover { color: var(--blue); }
.lg-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.lg-top { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .lg-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .lg-toc { position: static; }
}
@media (max-width: 520px) {
  .lg-header-inner { justify-content: center; }
  .lg-nav { justify-content: center; }
  .lg-nav a { padding: 0 10px; font-size: 14px; }
  .lg-doc { font-size: 16px; }
}
@media print {
  .lg-header, .lg-toc, .lg-footer, .lg-skip { display: none !important; }
  .lg-layout { display: block; padding: 0; }
  .lg-hero { background: none; border: 0; }
  .lg-doc a { color: inherit; }
}
