/* About page: bigger, darker reading type; contents list that follows you on desktop and shows where you are. */

/* sticky needs the page wrapper not to be a scroll container (overflow-x:hidden makes it one) */
#page-contact.page{overflow-x:clip;overflow-y:visible}

/* Header */
html #page-contact .lg-about-hero h1{font-size:clamp(36px,5vw,56px);letter-spacing:-.03em;margin:16px 0 14px}
html #page-contact .lg-about-hero .lg-intro{font-size:clamp(18px,1.6vw,20px);line-height:1.55;color:#2f343e;max-width:60ch}
html #page-contact .lg-about-hero .lg-upd{margin-top:16px;font:500 14px/1.4 "Inter",system-ui,sans-serif;color:#454b57}
html #page-contact .lg-about-hero .lg-crumb{font-size:14px}

/* Two columns: contents rail + text */
html #page-contact .lg-about .lg-grid{grid-template-columns:230px minmax(0,1fr);gap:64px}

/* Contents: a plain list with a rail, no card; the current section is marked on the rail */
html #page-contact .lg-about .lg-toc{top:calc(var(--qb-navh,64px) + 28px);padding:0;border:0;border-radius:0;background:none;gap:0}
html #page-contact .lg-about .lg-toc b{font:600 14px/1.3 "Inter",system-ui,sans-serif;color:#1f232b;margin:0 0 12px}
html #page-contact .lg-about .lg-toc a{position:relative;font-size:15px;line-height:1.4;color:#3f4551;padding:8px 0 8px 16px;border-radius:0;border-left:2px solid var(--line)}
html #page-contact .lg-about .lg-toc a:hover{background:none;color:var(--txt);border-left-color:#b9c0cc}
html #page-contact .lg-about .lg-toc a[aria-current="true"]{color:var(--brand-d,#0044cc);font-weight:600;border-left-color:var(--brand)}
html #page-contact .lg-about .lg-toc a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* Reading text */
html #page-contact .lg-about .lg-body{max-width:68ch;font-size:17.5px;line-height:1.72;color:#2f343e}
html #page-contact .lg-about .lg-body h2{font-size:28px!important;line-height:1.2;margin:56px 0 14px;scroll-margin-top:calc(var(--qb-navh,64px) + 24px)}
html #page-contact .lg-about .lg-body h2:first-child{margin-top:0}
html #page-contact .lg-about .lg-body p{margin:0 0 16px}
html #page-contact .lg-about .lg-body ul{padding-left:22px;margin:0 0 18px}
html #page-contact .lg-about .lg-body li{margin:10px 0;padding-left:4px}
html #page-contact .lg-about .lg-body li::marker{color:var(--brand)}

/* Tablet and phone: contents become a compact box at the top (not fixed, so it never covers the text) */
@media (max-width:900px){
  html #page-contact .lg-about .lg-grid{grid-template-columns:1fr;gap:28px}
  html #page-contact .lg-about .lg-toc{position:static;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}
  html #page-contact .lg-about .lg-toc a{border-left:0;padding:9px 0;border-top:1px solid #eef0f4}
  html #page-contact .lg-about .lg-toc b+a{border-top:0}
  html #page-contact .lg-about .lg-body{font-size:17px}
  html #page-contact .lg-about .lg-body h2{font-size:24px!important;margin-top:44px}
}
/* long contents lists (legal pages) scroll inside the rail instead of running off the screen */
@media (min-width:901px){html #page-contact .lg-about .lg-toc{max-height:calc(100vh - var(--qb-navh,64px) - 56px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
@media (max-width:900px){
  html #page-contact .lg-about .lg-grid{grid-template-columns:minmax(0,1fr)}
  html #page-contact .lg-about .lg-toc,html #page-contact .lg-about .lg-body{min-width:0;max-width:100%}
  html #page-contact .lg-about .lg-toc a{white-space:normal;overflow-wrap:anywhere}
  html #page-contact .lg-about .lg-body{overflow-wrap:break-word}
}
