/* ============================================================
   LEGAL PAGES — Privacy & Terms
   Companion to style.css; reuses tokens defined there.
============================================================ */

.legal-page {
    padding-top: 88px; /* clear sticky header */
    background: var(--bg);
    min-height: 100vh;
    color: var(--text-primary);
}

/* === HERO === */
.legal-hero {
    position: relative;
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 242, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(112, 0, 255, 0.08), transparent 55%);
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .legal-hero {
        padding: 96px 0 56px;
    }
}

.legal-title {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 12px;
    color: var(--text-primary);
}

.legal-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* === CONTENT === */
.legal-content {
    max-width: 760px;
    padding-top: 56px;
    padding-bottom: 96px;
}

.legal-lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .legal-lede {
        font-size: 20px;
    }
}

.legal-content section {
    margin-bottom: 48px;
}

.legal-content h2 {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    margin: 28px 0 10px;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 16px;
    text-wrap: pretty;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content ul li {
    position: relative;
    padding-left: 24px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-content a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--cyan);
}

/* === FOOTER CTA === */
.legal-footer-cta {
    margin-top: 64px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.06), rgba(112, 0, 255, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.legal-footer-cta p {
    margin: 0;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 3vw, 26px);
    color: var(--text-primary);
    line-height: 1.3;
}

/* === FOOTER ADJUSTMENTS === */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* Hide chatbot on legal pages — they don't need it */
.chatbot-fab,
.chatbot-panel {
    display: none !important;
}
