/* Legal reading layout; the existing site supplies fonts, colours and chrome. */
html:has(.agb-page){scroll-behavior:auto}
.agb-page .page-intro h1{max-width:1000px;font-size:clamp(32px,4.8vw,62px);overflow-wrap:anywhere;hyphens:auto}
.agb-page .intro-lead{max-width:760px}
.agb-version{margin-top:22px;font-size:14px;font-weight:600;color:#ededeb}
.agb-notice{margin-top:15px;max-width:74ch;font-size:15px;line-height:1.85;color:#bfbfbe}
.agb-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:64px;align-items:start}
.agb-toc-desktop{position:sticky;top:112px;max-height:calc(100vh - 144px);overflow-y:auto;overscroll-behavior:contain;padding:24px 22px;background:var(--soft);border:1px solid var(--line);border-radius:6px;scrollbar-gutter:stable}
.agb-toc-desktop .eyebrow{color:var(--ink);margin-bottom:16px}
.agb-page nav ol{margin:0;padding-left:24px;font-size:13px;line-height:1.65;color:var(--muted)}
.agb-page nav li{padding:5px 0 5px 2px}
.agb-page nav a{display:block;text-decoration:underline;text-decoration-color:#b8b8b5;text-underline-offset:3px;overflow-wrap:anywhere}
.agb-page nav a:hover{color:var(--ink);text-decoration-color:var(--red)}
.agb-reading{min-width:0;max-width:76ch}
.agb-section{padding-block:36px;border-bottom:1px solid var(--line)}
.agb-section:first-child{padding-top:0}
.agb-section h2{font-size:clamp(23px,2.1vw,29px);line-height:1.3;letter-spacing:-.035em;scroll-margin-top:12px;overflow-wrap:anywhere;hyphens:auto}
.agb-section p,.agb-section ul{font-size:16px;line-height:1.85;color:#454545}
.agb-section p{margin-top:18px}
.agb-section ul{margin-block:16px 0;padding-left:24px}
.agb-section li{padding-left:5px;margin-block:5px}
.agb-section li::marker{color:var(--red)}
.agb-document a{color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;overflow-wrap:anywhere}
.agb-document a:hover{text-decoration-color:var(--red)}
.agb-back-top{display:inline-flex;align-items:center;gap:14px;margin-top:32px;min-height:44px;font-size:14px;font-weight:600}
.agb-toc-mobile{display:none}
.agb-page :focus-visible{outline:3px solid var(--red);outline-offset:4px}
@media(max-width:1000px){.agb-layout{grid-template-columns:220px minmax(0,1fr);gap:36px}.agb-toc-desktop{padding:20px 18px}}
@media(max-width:800px){
  .agb-layout{grid-template-columns:minmax(0,1fr);gap:0}
  .agb-toc-desktop{display:none}
  .agb-toc-mobile{display:block;margin-bottom:34px;border:1px solid var(--line);border-radius:6px;background:var(--soft);padding:16px 20px}
  .agb-toc-mobile summary{font-family:var(--body);font-size:14px;font-weight:600;padding:0;min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
  .agb-toc-mobile summary span{font-size:12px;font-weight:400;color:var(--muted)}
  .agb-toc-mobile summary::after{content:'+';margin-left:auto;font-size:20px;font-weight:400;transform:none}
  .agb-toc-mobile[open] summary::after{content:'−'}
  .agb-toc-mobile nav{margin-top:16px;max-height:420px;overflow-y:auto;padding:4px 8px 4px 3px;scrollbar-gutter:stable}
  .agb-toc-mobile nav a{min-height:36px;padding-block:6px}
  .agb-reading{max-width:none}
}
@media(max-width:640px){
  .agb-page .page-intro h1{font-size:clamp(28px,7.9vw,40px);line-height:1.2}
  .agb-page .intro-lead,.agb-notice{font-size:15px;line-height:1.8}
  .agb-version{font-size:13px}
  .agb-section{padding-block:28px}
  .agb-section h2{font-size:23px}
  .agb-section p,.agb-section ul{font-size:15px;line-height:1.85}
  .agb-toc-mobile{padding-inline:16px}
}
@media print{
  .agb-toc-desktop,.agb-toc-mobile,.agb-back-top{display:none}
  .agb-layout{display:block}.agb-reading{max-width:none}
  .agb-section h2{break-after:avoid}.agb-section p,.agb-section li{orphans:3;widows:3}
  .agb-page .page-intro{padding-bottom:24px}.agb-page .section{padding-block:0}
}
