

html:has(body.im-page) { background: var(--im-bg); }
body.im-page { margin: 0; }
.legal-doc *, .legal-doc *::before, .legal-doc *::after { box-sizing: border-box; }

.legal-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
    
    background: linear-gradient(rgba(72, 202, 255, .1), rgba(72, 202, 255, .1)), rgba(11, 17, 32, .94);
    backdrop-filter: blur(8px);
}

.legal-doc {
    max-width: 800px;
    margin: 72px auto 40px;
    padding: 48px;
    box-sizing: border-box;
}

.legal-head { text-align: center; margin-bottom: 40px; }
.legal-head .im-screen-icon { margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(20px, 2.6vw, 30px); margin-bottom: 8px; }
.legal-meta { color: var(--im-text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

.legal-doc h2 {
    font-family: var(--im-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--im-text-strong);
    margin: 36px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-doc h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--im-primary); flex-shrink: 0; }
.legal-doc p { margin: 0 0 14px; color: var(--im-text); }
.legal-doc strong { color: var(--im-text-strong); font-weight: 600; }
.legal-doc ul { list-style: none; padding-left: 0; margin: 0 0 18px; }
.legal-doc li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--im-text-soft); }

.legal-doc li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1em; height: 1em; background: var(--im-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.legal-doc .highlight-box { margin-bottom: 32px; }
.legal-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--im-line-soft); text-align: center; font-size: 13px; color: var(--im-text-muted); }

@media (max-width: 600px) {
    .legal-doc { margin: 76px 12px 24px; padding: 28px 18px; }
    .legal-back { top: 12px; left: 12px; }
}
