.legal-main { --legal-header-height:88px; color:#27221d; overflow:visible; }
/* Page underlay keeps the unchanged translucent header readable over beige. */
.legal-main::before { content:''; position:fixed; inset:0 0 auto; height:var(--legal-header-height); background:#0b1014; z-index:9999; pointer-events:none; }
.legal-main .legal-container { width:calc(100% - 96px); max-width:1240px; }
.legal-hero { position:relative; isolation:isolate; min-height:350px; padding:134px 0 35px; overflow:hidden; background:#0b100f; border-bottom:1px solid #b9863d80; }
.legal-hero::before { content:''; position:absolute; z-index:-2; inset:88px 0 0; background:url('../../img/legal/legal-hero.webp') center 70% / cover no-repeat; }
.legal-hero::after { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#0b100f 3%,#0b100ff0 30%,#0b100f60 62%,transparent); }
.legal-hero h1 { max-width:650px; font-size:44px; line-height:1.18; font-weight:800; color:#fffaf3; margin:0 0 16px; letter-spacing:-1.3px; }
.legal-hero p { max-width:540px; color:#f3eee6; font-size:16px; line-height:1.7; margin:0; }
.legal-hero__line { display:block; width:64px; height:3px; background:var(--color-accent); margin-top:22px; }
.legal-surface { padding:0 0 56px; background:linear-gradient(#f6ede2e6,#f6ede2e6),url('../../img/services/marble.jpg') center top / 900px 514px repeat; }


.legal-icon { width:30px; height:30px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.legal-draft { margin:0 0 24px; padding:10px 14px; border:1px solid #ba8b4340; border-radius:9px; background:#ead5b629; color:#735631; font-size:12px; line-height:1.65; }
.legal-layout { display:grid; grid-template-columns:minmax(240px,1fr) minmax(0,3fr); gap:32px; align-items:start; }
.legal-sidebar { min-width:0; position:sticky; top:calc(var(--legal-header-height) + 18px); }
.legal-toc { max-height:calc(100dvh - var(--legal-header-height) - 36px); overflow-y:auto; border:1px solid #e0cdb5; border-radius:14px; background:#fcf7f0ba; box-shadow:0 2px 9px #68471e12; padding:18px 10px 12px; }
.legal-toc summary { display:none; }
.legal-toc h2 { font-size:19px; color:#282019; margin:0 10px 13px; font-weight:800; line-height:1.4; }
.legal-toc ol { list-style:none; padding:0; margin:0; }
.legal-toc a { display:flex; gap:5px; align-items:baseline; border-radius:7px; min-height:42px; padding:10px 10px; font-size:12px; line-height:1.5; text-decoration:none; color:#34291e; }
.legal-toc a span { flex-shrink:0; }
.legal-toc a[aria-current='location'] { background:linear-gradient(110deg,#bd8c40,#d7aa5b); color:#fff; box-shadow:0 2px 5px #9a6a2820; }
.legal-toc a:hover { background-color:#e4ceb53b; }
.legal-document { min-width:0; padding:8px 26px; border-radius:15px; background:#fffcf65e; }
.legal-section { scroll-margin-top:8px; padding:23px 0; border-bottom:1px solid #b9935b33; outline:none; }
.legal-section:last-child { border-bottom:0; }
.legal-section:focus-visible { outline:2px solid #a47734; outline-offset:7px; border-radius:6px; }
.legal-section h2 { display:flex; align-items:center; gap:15px; color:#252019; margin:0 0 18px; font-size:21px; font-weight:800; line-height:1.4; }
.legal-section__icon { display:grid; place-items:center; width:45px; height:45px; flex-shrink:0; color:#966622; background:linear-gradient(135deg,#fbe8be90,#e8c78d45); border:1px solid #e3c68e55; border-radius:9px; }
.legal-section__icon .legal-icon { width:28px; height:28px; }
.legal-section__body { padding-left:60px; }
.legal-section p,.legal-section li { color:#41382e; font-size:14px; line-height:1.85; }
.legal-section p { margin:0 0 14px; }
.legal-section p:last-child { margin-bottom:0; }
.legal-section ul { padding-left:20px; margin:0 0 18px; }
.legal-section li { padding-left:3px; margin:0 0 5px; }
.legal-section li::marker { color:#a67835; }
.legal-section a { color:#855a20; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.legal-todo { color:#785020; background:#efcc885c; padding:1px 4px; border-radius:3px; box-decoration-break:clone; overflow-wrap:anywhere; }
.legal-section .legal-todo-note { color:#795622; padding:10px 12px; border-left:3px solid #c1944f; background:#f0d8ab30; font-size:12px; }
.legal-cta { position:relative; isolation:isolate; display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:24px; margin-top:38px; padding:30px 34px; min-height:154px; border-radius:16px; overflow:hidden; background:#30271c; color:#e5b45c; }
.legal-cta::before { content:''; z-index:-2; position:absolute; inset:0 0 0 35%; background:url('../../img/legal/legal-hero.webp') center 80% / cover no-repeat; }
.legal-cta::after { content:''; z-index:-1; position:absolute; inset:0; background:linear-gradient(90deg,#30271c,#30271ce6 42%,#30271c50); }
.legal-cta > .legal-icon { width:42px; height:42px; }
.legal-cta h2 { color:#fff8ed; font-size:23px; font-weight:750; line-height:1.4; margin:0 0 9px; max-width:570px; }
.legal-cta p { color:#f4eee5; font-size:14px; line-height:1.7; margin:0; max-width:550px; }
.legal-cta__button { display:inline-flex; justify-content:center; align-items:center; gap:12px; padding:14px 23px; min-height:50px; border:1px solid #e1b869; border-radius:9px; color:#21170c; background:linear-gradient(180deg,#f2ce83,#dca44d); font-size:14px; font-weight:800; line-height:1.5; text-decoration:none; white-space:nowrap; }
.legal-cta__button .legal-icon { width:23px; height:23px; }
.legal-main a:focus-visible,.legal-toc summary:focus-visible { outline:2px solid #a17530; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .legal-main { scroll-behavior:auto; } }
