/**
 * Docs Page Styles
 * Layout, hero, TOC, document panel, category groups, contact box and dark-mode overrides
 * for the docs page (user guides + legal). Class names keep the `docs-` prefix for backward compatibility.
 */
.docs-page-shell { background: #fff; padding: 58px 0 96px; }
.docs-page-shell > .container { max-width: 1440px; }
.docs-hero { background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%); padding: 64px 0 42px; text-align: center; }
.docs-hero .mv-breadcrumb { padding: 0 0 10px; }
.docs-hero .mv-breadcrumb-list { justify-content: center; }
.docs-eyebrow { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 13px; border: 1px solid rgba(13, 62, 154, 0.12); border-radius: 999px; background: #fff; color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-hero h1 { max-width: 920px; margin: 18px auto 14px; color: var(--text-main); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.14; letter-spacing: -0.02em; }
.docs-hero p { max-width: 820px; margin: 0 auto; color: #64748b; font-size: 1.03rem; line-height: 1.7; }
.docs-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.docs-meta-pill { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px; background: rgba(13, 62, 154, 0.06); color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.docs-layout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(280px, 300px); gap: 32px; align-items: start; }
.docs-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.docs-side-panel { position: sticky; top: 96px; max-height: calc(100vh - 126px); overflow: auto; scrollbar-width: none; -ms-overflow-style: none; }
.docs-side-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.docs-side-panel:first-child { padding: 20px 18px; border: 1px solid rgba(226, 232, 240, 0.95); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); }
.docs-side-panel:last-child { padding: 24px; border: 1px solid #e2e8f0; border-radius: 26px; background: #f8fafc; }
.docs-panel-title { margin: 0 0 16px; color: var(--text-main); font-size: 1.3rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
.docs-toc { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.docs-toc a { position: relative; display: block; min-height: 36px; padding: 8px 11px; border-left: 3px solid transparent; border-radius: 10px; color: #94a3b8; font-size: 0.88rem; font-weight: 700; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.docs-toc a:hover,
.docs-toc a.is-active { border-left-color: transparent; background: transparent; color: var(--primary); }
.docs-doc-panel { min-width: 0; padding: 0; color: #334155; }
.docs-doc-head { border-bottom: 1px solid #e2e8f0; padding-bottom: 22px; margin-bottom: 26px; }
.docs-doc-head h2 { margin: 0 0 10px; color: var(--text-main); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; }
.docs-doc-head p { margin: 0; color: inherit; line-height: 1.7; }
.docs-summary { display: grid; gap: 8px; margin: 22px 0 0; padding: 0 0 0 18px; list-style: none; }
.docs-summary li { position: relative; padding-left: 22px; color: inherit; line-height: 1.58; }
.docs-summary li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.docs-section-block { scroll-margin-top: 110px; padding-top: 12px; margin-top: 28px; }
.docs-section-block h3 { margin: 0 0 14px; color: var(--text-main); font-size: 1.42rem; line-height: 1.35; letter-spacing: -0.01em; }
.docs-section-block p { margin: 0 0 16px; color: inherit; line-height: 1.86; font-size: 1.04rem; }
.docs-section-block ul { display: grid; gap: 7px; margin: 2px 0 20px; padding-left: 18px; color: inherit; line-height: 1.62; list-style: none; }
.docs-section-block li { position: relative; margin: 0; padding-left: 22px; }
.docs-section-block li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 1; }
.docs-section-block u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(13, 62, 154, 0.35); color: inherit; font-weight: inherit; }
.docs-doc-panel :is(p, li, u) { color: #334155 !important; -webkit-text-fill-color: #334155 !important; opacity: 1; }
.docs-doc-panel :is(p, li) { font-weight: 400; }
.docs-tab-group + .docs-tab-group { margin-top: 22px; }
.docs-tab-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #94a3b8; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color 0.2s ease; }
.docs-tab-group-title:hover { color: var(--primary); }
.docs-group-chevron { flex: 0 0 auto; transition: transform 0.25s ease; }
.docs-tab-group.is-collapsed .docs-group-chevron { transform: rotate(-90deg); }
.docs-tab-group.is-collapsed .docs-tabs { display: none; }
.docs-tabs { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 15px; }
.docs-tab { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #475569; text-decoration: none; font-weight: 800; line-height: 1.35; box-shadow: none; transition: color 0.2s ease; }
.docs-tab svg { width: 17px; height: 17px; flex: 0 0 auto; transition: transform 0.3s ease; }
.docs-tab:hover,
.docs-tab.is-active { color: var(--primary); }
.docs-tab:hover svg,
.docs-tab.is-active svg { transform: translateX(4px); }
.docs-contact-box { margin-top: 16px; padding: 14px 15px; border-radius: 18px; background: #fff; border: 1px solid rgba(226, 232, 240, 0.88); color: #64748b; font-size: 0.88rem; line-height: 1.62; box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04); }
.docs-contact-box a { color: var(--primary); font-weight: 800; text-decoration: none; }
html[data-theme="dark"] .docs-page-shell,
html[data-theme="dark"] .docs-hero { background: var(--bg-body); }
html[data-theme="dark"] .docs-side-panel:first-child,
html[data-theme="dark"] .docs-side-panel:last-child { background: var(--bg-subtle); border-color: var(--border); }
html[data-theme="dark"] .docs-tab { color: var(--text-body); }
html[data-theme="dark"] .docs-tab:hover,
html[data-theme="dark"] .docs-tab.is-active { color: var(--primary); }
html[data-theme="dark"] .docs-tab-group-title { color: var(--text-light); }
html[data-theme="dark"] .docs-hero p,
html[data-theme="dark"] .docs-doc-head p,
html[data-theme="dark"] .docs-toc a,
html[data-theme="dark"] .docs-contact-box { color: var(--text-light); }
html[data-theme="dark"] .docs-doc-head { border-color: var(--border); }
html[data-theme="dark"] .docs-doc-panel { color: var(--text-body); }
html[data-theme="dark"] .docs-section-block u { color: inherit; text-decoration-color: rgba(56, 181, 255, 0.46); }
html[data-theme="dark"] .docs-doc-panel :is(p, li, u) { color: var(--text-body) !important; -webkit-text-fill-color: var(--text-body) !important; opacity: 1; }
html[data-theme="dark"] .docs-contact-box { background: var(--bg-subtle); border-color: var(--border); }
@media (max-width: 1180px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-side-panel { position: static; max-height: none; }
    .docs-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .docs-page-shell { padding: 22px 0 62px; }
    .docs-hero { padding: 46px 0 32px; }
    .docs-layout { gap: 24px; }
    .docs-tabs { grid-template-columns: 1fr; }
    .docs-side-panel:first-child,
    .docs-side-panel:last-child { padding: 18px; border-radius: 22px; }
}
