
:root{--bg:#022c22;--surface:#034435;--text:#eaedf3;--heading:#f8fafc;--muted:#a3adbe;--primary:#22c55e;--on-primary:#000000;--accent:#92400e;--border:rgba(255,255,255,0.12);}
*{box-sizing:border-box;}
body{background:var(--bg);color:var(--text);font-family:'Segoe UI',system-ui,sans-serif;margin:0;padding:0;line-height:1.75;}
h1,h2,h3,h4,h5,h6{color:var(--heading);}
a{color:var(--primary);text-decoration:none;}
a:hover{opacity:.82;}
p{color:var(--text);}

/* Navbar */
.navbar{background:var(--surface);border-bottom:1px solid var(--border);}
.navbar-brand img{height:40px;}
.navbar-toggler{border-color:var(--border);}
.navbar-toggler-icon{filter:invert(1);}
.nav-link{color:var(--text) !important;font-size:.93rem;padding:.5rem .8rem !important;}
.nav-link:hover,.nav-link.active{color:var(--primary) !important;}

/* Buttons */
.btn-primary-custom{background:var(--primary);color:var(--on-primary);font-weight:700;border:none;border-radius:8px;padding:.65rem 1.7rem;font-size:1rem;transition:transform .2s,box-shadow .2s;display:inline-block;}
.btn-primary-custom:hover{transform:translateY(-2px);box-shadow:0 0 18px rgba(34,197,94,.45);color:var(--on-primary);}
.btn-outline-custom{background:transparent;color:var(--primary);font-weight:700;border:2px solid var(--primary);border-radius:8px;padding:.6rem 1.5rem;font-size:1rem;transition:.2s;display:inline-block;}
.btn-outline-custom:hover{background:var(--primary);color:var(--on-primary);}

/* Breadcrumb */
.breadcrumb-wrap{background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 0;}
.breadcrumb{margin:0;background:none;padding:0;}
.breadcrumb-item a{color:var(--primary);font-size:.88rem;}
.breadcrumb-item.active{color:var(--muted);font-size:.88rem;}
.breadcrumb-item+.breadcrumb-item::before{color:var(--muted);}

/* Page header */
.page-header{background:linear-gradient(135deg,var(--bg) 0%,var(--surface) 55%,var(--bg) 100%);padding:60px 0 52px;border-bottom:1px solid var(--border);position:relative;overflow:hidden;}
.page-header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 60% 50%,rgba(34,197,94,.07) 0%,transparent 60%);}
.page-header h1{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:800;}
.page-header p{color:var(--muted);max-width:580px;margin-top:.6rem;}

/* Updated badge */
.updated-badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.25);border-radius:20px;padding:.3rem .9rem;font-size:.8rem;color:var(--primary);font-weight:600;margin-bottom:1rem;}

/* Sections */
section{padding:56px 0;}
.section-alt{background:var(--surface);}

/* TOC sidebar */
.toc-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.4rem;position:sticky;top:80px;}
.toc-box h6{color:var(--heading);font-weight:700;margin-bottom:1rem;font-size:.92rem;border-bottom:1px solid var(--border);padding-bottom:.6rem;}
.toc-list{list-style:none;margin:0;padding:0;}
.toc-list li{margin-bottom:.1rem;}
.toc-list a{color:var(--muted);font-size:.83rem;padding:.3rem .5rem;border-radius:6px;display:block;transition:.18s;}
.toc-list a:hover,.toc-list a.active-toc{color:var(--primary);background:rgba(34,197,94,.08);}
.toc-list .toc-num{color:var(--primary);font-weight:700;font-size:.75rem;margin-right:.35rem;}

/* Terms content */
.terms-section{margin-bottom:2.8rem;scroll-margin-top:90px;}
.terms-section:last-child{margin-bottom:0;}
.sec-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border);}
.sec-num{background:var(--primary);color:var(--on-primary);font-weight:800;font-size:.85rem;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.sec-title{color:var(--heading);font-weight:700;font-size:1.15rem;margin:0;}
.terms-section p{color:var(--text);font-size:.93rem;line-height:1.8;margin-bottom:.85rem;}
.terms-section p:last-child{margin-bottom:0;}
.terms-section ul,.terms-section ol{color:var(--text);font-size:.93rem;line-height:1.8;padding-left:1.4rem;margin-bottom:.85rem;}
.terms-section li{margin-bottom:.4rem;}
.terms-section li::marker{color:var(--primary);}

/* Highlight boxes */
.hl-box{border-radius:10px;padding:1rem 1.2rem;margin:1.1rem 0;}
.hl-box.info{background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.2);}
.hl-box.warn{background:rgba(146,64,14,.1);border:1px solid rgba(146,64,14,.3);}
.hl-box.neutral{background:var(--surface);border:1px solid var(--border);}
.hl-box p{margin:0;font-size:.88rem;line-height:1.7;}
.hl-box.info p{color:var(--text);}
.hl-box.warn p{color:var(--text);}
.hl-box .hl-label{font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.35rem;display:block;}
.hl-box.info .hl-label{color:var(--primary);}
.hl-box.warn .hl-label{color:var(--accent);}

/* Feature cards */
.feat-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.6rem 1.4rem;height:100%;transition:transform .22s,box-shadow .22s,border-color .22s;}
.feat-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(34,197,94,.15);border-color:var(--primary);}
.feat-card .fi{width:50px;height:50px;border-radius:12px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.2);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;}
.feat-card .fi i{font-size:1.5rem;color:var(--primary);}
.feat-card h5{color:var(--heading);font-weight:700;font-size:1rem;margin-bottom:.45rem;}
.feat-card p{color:var(--muted);font-size:.86rem;line-height:1.68;margin:0;}

/* Summary table */
.sum-table th{background:var(--surface);color:var(--heading);border:1px solid var(--border);font-size:.84rem;}
.sum-table td{background:var(--bg);color:var(--text);border:1px solid var(--border);font-size:.83rem;vertical-align:top;line-height:1.65;}
.sum-table .key{color:var(--heading);font-weight:600;}
.sum-table .val{color:var(--primary);}

/* CTA */
.cta-wrap{background:linear-gradient(135deg,var(--bg) 0%,var(--surface) 100%);border:1px solid var(--border);border-radius:18px;padding:3.2rem 2rem;text-align:center;position:relative;overflow:hidden;}
.cta-wrap::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(34,197,94,.09) 0%,transparent 60%);}

/* Progress indicator */
.read-progress{position:fixed;top:0;left:0;height:3px;background:var(--primary);z-index:9999;transition:width .1s;}

/* Footer */
footer{background:var(--surface);border-top:1px solid var(--border);padding:48px 0 24px;}
.footer-links a{color:var(--muted);font-size:.88rem;margin-right:1.2rem;display:inline-block;margin-bottom:.5rem;}
.footer-links a:hover{color:var(--primary);}
.footer-bottom{color:var(--muted);font-size:.82rem;border-top:1px solid var(--border);padding-top:1rem;margin-top:1.5rem;}
