/* ==========================================================================
   Legal Pages (Privacy Policy / Terms of Use) — Evocate
   Matches the site's design language: Source Sans Pro, #113149, #138ED0
   ========================================================================== */

/* ── Hero ── */
.legal-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
    background: linear-gradient(rgba(17,49,73,.80), rgba(17,49,73,.80)),
                url('/_images/slider/boardroomMeeting.webp') center 25%/cover no-repeat;
    overflow: hidden;
}

.legal-hero__inner {
    padding: 60px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-hero__breadcrumb {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.02em;
}

.legal-hero__breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-hero__breadcrumb a:hover {
    color: #138ED0;
}

.legal-hero__breadcrumb span {
    margin: 0 6px;
    opacity: 0.5;
}

.legal-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.legal-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 8px;
}

.legal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(19,142,208,0.25);
    border: 1px solid rgba(19,142,208,0.5);
    color: #7dd3fc;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.legal-hero__updated {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
}

/* Wave divider */
.legal-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ── Page wrapper ── */
.legal-page {
    background: #f8f9fb;
    padding: 0 0 80px;
}

/* ── Two-column layout ── */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 48px;
}

/* ── Sidebar ── */
.legal-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* TOC block */
.legal-toc {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(17,49,73,0.07);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.legal-toc__header {
    background: #113149;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-toc__header-icon {
    color: #138ED0;
    font-size: 16px;
}

.legal-toc__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Source Sans Pro', sans-serif;
}

.legal-toc__body {
    padding: 16px 20px;
}

/* Generated TOC nav */
.legal-toc__body #TableOfContents {
    font-size: 13.5px;
}

.legal-toc__body #TableOfContents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-toc__body #TableOfContents > ul > li {
    border-bottom: 1px solid #f1f5f9;
    padding: 2px 0;
}

.legal-toc__body #TableOfContents > ul > li:last-child {
    border-bottom: none;
}

.legal-toc__body #TableOfContents a {
    display: block;
    padding: 7px 6px 7px 10px;
    color: #2c3e50;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1.4;
}

.legal-toc__body #TableOfContents a:hover {
    color: #138ED0;
    border-left-color: #138ED0;
    background: rgba(19,142,208,0.05);
}

/* Sub-level TOC items */
.legal-toc__body #TableOfContents ul ul {
    padding-left: 14px;
}

.legal-toc__body #TableOfContents ul ul a {
    font-size: 12.5px;
    color: #6b7280;
    padding: 5px 6px 5px 8px;
    border-left-width: 2px;
}

.legal-toc__body #TableOfContents ul ul a:hover {
    color: #138ED0;
    border-left-color: #138ED0;
}

/* Active TOC item (set via JS scroll spy) */
.legal-toc__body #TableOfContents a.toc-active {
    color: #138ED0;
    border-left-color: #138ED0;
    background: rgba(19,142,208,0.06);
    font-weight: 600;
}

/* Sidebar contact card */
.legal-contact-card {
    background: linear-gradient(135deg, #113149 0%, #1a4a6b 100%);
    border-radius: 10px;
    padding: 24px 20px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(17,49,73,0.15);
}

.legal-contact-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
}

.legal-contact-card__text {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 16px;
    line-height: 1.5;
}

.legal-contact-card__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.legal-contact-card__item i {
    color: #138ED0;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.legal-contact-card__item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-contact-card__item a:hover {
    color: #138ED0;
}

/* Related links in sidebar */
.legal-related {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(17,49,73,0.05);
}

.legal-related__title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 14px;
    font-family: 'Source Sans Pro', sans-serif;
}

.legal-related__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fb;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #e2e8f0;
}

.legal-related__link + .legal-related__link {
    margin-top: 8px;
}

.legal-related__link i {
    color: #138ED0;
    font-size: 16px;
    flex-shrink: 0;
}

.legal-related__link:hover {
    background: rgba(19,142,208,0.06);
    color: #138ED0;
    border-color: #138ED0;
}

/* ── Main Content Area ── */
.legal-content-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(17,49,73,0.07);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.legal-content-header {
    padding: 32px 40px 28px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

.legal-content-header__title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-content-header__title i {
    color: #138ED0;
}

.legal-content-header__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(19,142,208,0.08);
    border: 1px solid rgba(19,142,208,0.25);
    color: #138ED0;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* The actual markdown content */
.legal-content {
    padding: 32px 40px 48px;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

/* Hide the duplicate h1 from markdown (shown in hero instead) */
.legal-content h1:first-child {
    display: none;
}

/* Paragraph after hidden h1 that contains "Last updated" */
.legal-content > p:first-of-type strong:first-child {
    /* Let it show naturally — it's the "Last updated" line */
}

/* Section anchors — used by TOC links */
.legal-content h2,
.legal-content h3 {
    scroll-margin-top: 100px;
}

/* H2 — major sections */
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #113149;
    margin: 48px 0 16px;
    padding: 16px 16px 16px 20px;
    background: #f8f9fb;
    border-left: 4px solid #138ED0;
    border-radius: 0 6px 6px 0;
    line-height: 1.3;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.legal-content h2:first-of-type {
    margin-top: 8px;
}

/* H3 — sub-sections */
.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 28px 0 10px;
    padding-left: 14px;
    border-left: 3px solid #e2e8f0;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Paragraphs */
.legal-content p {
    margin: 0 0 16px;
    color: #4b5563;
}

/* Lists */
.legal-content ul,
.legal-content ol {
    margin: 8px 0 20px 0;
    padding-left: 24px;
}

.legal-content ul li {
    list-style: none;
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: #4b5563;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #138ED0;
    border-radius: 50%;
}

.legal-content ol li {
    margin-bottom: 8px;
    color: #4b5563;
    padding-left: 4px;
}

/* Strong / bold text */
.legal-content strong {
    font-weight: 700;
    color: #1e293b;
}

/* Code / monospace (for technical references) */
.legal-content code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 16px;
    color: #0f766e;
}

/* Links */
.legal-content a {
    color: #138ED0;
    text-decoration: none;
    border-bottom: 1px solid rgba(19,142,208,0.3);
    transition: border-color 0.2s, color 0.2s;
}

.legal-content a:hover {
    color: #0e72a8;
    border-bottom-color: #138ED0;
}

/* Blockquote / highlighted notes */
.legal-content blockquote {
    background: rgba(19,142,208,0.06);
    border-left: 4px solid #138ED0;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
    color: #2c3e50;
    font-style: normal;
}

.legal-content blockquote p {
    margin: 0;
    color: #2c3e50;
}

/* Last updated line — style the bold intro paragraph */
.legal-content > p:first-of-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Contact section inside legal content (section 11 / 13) */
.legal-content h2:last-of-type ~ p,
.legal-content h2:last-of-type ~ ul {
    /* No special override needed — natural flow looks fine */
}

/* ── Section divider ── */
.legal-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 40px 0;
}

/* ── CTA Section ── */
.legal-cta {
    background: #113149;
    padding: 60px 0;
    margin-top: 0;
}

.legal-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.legal-cta__content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    font-family: 'Source Sans Pro', sans-serif;
}

.legal-cta__content p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 500px;
}

.legal-cta__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.legal-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'Source Sans Pro', sans-serif;
}

.legal-cta__btn--primary {
    background: #138ED0;
    color: #fff;
    border: 2px solid #138ED0;
}

.legal-cta__btn--primary:hover {
    background: #0e72a8;
    border-color: #0e72a8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(19,142,208,0.35);
}

.legal-cta__btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}

.legal-cta__btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 32px;
    }

    .legal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .legal-toc {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .legal-hero__title {
        font-size: 28px;
    }

    .legal-hero__inner {
        padding: 40px 0 0;
    }

    .legal-hero__meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .legal-sidebar {
        grid-template-columns: 1fr;
    }

    .legal-content-header {
        padding: 20px 24px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .legal-content {
        padding: 24px 24px 36px;
        font-size: 15px;
    }

    .legal-content h2 {
        font-size: 17px;
        padding: 12px 12px 12px 16px;
    }

    .legal-cta__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .legal-cta__actions {
        justify-content: center;
    }

    .legal-cta__content h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .legal-content-header {
        padding: 16px 20px 14px;
    }

    .legal-content {
        padding: 20px 20px 32px;
    }

    .legal-hero__title {
        font-size: 24px;
    }
}
