:root {
    --font-sans: 'Inter', 'Onest', system-ui, -apple-system, sans-serif;
    --brand-teal: #4CD9C0;
    --brand-teal-light: #E6F9F5;
    --brand-teal-dark: #2BB59C;
    --brand-slate: #4C5957;
    --brand-slate-dark: #2F3B39;
    --brand-slate-ultra: #1E2827;
    --brand-gray: #8E9CA8;
    --brand-light: #F8FAFC;
    --brand-accent: #F1F5F9;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --bg-white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--font-sans); font-weight: 400; line-height: 1.6; color: var(--text-color); background-color: var(--brand-light); -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.topbar { flex-shrink: 0; background-color: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.topbar-inner { min-height: 68px; padding: 0.65rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-color); }
.brand-logo-img { height: 30px; width: auto; display: block; }
.brand-sep { color: var(--border-color); font-weight: 300; font-size: 1.25rem; }
.brand-sub { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 1.15rem; font-family: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--radius-sm); border: 1px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--brand-teal); border-color: var(--brand-teal); color: var(--brand-slate-ultra); }
.btn-primary:hover { background: var(--brand-teal-dark); border-color: var(--brand-teal-dark); color: #FFFFFF; }
.btn-outline { background: var(--bg-white); border-color: var(--border-color); color: var(--text-color); }
.btn-outline:hover { border-color: var(--brand-teal-dark); background: var(--brand-teal-light); color: var(--brand-slate-ultra); }
.btn-ghost { background: transparent; color: var(--brand-slate); }
.btn-ghost:hover { color: var(--text-color); background: var(--brand-accent); }
.main-wrap { flex: 1 0 auto; display: flex; flex-direction: column; padding: 2rem 0 2.5rem; }
.main-wrap > .container { flex: 1 0 auto; }
.layout-grid { display: grid; grid-template-columns: 295px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.sidebar { position: sticky; top: 88px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-block { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sidebar-label { padding: 0.85rem 1.15rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); background: var(--brand-light); border-bottom: 1px solid var(--border-color); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.doc-nav-list, .toc-list { list-style: none; margin: 0; padding: 0.35rem; }
.doc-nav-link { display: block; padding: 0.65rem 0.85rem; text-decoration: none; border-radius: var(--radius-sm); margin-bottom: 2px; transition: var(--transition); }
.doc-nav-link:hover { background: var(--brand-light); }
.doc-nav-link.is-active { background: var(--brand-teal-light); }
.doc-nav-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-color); line-height: 1.35; }
.doc-nav-link.is-active .doc-nav-title { color: var(--brand-slate-ultra); }
.doc-nav-meta { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.sidebar-toc { max-height: calc(100vh - 460px); overflow-y: auto; }
.toc-link { display: block; padding: 0.45rem 0.75rem; font-size: 0.78rem; line-height: 1.35; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); }
.toc-link:hover, .toc-link.is-active { color: var(--brand-slate-ultra); background: var(--brand-teal-light); font-weight: 500; }
.doc-toolbar { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0.85rem 1.25rem; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: var(--shadow-sm); }
.doc-search-wrap { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
.doc-search-input { width: 100%; height: 40px; padding: 0 0.95rem; font-family: inherit; font-size: 0.875rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-color); background: var(--brand-light); transition: var(--transition); }
.doc-search-input:focus { outline: none; border-color: var(--brand-teal-dark); background: var(--bg-white); box-shadow: 0 0 0 3px rgba(76, 217, 192, 0.18); }
.doc-search-count { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.doc-toolbar-btns { display: flex; align-items: center; gap: 0.65rem; }
mark.search-hl { background: var(--brand-teal-light); color: var(--brand-slate-ultra); border-bottom: 2px solid var(--brand-teal-dark); padding: 0 2px; border-radius: 3px; }
.doc-paper { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.75rem 3.25rem; }
.print-running-header { display: none; }
.doc-header { border-bottom: 2px solid var(--border-color); padding-bottom: 1.35rem; margin-bottom: 1.75rem; }
.doc-badge-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; background: var(--brand-teal-light); color: var(--brand-teal-dark); border-radius: var(--radius-full); }
.doc-url-text { font-size: 0.78rem; color: var(--text-muted); background: var(--brand-light); padding: 0.25rem 0.7rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-title { margin: 0 0 0.65rem; font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--text-color); letter-spacing: -0.015em; }
.doc-subtitle { margin: 0 0 1.15rem; font-size: 0.95rem; font-weight: 400; color: var(--text-muted); line-height: 1.5; }
.doc-meta-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 0.85rem; border-top: 1px solid var(--border-color); font-size: 0.825rem; font-weight: 600; color: var(--brand-slate); flex-wrap: wrap; gap: 0.5rem; }
.doc-intro { margin: 0 0 0.9rem; font-size: 0.95rem; text-align: justify; }
.doc-section-title { margin: 2rem 0 0.85rem; padding-bottom: 0.5rem; font-size: 1.08rem; font-weight: 700; color: var(--text-color); border-bottom: 1px solid var(--border-color); scroll-margin-top: 90px; }
.doc-subhead { margin: 1.25rem 0 0.6rem; font-size: 0.96rem; font-weight: 600; color: var(--brand-slate-dark); }
.doc-clause { margin: 0 0 0.65rem; font-size: 0.925rem; text-align: justify; }
.doc-clause-num { font-weight: 700; color: var(--text-color); }
.doc-term { margin: 0 0 0.65rem; padding: 0.5rem 0.9rem; background: var(--brand-light); border-left: 3px solid var(--brand-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.925rem; }
.doc-bullet { display: flex; align-items: baseline; gap: 0.65rem; margin: 0 0 0.5rem 1rem; font-size: 0.925rem; }
.doc-bullet-mark { color: var(--brand-teal-dark); font-weight: 700; flex-shrink: 0; }
.doc-bullet-body { text-align: justify; }
.doc-link { color: var(--brand-teal-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.doc-link:hover { color: var(--brand-slate-ultra); }
.doc-req-table, .doc-sign-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0 0.5rem; font-size: 0.875rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.doc-req-table th, .doc-req-table td, .doc-sign-table td { border-bottom: 1px solid var(--border-color); padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.doc-req-table tr:last-child th, .doc-req-table tr:last-child td { border-bottom: none; }
.doc-req-table th { width: 34%; background: var(--brand-light); font-weight: 600; color: var(--text-color); border-right: 1px solid var(--border-color); }
.doc-sign-note { margin: 1.4rem 0 0.5rem; font-size: 0.825rem; color: var(--text-muted); font-style: italic; }
.doc-sign-table td { width: 50%; background: var(--brand-light); line-height: 1.55; border-bottom: none; }
.doc-sign-table td:first-child { border-right: 1px solid var(--border-color); }
.hub-header { background: var(--bg-white); border: 1px solid var(--border-color); border-top: 4px solid var(--brand-teal); border-radius: var(--radius-lg); padding: 2rem 2.25rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-teal-dark); margin-bottom: 0.5rem; }
.hub-header h1 { margin: 0 0 0.75rem; font-size: 1.65rem; font-weight: 700; color: var(--text-color); }
.hub-lead { margin: 0; font-size: 0.95rem; color: var(--text-muted); max-width: 820px; }
.hub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-bottom: 1.75rem; }
.hub-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); transition: var(--transition); }
.hub-card:hover { border-color: var(--brand-teal); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.url-pill { font-size: 0.75rem; color: var(--text-muted); background: var(--brand-light); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); }
.hub-card-title { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; }
.hub-card-title a { color: var(--text-color); text-decoration: none; }
.hub-card-title a:hover { color: var(--brand-teal-dark); }
.hub-card-desc { margin: 0 0 1.15rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.hub-card-footer { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.hub-requisites { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.75rem 2rem; box-shadow: var(--shadow-sm); }
.hub-requisites h2 { margin: 0 0 0.85rem; font-size: 1.15rem; font-weight: 700; color: var(--text-color); }
.alert-box { background: #FFFBEB; border: 1px solid #F59E0B; border-radius: var(--radius-md); color: #92400E; padding: 0.85rem 1.1rem; margin-bottom: 1.15rem; font-size: 0.875rem; }
.site-footer { margin-top: auto; flex-shrink: 0; background: var(--brand-slate-ultra); color: #CBD5E1; padding: 0.1rem 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--brand-teal); text-decoration: none; }
@media (max-width: 980px) { .layout-grid { grid-template-columns: 1fr; } .sidebar { position: static; max-height: none; overflow-y: visible; } .sidebar-toc { display: none; } .hub-cards { grid-template-columns: 1fr; } .doc-paper { padding: 1.75rem 1.35rem; } .doc-toolbar { flex-direction: column; align-items: stretch; } }
@media print { @page { size: A4 portrait; margin: 18mm 15mm 18mm 20mm; } body { display: block !important; background: #FFFFFF !important; color: #000000 !important; font-size: 10.5pt; line-height: 1.45; } .no-print, .site-footer { display: none !important; } .container, .main-wrap, .layout-grid, .content-area { display: block !important; max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; } .doc-paper { border: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; } .print-running-header { display: block !important; font-size: 8.5pt; color: #555555; border-bottom: 1px solid #CCCCCC; padding-bottom: 4px; margin-bottom: 14px; text-align: right; } .doc-title { font-size: 14pt; text-align: center; } .doc-subtitle { font-size: 10pt; text-align: center; color: #444444; } .doc-section-title { font-size: 11.5pt; page-break-after: avoid; break-after: avoid; } .doc-req-table, .doc-sign-table, tr { page-break-inside: avoid; break-inside: avoid; border-radius: 0 !important; } a.doc-link { color: #000000 !important; text-decoration: none !important; } }

/* === 3-Zone App Shell: Header + 2 Independent Scroll Columns + Bottom-Anchored Footer === */
@media (min-width: 981px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    body {
        display: flex;
        flex-direction: column;
    }
    .topbar {
        flex: 0 0 auto;
        position: relative;
        top: auto;
    }
    .main-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .main-wrap > .container.layout-grid {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        align-items: stretch;
    }
    .sidebar {
        position: static;
        top: auto;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 1.5rem 0 2rem;
    }
    .sidebar::-webkit-scrollbar {
        display: none;
    }
    .sidebar-toc {
        max-height: none;
        overflow: visible;
    }
    .content-area {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1.5rem 0.25rem 2.5rem 0;
    }
    .doc-section-title {
        scroll-margin-top: 20px;
    }
    .site-footer {
        flex: 0 0 auto;
        margin-top: 0;
        padding: 0.1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}
@media print {
    html, body, .main-wrap, .main-wrap > .container.layout-grid, .sidebar, .content-area {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
    .site-footer {
        display: none !important;
    }
}
