/* ==========================================================================
   SadHost blog / legal pages — server-rendered, no JS required.
   Deliberately self-contained (no dependency on the panel bundle) so these
   pages load fast for crawlers and remain readable with JS disabled.
   ========================================================================== */

:root {
    --sh-bg: #08080f;
    --sh-panel: #0d1322;
    --sh-panel-2: #111a2e;
    --sh-line: #26314d;
    --sh-text: #e7ecf6;
    --sh-muted: #a7b2c9;
    --sh-accent: #3d83d3;
    --sh-accent-2: #7fb2ea;
    --sh-radius: 14px;
    --sh-wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--sh-bg);
    color: var(--sh-text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--sh-accent-2); }
.sh-wrap { width: 100%; max-width: var(--sh-wrap); margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.sh-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 15, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sh-line);
}

.sh-head-in { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }

.sh-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 700; font-size: 19px; }

.sh-logo-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sh-accent), #6f4bd8);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.sh-logo-text strong { color: var(--sh-accent-2); }

.sh-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

.sh-nav a { color: var(--sh-muted); text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: 15px; }
.sh-nav a:hover { color: #fff; background: var(--sh-panel-2); }

.sh-head-cta { display: flex; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.sh-btn:active { transform: translateY(1px); }
.sh-btn-primary { background: var(--sh-accent); color: #fff; }
.sh-btn-primary:hover { background: #4c92e0; }
.sh-btn-ghost { background: transparent; border-color: var(--sh-line); color: var(--sh-text); }
.sh-btn-ghost:hover { border-color: var(--sh-accent); color: #fff; }
.sh-btn-lg { padding: 13px 22px; font-size: 16px; }

/* ── Page scaffolding ────────────────────────────────────────────────── */
.sh-main { display: block; padding: 34px 0 72px; }

.sh-crumbs { font-size: 14px; color: var(--sh-muted); margin: 0 0 18px; }
.sh-crumbs a { color: var(--sh-muted); text-decoration: none; }
.sh-crumbs a:hover { color: var(--sh-accent-2); }
.sh-crumbs span { opacity: .5; padding: 0 7px; }

.sh-title { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.4px; }
.sh-lead { font-size: 18px; color: var(--sh-muted); margin: 0 0 26px; max-width: 78ch; }
.sh-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--sh-muted); margin: 0 0 26px; }

.sh-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--sh-line);
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: .2px;
    color: var(--sh-muted);
    text-decoration: none;
}

/* ── Article prose ───────────────────────────────────────────────────── */
.sh-article { max-width: 78ch; }

.sh-article h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 42px 0 12px; padding-top: 6px; scroll-margin-top: 80px; }
.sh-article h3 { font-size: 19.5px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.sh-article p { margin: 0 0 16px; }
.sh-article ul, .sh-article ol { margin: 0 0 18px; padding-left: 22px; }
.sh-article li { margin: 0 0 8px; }
.sh-article li::marker { color: var(--sh-accent); }
.sh-article a { color: var(--sh-accent-2); text-decoration: underline; text-underline-offset: 2px; }
.sh-article strong { color: #fff; }

.sh-article code {
    background: var(--sh-panel-2);
    border: 1px solid var(--sh-line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 15px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-word;
}

.sh-article pre { background: #0b1020; border: 1px solid var(--sh-line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 20px; }
.sh-article pre code { background: none; border: 0; padding: 0; font-size: 14.5px; }
.sh-article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; display: block; overflow-x: auto; }
.sh-article th, .sh-article td { border: 1px solid var(--sh-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.sh-article th { background: var(--sh-panel-2); color: #fff; font-weight: 600; }

.sh-note {
    background: var(--sh-panel);
    border: 1px solid var(--sh-line);
    border-left: 3px solid var(--sh-accent);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 22px;
    font-size: 16px;
}

.sh-note p:last-child { margin-bottom: 0; }

.sh-steps { counter-reset: sh-step; list-style: none; padding-left: 0; }
.sh-steps > li { position: relative; padding-left: 44px; margin-bottom: 18px; }
.sh-steps > li::before {
    counter-increment: sh-step;
    content: counter(sh-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sh-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* ── Blog hub ────────────────────────────────────────────────────────── */
.sh-hub-head { max-width: 78ch; }

.sh-group { margin: 40px 0 0; }

.sh-group > h2 { font-size: 22px; margin: 0 0 16px; color: #fff; }

.sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.sh-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--sh-panel);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--sh-text);
    transition: border-color .15s ease, transform .15s ease;
}

.sh-card:hover { border-color: var(--sh-accent); transform: translateY(-2px); }
.sh-card h3 { margin: 0; font-size: 18px; line-height: 1.35; color: #fff; }
.sh-card p { margin: 0; color: var(--sh-muted); font-size: 15px; }
.sh-card-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--sh-muted); }
.sh-card-badge { background: var(--sh-accent); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* ── Table of contents + related ─────────────────────────────────────── */
.sh-toc {
    background: var(--sh-panel);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    padding: 16px 20px;
    margin: 0 0 30px;
    font-size: 15.5px;
}

.sh-toc strong { display: block; margin-bottom: 8px; color: #fff; }
.sh-toc ol { margin: 0; padding-left: 20px; }
.sh-toc li { margin: 0 0 5px; }
.sh-toc a { text-decoration: none; }

.sh-related { margin: 46px 0 0; }
.sh-related h2 { font-size: 22px; margin: 0 0 16px; }

/* ── Ads ─────────────────────────────────────────────────────────────── */
.sh-ad { margin: 30px 0; min-height: 90px; overflow: hidden; }
.sh-ad-label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #6d7891; margin-bottom: 6px; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.sh-cta {
    display: flex;
    gap: 26px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #101a30, #0c1120);
    border: 1px solid var(--sh-line);
    border-radius: 18px;
    padding: 26px 28px;
    margin: 42px 0;
}

.sh-cta-body { flex: 1 1 380px; }
.sh-cta h3 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.sh-cta p { margin: 0 0 12px; color: var(--sh-muted); }
.sh-cta-list { margin: 0; padding-left: 20px; color: var(--sh-muted); font-size: 15px; }
.sh-cta-list li::marker { color: #4ade80; }
.sh-cta-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.sh-foot { border-top: 1px solid var(--sh-line); background: #07070d; padding: 40px 0 22px; margin-top: 30px; }

.sh-foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.sh-foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sh-foot-col h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.sh-foot-col a { color: var(--sh-muted); text-decoration: none; font-size: 15px; }
.sh-foot-col a:hover { color: var(--sh-accent-2); }
.sh-foot-note { color: var(--sh-muted); font-size: 15px; margin: 6px 0 0; max-width: 40ch; }
.sh-foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--sh-line); color: #6d7891; font-size: 13.5px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .sh-foot-in { grid-template-columns: 1fr 1fr; }
    .sh-cta { padding: 22px; }
    .sh-cta-actions { width: 100%; }
    .sh-cta-actions .sh-btn { width: 100%; }
}

@media (max-width: 640px) {
    body { font-size: 16.5px; }
    .sh-head-in { min-height: 58px; gap: 10px; }
    .sh-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .sh-head-cta { margin-left: auto; }
    .sh-head-cta .sh-btn-ghost { display: none; }
    .sh-main { padding: 22px 0 56px; }
    .sh-foot-in { grid-template-columns: 1fr; }
    .sh-article table { font-size: 14.5px; }
    .sh-btn, .sh-btn-lg { width: 100%; }
    .sh-head-cta .sh-btn { width: auto; }
}

