/* static/css/legal.css */
/* Two-panel legal layout – sleek, modern, readable */

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
}

.legal-nav {
    position: sticky;
    top: 16px;
    align-self: start;
    background: #ffffff;
    border: 1px solid #e6ecf7;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 84, 166, 0.08);
}

.legal-nav-header {
    display: flex;
    /* ← was grid */
    flex-direction: column;
    /* stack logo then title */
    align-items: center;
    /* center both */
    text-align: center;
    gap: 8px;
    margin-bottom: 12px;
}


.legal-nav-header img {
    height: 44px;
    /* a touch bigger for clarity */
    width: auto;
    display: block;
}


.legal-title {
    margin: 0;
    font-size: 1.15rem;
    color: #003f7f;
    line-height: 1.2;
}


.legal-menu {
    display: grid;
    gap: 8px;
    margin: 8px 0 12px;
}

.legal-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: #f2f7ff;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    color: #003f7f;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.legal-link:hover {
    background: #e6f2ff;
    transform: translateY(-1px);
}

.legal-link.active {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 86, 179, .18);
}

.legal-meta {
    font-size: .9rem;
    color: #51607a;
}

.legal-ccpa {
    display: inline-block;
    margin-top: 6px;
    color: #0056b3;
    text-decoration: none;
}

.legal-ccpa:hover {
    color: #003f7f;
    text-decoration: underline;
}

.legal-panel {
    background: linear-gradient(135deg, #f0f4fa, #e1e8f7);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 84, 166, 0.12);
    outline: none;
}

.legal-view {
    display: none;
}

.legal-view.active {
    display: block;
}

.doc-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    color: #003f7f;
}

.doc-subtitle {
    margin: 0 0 16px;
    color: #223050;
}

.legal-panel h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #003f7f;
    font-size: 1.15rem;
}

.legal-panel p,
.legal-panel li {
    color: #1a2439;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-panel ul {
    padding-left: 18px;
}

@media (max-width: 960px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        order: 1;
    }

    .legal-panel {
        order: 2;
        padding: 20px;
    }
}

/* --- Legal page: ensure content never overlays the header dropdowns --- */
.legal-wrapper,
.legal-nav,
.legal-panel {
    position: relative;
    z-index: 1;
    overflow: visible;
}