/* =========================================================
   Vibrafy — Legal & Privacy Styles
   ========================================================= */

.legal-body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(rgba(168, 85, 247, 0.16) 1.2px, transparent 1.2px),
        radial-gradient(rgba(6, 182, 212, 0.1) 1.2px, transparent 1.2px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.65;
}

/* ─── Hero Section ────────────────────────────────────────── */
.legal-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ede9fe;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.legal-hero-dot {
    width: 6px;
    height: 6px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4;
}

.legal-hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.legal-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 2.2rem auto;
}

/* ─── Quick Pills Nav ─────────────────────────────────────── */
.legal-pills-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(19, 18, 43, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    max-width: 860px;
    margin: 0 auto;
}

.legal-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.legal-pill-btn:hover {
    color: #ede9fe;
    background: rgba(255, 255, 255, 0.06);
}

.legal-pill-btn.active {
    background: var(--gradient-host);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* ─── Main Container & Grid Layout ────────────────────────── */
.legal-main-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.legal-sidebar {
    position: relative;
}

.sidebar-sticky-box {
    position: sticky;
    top: 6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cfc8ef;
    margin: 0;
}

.sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-link {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border-left-color: #06b6d4;
    font-weight: 700;
}

.sidebar-compliance-box {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.compliance-badge-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #ffffff;
}

.sidebar-compliance-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.sidebar-ext-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-ext-link:hover {
    color: #ede9fe;
    text-decoration: underline;
}

/* ─── Document Content ────────────────────────────────────── */
.legal-document-body {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.legal-section-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-meta-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
}

.legal-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #a855f7;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-meta-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.meta-date {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.legal-section-block h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ede9fe;
    margin: 2rem 0 0.8rem 0;
}

.legal-section-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.legal-section-block ul {
    margin: 0 0 1.5rem 1.4rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.legal-section-block li {
    margin-bottom: 0.6rem;
}

.legal-section-block li strong {
    color: #ffffff;
}

.legal-inline-link {
    color: #06b6d4;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-inline-link:hover {
    color: #ede9fe;
}

/* ─── Callout Boxes ───────────────────────────────────────── */
.callout-box {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.callout-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.callout-content strong {
    display: block;
    font-size: 0.96rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.callout-content p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.callout-highlight {
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid #a855f7;
}

.callout-compliance {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid #06b6d4;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

/* ─── Data & Comparison Tables ────────────────────────────── */
.legal-table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.legal-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.legal-data-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #ede9fe;
    font-weight: 800;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-data-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: top;
}

.legal-data-table tr:last-child td {
    border-bottom: none;
}

/* ─── Contact Cards Grid ──────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

.contact-btn {
    display: inline-block;
    align-self: flex-start;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #ede9fe;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: #a855f7;
    color: #ffffff;
}

.contact-highlight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.contact-email-link {
    color: #06b6d4;
    font-weight: 800;
    text-decoration: none;
}

.contact-email-link:hover {
    text-decoration: underline;
}

.operator-signature {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.footer-compliance-mini {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cfc8ef;
    margin-top: 0.6rem;
}

/* ─── Responsive Media Queries ────────────────────────────── */
@media (max-width: 992px) {
    .legal-main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-sidebar {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .legal-section-block {
        padding: 1.6rem 1.2rem;
    }

    .legal-pills-nav {
        border-radius: var(--radius-md);
    }
}
