/* Unified deep-space styles for documentation & legal pages (creator-guide, privacy-cn, privacy-en). */
.docs-page main {padding-top:82px;}
.docs-hero {padding:64px 0 42px;border-bottom:var(--glass-border);background:radial-gradient(ellipse at 75% 20%,rgba(22,68,94,.42),transparent 58%),#070e1b;}
.docs-hero h1 {font-size:clamp(34px,4.5vw,54px);font-weight:750;line-height:1.22;margin:0 0 16px;color:#f0f6fc;}
.docs-hero .docs-lead {font-size:16px;line-height:1.85;color:var(--text-muted);max-width:44em;margin:0;}
.docs-hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px;}

.docs-body {padding:48px 0 72px;}
.docs-layout {display:grid;grid-template-columns:250px minmax(0,1fr);gap:44px;align-items:start;}
.docs-sidebar {position:sticky;top:98px;max-height:calc(100vh - 120px);overflow-y:auto;padding-right:10px;}
.docs-sidebar-title {font:11px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;color:var(--text-muted);margin:0 0 14px;text-transform:uppercase;}
.docs-sidebar .toc-list {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}
.docs-sidebar .toc-list a {display:block;padding:7px 12px;border-left:2px solid #22384e;color:#9bb2c8;font-size:13px;line-height:1.5;text-decoration:none;border-radius:0 6px 6px 0;transition:color .2s,border-color .2s,background .2s;}
.docs-sidebar .toc-list a:hover {color:#e5f3ff;background:rgba(87,215,239,.07);}
.docs-sidebar .toc-list a.active {color:#7bf0ff;border-left-color:#57d7ef;background:rgba(87,215,239,.12);font-weight:600;}
.docs-sidebar .toc-sub {list-style:none;margin:2px 0 4px;padding:0 0 0 14px;display:flex;flex-direction:column;gap:2px;}
.docs-sidebar .toc-sub a {font-size:12px;padding:5px 12px;}

.docs-card {background:linear-gradient(155deg,#0f1f33,#0b1727);border:1px solid #233a51;border-radius:14px;padding:34px 36px;margin-bottom:28px;scroll-margin-top:102px;}
.docs-card h2 {font-size:24px;color:#f0f6fc;margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid rgba(114,222,243,.14);}
.docs-card h3 {font-size:19px;color:#d9f0fb;margin:28px 0 12px;scroll-margin-top:102px;}
.docs-card h4 {font-size:16px;color:#a6f3cf;margin:24px 0 10px;}
.docs-card p,.docs-card li {color:#bfd1e3;line-height:1.88;font-size:15px;}
.docs-card p {margin-bottom:14px;}
.docs-card ul,.docs-card ol {padding-left:20px;margin-bottom:16px;}
.docs-card li {margin-bottom:8px;}
.docs-card strong {color:#eef7ff;}
.docs-card code {padding:2px 7px;border-radius:4px;background:rgba(87,215,239,.14);color:#7bf0ff;font-size:.9em;}
.docs-card a {color:#57d7ef;text-decoration:underline;text-underline-offset:4px;}
.docs-card a:hover {color:#a6f3cf;}

.docs-tip {padding:14px 18px;margin:18px 0;border-radius:8px;background:rgba(255,198,140,.08);border:1px solid rgba(255,198,140,.25);border-left:3px solid #ffc68c;color:#f5d7b3;font-size:14px;line-height:1.75;}
.docs-tip strong {color:#ffe4c4;}

.docs-img-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0;}
.docs-img-grid.single {grid-template-columns:minmax(0,1fr);}
.docs-figure {margin:0;padding:16px;border-radius:10px;background:rgba(7,14,27,.6);border:1px solid rgba(114,222,243,.14);text-align:center;}
.docs-figure img {max-width:100%;height:auto;border-radius:8px;display:block;margin:0 auto;}
.docs-figure img.guide-img-mobile {max-height:460px;width:auto;}
.docs-figure img.guide-img-landscape {max-height:340px;width:auto;}
.docs-figure figcaption {margin-top:10px;font-size:12px;color:#8fa6bc;}

/* Privacy Single-Column Layout */
.legal-card {max-width:860px;margin:0 auto;}
.legal-indent {padding-left:1.5em;margin-bottom:16px;}

/* Mobile TOC Button & Slide-in Drawer */
.mobile-toc-fab {display:none;position:fixed;right:18px;bottom:74px;z-index:1040;height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(166,243,207,.45);background:rgba(13,30,49,.94);color:#a6f3cf;font-size:13px;font-weight:600;box-shadow:0 10px 26px rgba(0,0,0,.45);cursor:pointer;backdrop-filter:blur(10px);}
.toc-drawer {position:fixed;inset:0;z-index:2040;background:rgba(4,10,18,.75);backdrop-filter:blur(6px);opacity:0;transition:opacity .2s ease;}
.toc-drawer[hidden] {display:none!important;}
.toc-drawer.is-open {opacity:1;}
.toc-drawer-panel {width:min(300px,84vw);height:100%;background:#0c1829;border-right:1px solid rgba(114,222,243,.2);padding:20px;overflow-y:auto;transform:translateX(-100%);transition:transform .24s ease;}
.toc-drawer.is-open .toc-drawer-panel {transform:none;}
.toc-drawer-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(114,222,243,.14);}
.toc-drawer-head strong {font-size:15px;color:#f0f6fc;}
.toc-drawer-close {width:34px;height:34px;border:1px solid rgba(114,222,243,.25);border-radius:6px;background:transparent;color:#dcebf7;font-size:18px;cursor:pointer;}
.toc-drawer-panel a {display:block;padding:9px 10px;border-radius:6px;color:#bdd2e6;font-size:14px;text-decoration:none;}
.toc-drawer-panel a:hover {background:rgba(87,215,239,.12);color:#fff;}
.toc-drawer-panel .toc-sub {padding-left:14px;}
.toc-drawer-panel .toc-sub a {font-size:13px;color:#93aec6;}

@media(max-width:991px) {
 .docs-layout {grid-template-columns:1fr;}
 .docs-sidebar {display:none;}
 .mobile-toc-fab {display:inline-flex;align-items:center;gap:6px;}
}
@media(max-width:767px) {
 .docs-page main {padding-top:72px;}
 .docs-hero {padding:40px 0 30px;}
 .docs-body {padding:32px 0 56px;}
 .docs-card {padding:22px 18px;}
 .docs-img-grid {grid-template-columns:1fr;}
}
