/* Legal information stays readable without JavaScript or a signed-in session. */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 28px; margin-top: 56px; padding: 12px 0 0;
  color: var(--ui-muted); font-size: 13px; line-height: 1.5;
}
.site-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.site-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.site-footer-brand img { width: 120px; height: auto; object-fit: contain; flex: none; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ui-muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--stg-sand-500); text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible, .legal-copy a:focus-visible, .legal-toc a:focus-visible, .legal-skip:focus-visible {
  outline: 2px solid var(--stg-sand-500); outline-offset: 4px; border-radius: 2px;
}
.login .site-footer { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px) 24px; }
.legal-page .wrap { width: 100%; }
.legal-page .hero { margin-bottom: 30px; }
.legal-page .lede { max-width: 760px; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.legal-toc { align-self: start; position: sticky; top: 110px; display: grid; gap: 2px; }
.legal-toc a { display: flex; align-items: center; min-height: 44px; color: var(--ui-muted); }
.legal-toc a:hover { color: var(--stg-sand-500); }
.legal-copy { max-width: 760px; min-width: 0; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.legal-copy section { margin-bottom: 42px; scroll-margin-top: 140px; }
.legal-copy h2 { font-size: 26px; line-height: 1.2; color: var(--ui-white); margin: 0 0 16px; }
.legal-copy h3 { font-size: 19px; line-height: 1.3; color: var(--stg-sand-500); margin: 24px 0 10px; }
.legal-copy p { margin: 0 0 16px; }
.legal-copy ul { padding-left: 22px; margin: 0 0 16px; }
.legal-copy li { margin-bottom: 10px; }
.legal-copy a, .registration-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.legal-copy dl { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 12px 24px; }
.legal-copy dt { color: var(--ui-muted); }
.legal-copy dd { margin: 0; }
.legal-copy code { white-space: normal; font-size: .86em; }
.legal-date { color: var(--ui-muted); font-size: 14px; margin: 20px 0 0; }
.legal-skip { position: fixed; top: 12px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--stg-ink-900); transform: translateY(-200%); }
.legal-skip:focus { transform: none; }
.registration-privacy { margin: 0; font-size: 13px; color: var(--ui-muted); }
html[data-view="reference"] main.doc > .site-footer { margin-top: 56px; }
@media (max-width: 720px) {
  .site-footer { display: block; }
  .site-footer nav { margin-top: 10px; gap: 0 18px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; }
  .legal-copy { font-size: 16px; }
  .legal-copy section { scroll-margin-top: 190px; }
  .legal-copy dl { grid-template-columns: 1fr; gap: 4px; }
  .legal-copy dd { margin-bottom: 12px; }
}
@media print {
  .legal-page { background: white !important; color: black !important; }
  .legal-page :is(.topbar,.ambient,.legal-toc,.site-footer,.legal-skip) { display: none !important; }
  .legal-page .legal-layout { display: block; }
  .legal-page :is(h1,h2,h3,p,a,dt,dd) { color: black !important; }
  .legal-copy { max-width: none; font-size: 11pt; }
  .legal-copy section { break-inside: avoid; }
}
