/* Terms of Use and Privacy Policy: a document with a sticky "On this page" rail on desktop.
   lg__*  = page chrome (template)   lg-*  = nodes the renderer builds from the document blocks. */

.lg { padding: var(--s-12) 0 var(--s-20); }
.lg__head { max-width: 760px; }
.lg__title { margin-top: var(--s-4); }
.lg__subtitle { margin-top: var(--s-3); max-width: 60ch; font-size: var(--fs-17); line-height: 1.55; color: var(--muted); }
.lg__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-10); margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.lg__meta div { display: grid; gap: 2px; }
.lg__meta dt { font-size: var(--fs-12); font-weight: 500; color: var(--muted-2); }
.lg__meta dd { margin: 0; font-size: var(--fs-14); font-weight: 600; color: var(--navy); }

.lg__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-16); align-items: start; margin-top: var(--s-10); }
.lg__toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; scrollbar-width: thin; }
.lg__toc summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: var(--fs-13); font-weight: 700; color: var(--muted-2); }
.lg__toc summary::-webkit-details-marker { display: none; }
.lg__toc-list { list-style: none; display: grid; gap: 2px; margin-top: var(--s-3); border-left: 1px solid var(--line); }
.lg__toc-list a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: var(--fs-14); line-height: 1.35; }
.lg__toc-list a:hover { color: var(--navy); text-decoration: none; }
.lg__toc-list a[aria-current="true"] { color: var(--navy); font-weight: 600; border-left-color: var(--middle-blue); }

.lg__doc { max-width: 72ch; font-size: var(--fs-16); line-height: 1.7; color: var(--navy-text); }
.lg-h2 { margin-top: var(--s-12); font-size: var(--fs-24); scroll-margin-top: calc(var(--nav-h) + 24px); }
.lg-h2:first-child { margin-top: 0; }
.lg-h3 { margin-top: var(--s-8); font-size: var(--fs-17); scroll-margin-top: calc(var(--nav-h) + 24px); }
.lg-p { margin-top: var(--s-4); }
.lg-list { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding-left: 1.4em; }
.lg-ol { list-style: none; padding-left: 0; } /* the numbers are part of the text; never generated */
.lg-ul { list-style: disc; }
.lg-link { text-decoration: underline; text-underline-offset: 3px; }
.lg-callout { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-md); background: var(--info-soft); border-left: 4px solid var(--middle-blue); }
.lg-callout + .lg-h2 { margin-top: var(--s-12); }
.lg-callout-head { font-weight: 700; color: var(--navy); }
.lg-callout-body > :first-child { margin-top: var(--s-2); }
.lg-table-wrap { margin-top: var(--s-5); overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.lg-table-wrap:focus-visible { outline-offset: 0; }
.lg-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-14); line-height: 1.5; }
.lg-table th { padding: 12px var(--s-4); text-align: left; background: var(--field); font-weight: 600; color: var(--navy); }
.lg-table td { padding: 12px var(--s-4); border-top: 1px solid var(--line-soft); vertical-align: top; }

.lg__state { max-width: 720px; margin-top: var(--s-10); }
.lg__foot { margin-top: var(--s-12); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--muted); }

@media (max-width: 1000px) {
  .lg { padding: var(--s-8) 0 var(--s-12); }
  .lg__grid { grid-template-columns: 1fr; gap: var(--s-8); margin-top: var(--s-8); }
  .lg__toc { position: static; max-height: none; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .lg__toc summary { color: var(--navy); font-size: var(--fs-14); }
  .lg__toc summary::after { content: "+"; margin-left: auto; font-size: var(--fs-17); font-weight: 500; color: var(--muted); }
  .lg__toc[open] summary::after { content: "\2013"; }
  .lg-h2 { margin-top: var(--s-10); }
}
