/* The Agentic Lab® — site-pages.css (2026-10-11, A, Opus worker, Part14): the desktop twins of the inner pages.
   Loaded after site.css. Every rule here lives at 1024px and up, except the contents list's hide on smaller screens:
   the phone (under 760px) and the tablet do not change by one pixel. */

/* the contents list never shows under 1024px */
.legal-doc .toc { display: none; }

@media (min-width: 1024px) {

  /* THE CLIENT AREA, signed out: the bar sits in the sign-in card's flow (clients.js moves it in), no float, no shadow,
     the buttons right-aligned at 44px; the footer loses the room it kept for the floating bar */
  #clLogin > #cbNav { position: static; left: auto; right: auto; bottom: auto; width: auto; z-index: auto; margin-top: 24px; transform: none; transition: none;
    border-radius: 0; overflow: visible; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #clLogin > #cbNav .bb-track, #clLogin > #cbNav .bb-line { display: none; }
  #clLogin > #cbNav .bb-in { display: flex; justify-content: flex-end; padding: 0; max-width: none; }
  #clLogin > #cbNav .bb-btns { display: flex; gap: 12px; }
  #clLogin > #cbNav .btn { height: 44px; min-height: 44px; padding-block: 0; min-width: 160px; font-size: 16px; }
  #clLogin > #cbNav .btn[hidden] { display: none; }
  html.has-bar .page:has(#clLogin > #cbNav) .ft, .page:has(#clLogin > #cbNav) .ft { padding-bottom: 24px; }
  /* THE RULE OF SYMMETRY: the signed-out page keeps its floor (460px, the footer never jumps between the email and the code)
     and centers its content in it, so the air above equals the air below */
  #clients:has(#clLogin:not([hidden])) > .wrap { display: flex; flex-direction: column; justify-content: center; }

  /* BUILD YOUR BRIEF: the step card holds the rail's height (408px), so the footer stays put from step to step;
     the WhatsApp line sits on the page axis, under both columns */
  #inquiry #bbCard { min-height: 408px; }
  #inquiry .alt { grid-column: 1 / -1; }

  /* LEGAL: the document at 760px with its contents beside it (248 | 48 | 760 = the 1120 container's 1056);
     the Arabic document is RTL, so its grid mirrors itself and the contents sit on the right */
  .legal .wrap.legal-grid { max-width: 1120px; }
  .legal-grid .lang { margin-inline-start: auto; }
  .legal-grid .legal-doc:not([hidden]) { display: grid; grid-template-columns: minmax(200px, 248px) minmax(0, 760px); column-gap: 48px; align-items: start; }
  .legal-grid .legal-doc p, .legal-grid .legal-doc li { font-size: 17px; }
  .legal-doc .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto;
    padding: 0 0 8px; border-inline-end: 1px solid var(--hair); }
  .toc-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
  .legal-doc[lang="ar"] .toc-h { letter-spacing: 0; }
  .legal-doc .toc ol { list-style: none; margin: 0; padding: 0; }
  .legal-doc .toc li { margin: 0; font-size: 15px; line-height: 1.4; }
  .legal-doc .toc a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; padding-inline-end: 16px; color: var(--ink-2); text-decoration: none; }
  .legal-doc .toc a:hover { color: var(--blue); }
  .legal-doc .toc a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-control); }
}
