/* Legal centre (2026-11-07) on the Field Atlas system. */
.lg { padding-block: clamp(32px, 6vw, 64px); }
.lg-head { max-width: 780px; margin-bottom: 28px; }
.lg-head h1 { font-size: var(--fa-step-3); }
.lg-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.lg-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 84px; }
.lg-index a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--fa-radius-sm); text-decoration: none; color: var(--fa-text); border: 1px solid transparent; }
.lg-index a:hover { background: var(--fa-mist); }
.lg-index a[aria-current="page"] { background: var(--fa-surface); border-color: var(--fa-line); box-shadow: inset 3px 0 0 var(--fa-forest); }
[dir="rtl"] .lg-index a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--fa-forest); }
.lg-title { font-weight: 600; }
.lg-doc { padding: clamp(20px, 3vw, 36px); }
.lg-doc h2 { font-size: var(--fa-step-2); margin-top: 10px; }
.lg-doc h3 { margin-top: 1.4em; }
.lg-doc p { max-width: 72ch; }
.lg-draft { padding: 12px 14px; border-radius: var(--fa-radius-sm); background: var(--fa-warn-bg); color: var(--fa-warn); font-weight: 550; }
.lg-doc__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--fa-line); }
.lg-hash { word-break: break-all; }
.lg-linkbtn { background: none; border: 0; padding: 0; color: #E9EFEC; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 860px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-index ul { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media print {
  .fa-header, .fa-drawer, .fa-scrim, .lg-index, .fa-footer, .lg-doc__foot button, #privacy-preferences, #privacy-manage { display: none !important; }
  body.fa { background: #fff; }
  .lg-layout { display: block; }
  .lg-doc { border: 0; padding: 0; }
  @page { size: A4; margin: 18mm; }
}

/* agreement step (static/legal-gate.js) — loaded by signed-in pages */
.lgate { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 16px; background: rgba(15, 26, 23, .55); }
.lgate__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #182A31; border-radius: 12px; padding: 22px;
  box-shadow: 0 24px 60px rgba(18, 61, 50, .25); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lgate__box h2 { font: 650 1.2rem/1.3 Inter, system-ui, sans-serif; margin: 0 0 8px; color: #123D32; }
.lgate__list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.lgate__list label { display: flex; gap: 10px; align-items: flex-start; }
.lgate__list input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #123D32; margin-top: 2px; }
.lgate__list a { color: #123D32; }
.lgate__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.lgate__actions button { min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid #C3C6B8; background: #F7F6F0; color: #182A31; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.lgate__actions [data-lgate-accept] { background: #123D32; border-color: #123D32; color: #fff; }
.lgate__actions [data-lgate-accept][disabled] { opacity: .5; cursor: not-allowed; }
.lgate__msg { min-height: 1.2em; color: #8A5A00; }
