:root {
    --bg: #060b18;
    --panel: #0e172b;
    --panel-2: #121e36;
    --text: #f6f8ff;
    --muted: #a7b1c6;
    --line: rgba(255,255,255,.11);
    --accent: #ffb11f;
    --accent2: #ff762d;
    --success: #48e2a3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(255,177,31,.12), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(62,111,255,.12), transparent 25%),
        var(--bg);
    font-family: Manrope, sans-serif;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.legal-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6,11,24,.88);
    backdrop-filter: blur(18px);
}
.topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.legal-brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk"; font-weight: 700; }
.legal-mark {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 12px; color: #12141a;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
}
.topbar-inner nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .9rem; }
.home-link { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #fff; }
.legal-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 70px;
}
.legal-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(14,23,43,.75);
}
.sidebar-label {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.legal-nav { display: grid; gap: 4px; }
.legal-nav a {
    padding: 9px 10px;
    border-radius: 10px;
    color: #aeb8cc;
    font-size: .85rem;
}
.legal-nav a:hover { color: #16171b; background: var(--accent); }
.legal-document {
    min-width: 0;
    padding: clamp(25px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg,rgba(16,27,50,.95),rgba(9,16,31,.97));
    box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.document-badge {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(72,226,163,.25);
    border-radius: 999px;
    color: #bdf5db;
    background: rgba(72,226,163,.08);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1 {
    margin: 20px 0 10px;
    font-family: "Space Grotesk";
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.document-meta { margin: 0 0 34px; color: #8390aa; font-size: .84rem; }
h2 {
    margin: 38px 0 12px;
    color: #fff;
    font-family: "Space Grotesk";
    font-size: 1.38rem;
    letter-spacing: -.025em;
}
h3 { margin: 25px 0 8px; color: #fff; font-size: 1rem; }
p, li { color: #b6bfd1; line-height: 1.78; font-size: .94rem; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 7px; }
a.inline-link { color: #ffc14d; text-decoration: underline; text-underline-offset: 3px; }
.info-card, .action-card {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}
.info-card strong, .action-card strong { display: block; margin-bottom: 7px; color: #fff; }
.action-card { border-color: rgba(255,177,31,.24); background: rgba(255,177,31,.07); }
.doc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.doc-card {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.035);
    transition: .2s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: rgba(255,177,31,.45); }
.doc-card strong { display:block; margin-bottom: 6px; color:#fff; }
.doc-card span { color:#98a4bb; font-size:.84rem; line-height:1.55; }
.definition-table { width:100%; border-collapse:collapse; margin:20px 0; }
.definition-table th, .definition-table td {
    padding: 13px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    color: #b6bfd1;
    font-size: .86rem;
    line-height: 1.55;
}
.definition-table th { color:#fff; background:rgba(255,255,255,.05); }
.legal-note {
    margin-top: 45px;
    padding: 20px;
    border: 1px solid rgba(255,177,31,.28);
    border-radius: 17px;
    background: rgba(255,177,31,.07);
}
.legal-note strong { color:#ffd16c; }
.legal-note p { margin:7px 0 0; font-size:.84rem; }
.legal-footer { border-top:1px solid var(--line); background:#040814; }
.legal-footer-inner {
    min-height: 85px; display:flex; align-items:center; justify-content:space-between;
    gap:20px; color:#818ca3; font-size:.82rem;
}
.legal-footer-inner div { display:flex; gap:16px; }
.legal-footer a:hover { color:var(--accent); }
@media(max-width:850px) {
    .legal-shell { grid-template-columns:1fr; }
    .legal-sidebar { position:static; }
    .legal-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:580px) {
    .container { width:min(100% - 22px,1180px); }
    .topbar-inner nav > a:first-child { display:none; }
    .legal-document { padding:23px; border-radius:22px; }
    .legal-nav, .doc-grid { grid-template-columns:1fr; }
    .legal-footer-inner { align-items:flex-start; flex-direction:column; justify-content:center; padding:22px 0; }
}
