.legal-shell {
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
}

/* ---- Topbar ---- */
.legal-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--bg-0) 80%, transparent);
}
.legal-topbar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    flex: 1;
    text-align: center;
    margin-right: 36px;
}
.legal-topbar-spacer { width: 36px; }
.legal-topbar .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-1);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-fast) var(--ease);
}
.legal-topbar .icon-btn:hover { background: var(--bg-2); }

/* ---- Tabs ---- */
.legal-tabs {
    display: flex;
    gap: 6px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--dur-fast) var(--ease);
}
.legal-tab:hover { background: var(--bg-2); color: var(--text); }
.legal-tab.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--bg-0);
    box-shadow: 0 4px 18px rgba(242, 86, 159, 0.35);
}

/* ---- Body ---- */
.legal-body {
    padding: 8px 20px 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #D8D2CB;
}

.legal-updated {
    display: inline-block;
    background: rgba(242, 86, 159, 0.14);
    color: var(--magenta);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}
.legal-section h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    margin: 0;
}
.legal-section p {
    margin: 0;
    color: #D8D2CB;
}
.legal-section ul {
    margin: 4px 0 0 18px;
    padding: 0;
    color: #D8D2CB;
}
.legal-section li {
    margin-bottom: 4px;
    line-height: 1.55;
}
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a { color: var(--magenta); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-full-link {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.legal-full-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.legal-full-link a:hover { color: var(--magenta); }

.legal-contact {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.legal-contact a { color: var(--magenta); text-decoration: none; }
.legal-contact a:hover { text-decoration: underline; }
