/* Shared shell for basic_web/legal/* pages — aligns with basic_web/index.html */
:root {
    --tb-blue: rgb(24, 97, 217);
    --tb-blue-rgb: 24, 97, 217;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#star-bg canvas {
    display: block;
}

.legal-page-header {
    position: relative;
    z-index: 10;
    padding-top: 120px;
    padding-bottom: 40px;
    min-height: auto;
}

@media (min-width: 1024px) {
    .legal-page-header {
        padding-top: 160px;
        padding-bottom: 56px;
    }
}

.hero-h1 {
    background: linear-gradient(180deg, #FFFFFF 0%, #71717A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 5.5vw, 3.75rem);
}

.hero-h1-validation {
    white-space: normal;
}

.hero-p {
    color: #A1A1AA;
    font-weight: 300;
    line-height: 1.6;
    max-width: 40rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* Mobile nav — mirrors index.html */
.nav-menu-btn { display: none; }
.nav-desktop-links { display: flex; }
.nav-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    z-index: 40;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.nav-sign-in-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.375rem;
    background: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-sign-in-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.nav-mobile-panel a.nav-sign-in-btn-mobile {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.375rem;
    text-align: center;
    color: #fafafa;
}
.nav-mobile-panel a.nav-sign-in-btn-mobile:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.nav-mobile-panel a {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (max-width: 767px) {
    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        background: none;
        border: none;
        color: #a1a1aa;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-menu-btn:hover { color: #fff; }
    .nav-desktop-links { display: none !important; }
    .nav-icon svg { display: block; width: 100%; height: 100%; }
}
@media (min-width: 768px) {
    .nav-mobile-panel { display: none !important; }
}

/* Legal body copy */
.legal-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Long-form legal pages (Terms / Privacy) */
.legal-content.legal-prose-wide {
    max-width: 52rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e4e4e7;
}

.legal-content p,
.legal-content li {
    color: #d4d4d8;
    line-height: 1.65;
    font-size: 1rem;
    font-weight: 300;
}

.legal-content ul {
    padding-left: 1.35rem;
    margin: 0.5rem 0 0;
}

.legal-content a {
    color: var(--tb-blue);
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

.legal-content code {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px 6px;
    color: #e4e4e7;
    font-size: 0.92em;
}

.legal-callout {
    background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-callout strong {
    color: #fbbf24;
}
