/* Shared DocMate title and section navigation. */
.legal-page--docmate { --docmate-sticky-top:104px; --docmate-scroll-offset:120px; }
.legal-page--docmate .legal-hero__inner { width:min(1440px,calc(100% - 64px)); min-height:120px; padding:22px 0; justify-content:flex-start; gap:24px; }
.legal-page--docmate .legal-hero__copy { max-width:none; }
.legal-page--docmate .legal-hero h1 { font-size:clamp(1.65rem,3.1vw,2.8rem); line-height:1.18; text-wrap:initial; }
.legal-page--docmate .legal-title-icon { display:grid; place-items:center; flex:0 0 72px; width:72px; height:76px; border:1px solid var(--aditi-brand-orange-border); border-radius:16px; background:var(--aditi-brand-orange-soft-4); color:var(--aditi-brand-orange); }
.legal-title-icon img { width:48px; height:52px; }
.legal-page--docmate .legal-hero__dots { left:auto; right:32px; top:50%; bottom:auto; transform:translateY(-50%); width:150px; height:80px; opacity:.7; }
.legal-page--docmate .legal-hero__glow { top:-220px; }
.legal-page--docmate .legal-shell { width:min(1440px,calc(100% - 64px)); grid-template-columns:280px minmax(0,1fr); gap:32px; padding-top:28px; }
.legal-page--docmate aside.legal-toc { display:block; position:sticky; top:var(--docmate-sticky-top); align-self:start; padding:12px; max-height:none; overflow:hidden; z-index:10; }
.legal-page--docmate .legal-toc__links { max-height:calc(100dvh - var(--docmate-sticky-top) - 28px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--aditi-text-placeholder) transparent; padding:10px 4px; }
.legal-page--docmate .legal-toc__eyebrow { margin-bottom:10px; }
.legal-page--docmate .legal-toc h2 { padding:0; margin-bottom:10px; }
.legal-page--docmate .legal-toc a { position:relative; padding:10px 12px; border-radius:7px; transition:background-color .15s,color .15s; }
.legal-page--docmate .legal-toc a[aria-current="location"] { background:var(--aditi-surface-legal-blue); color:var(--aditi-text-heading); }
.legal-page--docmate .legal-toc a[aria-current="location"]::after { content:""; position:absolute; inset:0 auto 0 0; width:4px; border-radius:4px 0 0 4px; background:var(--aditi-brand-orange); }
.legal-page--docmate .legal-toc .legal-toc__overview { display:block; font-size:1.0625rem; }
.legal-page--docmate .legal-toc__overview::before { content:none; }
.legal-page--docmate :is(.legal-section,.legal-intro) { scroll-margin-top:var(--docmate-scroll-offset); }
.legal-page--docmate .legal-section:target { background:transparent; }
.legal-page--docmate .legal-toc-toggle { display:none; }
@media(max-width:1100px) {
 .legal-page--docmate .legal-hero__dots { width:80px; opacity:.4; }
 .legal-page--docmate .legal-hero__copy { position:relative; z-index:1; }
}
@media(max-width:960px) {
 .legal-page--docmate .legal-shell { grid-template-columns:1fr; gap:20px; }
 .legal-page--docmate aside.legal-toc { padding:8px 12px; }
 .legal-page--docmate .legal-toc ol { grid-template-columns:1fr; }
 .legal-page--docmate .legal-toc__links { max-height:min(32dvh,260px); }
 .legal-page--docmate .legal-toc--enhanced .legal-toc-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; padding:8px; border:0; background:transparent; color:var(--aditi-text-heading); font:inherit; font-weight:700; text-align:left; cursor:pointer; }
 .legal-page--docmate .legal-toc-toggle::after { content:"+"; color:var(--aditi-brand-orange); font-size:1.5rem; }
 .legal-page--docmate .legal-toc-toggle[aria-expanded="true"]::after { content:"−"; }
 .legal-page--docmate .legal-toc--enhanced:not(.is-open) .legal-toc__links { display:none; }
 .legal-page--docmate .legal-toc--enhanced .legal-toc__eyebrow { display:none; }
}
@media(max-width:600px) {
 .legal-page--docmate .legal-hero__inner { width:calc(100% - 32px); min-height:104px; padding:20px 0; gap:14px; }
 .legal-page--docmate .legal-title-icon { flex-basis:48px; width:48px; height:56px; border-radius:12px; }
 .legal-title-icon img { width:34px; height:40px; }
 .legal-page--docmate .legal-hero h1 { font-size:clamp(1.5rem,5.5vw,2rem); }
 .legal-page--docmate .legal-hero__dots { right:12px; width:60px; height:60px; opacity:.22; }
 .legal-page--docmate .legal-shell { width:calc(100% - 32px); padding-top:20px; }
}
@media(prefers-reduced-motion:reduce) { .legal-page--docmate .legal-toc a { transition:none; } }
@media print {
 .legal-page--docmate aside.legal-toc,.legal-page--docmate .legal-title-icon { display:none; }
 .legal-page--docmate .legal-shell { display:block; width:100%; }
}

/* Equal outer spacing on both DocMate legal pages. */
@media screen {
 .legal-page--docmate .legal-shell {
  width:calc(100% - 20px); max-width:none; gap:10px; padding:10px 0;
 }
}
@media screen and (max-width:600px) {
 .legal-page--docmate .legal-shell {
  width:calc(100% - 10px); gap:5px; padding:5px 0;
 }
}
