/* ============================================================
   SJTweaks — shared styling for the legal pages
   (bot-terms.html, bot-privacy.html)

   Palette, fonts and surface treatments are taken from index.html
   so these pages read as part of the same site.
   ============================================================ */

:root {
    --bg-dark: #030306;
    --bg-card: #0a0a12;
    --primary: #00aeff;
    --primary-glow: rgba(0, 174, 255, 0.4);
    --primary-dim: rgba(0, 174, 255, 0.1);
    --secondary: #6366f1;
    --accent: #22d3ee;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --success: #22c55e;
    --warn: #f59e0b;
    --gradient-1: linear-gradient(135deg, #00aeff 0%, #6366f1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============ AMBIENT GLOWS ============ */
/* Kept dimmer than the homepage so long-form text stays readable. */
.spotlight {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(130px);
    opacity: 0.35;
}

.spotlight-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 174, 255, 0.3) 0%, transparent 70%);
    top: -180px;
    left: -180px;
}

.spotlight-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
    top: 45%;
    right: -200px;
}

.spotlight-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 174, 255, 0.2) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
}

/* ============ HEADER ============ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 6, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-logo img {
    height: 30px;
    display: block;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.topbar-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.topbar-nav a.active {
    color: var(--primary);
    background: var(--primary-dim);
    border-color: rgba(0, 174, 255, 0.25);
}

/* ============ PAGE SHELL ============ */
.wrap {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 28px 100px;
}

/* ============ HERO ============ */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

h1 .accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 16px;
}

.updated .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.lede {
    font-size: 17px;
    color: var(--text-dim);
    margin-top: 26px;
}

.lede strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
    margin: 44px 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 30px;
}

.toc h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.toc ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 28px;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
}

.toc a {
    display: flex;
    gap: 11px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14.5px;
    padding: 6px 0;
    transition: color 0.2s;
}

.toc a::before {
    content: counter(toc);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    opacity: 0.7;
    min-width: 17px;
}

.toc a:hover {
    color: var(--primary);
}

/* ============ SECTIONS ============ */
section {
    margin-top: 52px;
    /* Clears the sticky header when jumping to an anchor. */
    scroll-margin-top: 90px;
}

h2.sec {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

h2.sec .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    opacity: 0.85;
}

h3 {
    font-size: 17.5px;
    font-weight: 600;
    margin: 30px 0 12px;
    color: var(--text);
}

p {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 15.5px;
}

p strong,
li strong {
    color: var(--text);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    margin: 0 0 18px;
}

ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 15.5px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

ol.numbered {
    margin: 0 0 18px 20px;
}

ol.numbered li {
    color: var(--text-dim);
    font-size: 15.5px;
    margin-bottom: 10px;
    padding-left: 6px;
}

ol.numbered li::marker {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

/* ============ TABLES ============ */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    margin: 0 0 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 440px;
}

th {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    white-space: nowrap;
}

td {
    padding: 15px 20px;
    font-size: 14.5px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ CALLOUTS ============ */
.callout {
    display: flex;
    gap: 15px;
    border-radius: 14px;
    padding: 19px 22px;
    margin: 0 0 22px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.callout svg {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    stroke-width: 2;
    fill: none;
}

.callout p {
    margin: 0;
    font-size: 14.5px;
}

.callout p + p {
    margin-top: 10px;
}

.callout.info {
    border-color: rgba(0, 174, 255, 0.2);
    background: rgba(0, 174, 255, 0.045);
}

.callout.info svg {
    stroke: var(--primary);
}

.callout.warn {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.05);
}

.callout.warn svg {
    stroke: var(--warn);
}

/* ============ CONTACT CARD ============ */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 30px;
    margin-top: 4px;
}

.contact-card .who {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    font-size: 15px;
    color: var(--text-dim);
}

.contact-row svg {
    width: 17px;
    height: 17px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    opacity: 0.8;
}

/* ============ FOOTER ============ */
.page-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 30px 28px;
}

.page-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.page-footer p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.page-footer nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.page-footer nav a {
    font-size: 13.5px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.page-footer nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
    .wrap {
        padding: 44px 20px 72px;
    }

    h1 {
        font-size: 32px;
    }

    h2.sec {
        font-size: 21px;
    }

    .toc {
        padding: 22px;
    }

    .toc ol {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        padding: 14px 20px;
    }

    .topbar-nav a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .contact-card,
    .toc {
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    /* Below this the logo and three links no longer fit on one line, so stack them
       deliberately rather than letting the last link wrap on its own. */
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
    }

    .topbar-nav {
        gap: 6px;
    }
}
