/* Legal text and section navigation use the same content width as the site header. */
.legal-page h1{max-width:none;overflow-wrap:anywhere}
.legal-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:48px;align-items:start;margin-top:36px}
.legal-layout .legal{grid-column:1;grid-row:1;max-width:none;min-width:0;margin-top:0;overflow-wrap:anywhere}
.legal-layout .legal>p:first-child{margin-top:0}
.legal-sidebar{grid-column:2;grid-row:1;position:sticky;top:calc(var(--site-header-height) + 24px);min-width:0;max-height:calc(100dvh - var(--site-header-height) - 48px);overflow-y:auto;padding:22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--mist)}
.legal-toc-title,.legal-mobile-toc summary{font-weight:600;font-size:16px}
.legal-sidebar ul{list-style:none;padding:0;margin:16px 0 0}
.legal-sidebar li+li{margin-top:6px}
.legal-sidebar a{display:block;padding-block:5px;font-size:14px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.legal-sidebar a:hover{color:var(--red-dark);text-decoration:underline}
.legal-mobile-toc{display:none}
.legal-layout .legal-table{table-layout:fixed}
.legal-layout .legal-table td,.legal-layout .legal-table th{overflow-wrap:anywhere}
@media (max-width:1000px){
 .legal-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 .legal-sidebar{grid-column:1;grid-row:1;position:static;max-height:none;padding:18px}
 .legal-layout .legal{grid-row:2}
 .legal-desktop-toc{display:none}
 .legal-mobile-toc{display:block}
 .legal-mobile-toc summary{cursor:pointer}
 .legal-mobile-toc a{padding-block:8px}
}
@media (max-width:760px){
 .legal-layout .legal-table,.legal-layout .legal-table tbody{display:block;width:100%}
 .legal-layout .legal-table{overflow:visible;border-collapse:separate}
 .legal-layout .legal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .legal-layout .legal-table tr{display:block;margin-top:16px;border:1px solid var(--border);border-radius:10px;overflow:hidden}
 .legal-layout .legal-table td{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);gap:14px;border:0;padding:12px}
 .legal-layout .legal-table td+td{border-top:1px solid var(--border)}
 .legal-layout .legal-table td::before{content:attr(data-label);font-weight:600}
}
