/* ============================================================
   legal_content.css  –  Blog / Legal content pages
   ============================================================ */

/* ── Layout ────────────────────────────────────────────────── */
.lp {
    background: var(--off-white);
    padding: 88px 50px;
    min-height: 70vh;
}

.lp__inner {
    max-width: var(--content-max-width);;
    margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────── */
.lp__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-lightbold);
    color: var(--color-black);
    margin: 0 0 10px;
    line-height: 1.15;
}

.lp__updated {
    font-size: var(--font-size-md);
    color: var(--color-light-gray);
    margin: 0 0 14px;
}

.lp__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray);
    max-width: 600px;
    line-height: var(--line-height-body);
    margin: 0;
}

.lp__header {
    padding-bottom: 36px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.lp__header-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}

.lp__header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.lp__header-image {
    flex: 0 0 300px;
    max-width: 320px;
    margin-top: 4px;
}

.lp__header-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    object-fit: cover;
}

/* ── Two-column layout ────────────────────────────────────── */
.lp__layout {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

/* ── TOC sidebar ──────────────────────────────────────────── */
.lp__toc {
    flex: 0 0 210px;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.lp__toc-heading {
    font-size: var(--font-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-light-gray);
    margin: 0 0 14px;
}

.lp__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 10px;
}

.lp__toc-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    font-size: var(--base-font-size);
    color: var(--color-gray);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    line-height: var(--line-height-body);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lp__toc-link:hover,
.lp__toc-link.is-active {
    color: var(--green);
    border-left-color: var(--green);
    background: white;
}

/* ── Main content ──────────────────────────────────────────── */
.lp__content {
    flex: 1;
    min-width: 0;
}

.lp__section {
    margin-bottom: 44px;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: 100px;
}

.lp__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lp__section-heading {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-lightbold);
    color: var(--color-black);
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 3px solid var(--green);
    line-height: 1.3;
}

/* ── Section body typography ──────────────────────────────── */
.lp__section-body p,
.lp__section-body li {
    font-size: var(--font-size-lg);
    color: var(--color-gray);
    line-height: var(--line-height-relaxed);
}

.lp__section-body p,
.lp__section-body ul,
.lp__section-body ol {
    margin: 0 0 14px;
}

.lp__section-body p:last-child {
    margin-bottom: 0;
}

.lp__section-body ul,
.lp__section-body ol {
    padding-left: 22px;
}

.lp__section-body li {
    margin-bottom: 6px;
}

.lp__section-body strong {
    color: var(--color-black);
    font-weight: var(--font-lightbold);
}

.lp__section-body a {
    color: var(--green);
    text-underline-offset: 3px;
}

.lp__section-body a:hover {
    color: var(--green-dark);
}

.lp__section-body h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    margin: 20px 0 8px;
}

.lp__section-body blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    background: var(--light-green);
    border-left: 3px solid var(--green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray);
    line-height: var(--line-height-relaxed);
}

/* ── Unordered Lists (Square bullets with green marker) ──── */
.lp__section-body ul {
    list-style: square;
    padding-left: 24px;
}

.lp__section-body ul li::marker {
    color: var(--green);
}

/* ── Section image ────────────────────────────────────────── */
.lp__section-image {
    margin-top: 28px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.lp__section-image img {
    height: auto;
    max-width: 100%;
}



/* ── Table styles ──────────────────────────────────────────── */
.lp__table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: var(--font-size-md);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.lp__table thead {
    background: var(--color-bg-section);
}

.lp__table th,
.lp__table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.lp__table th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
}

.lp__table td {
    color: var(--color-body);
}

.lp__table tbody tr:nth-child(even) {
    background: var(--off-white);
}

/* ── Related FAQs link ────────────────────────────────────── */
.lp__related-faqs {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.lp__related-faqs a {
    display: inline-block;
    font-weight: var(--font-weight-semibold);
    color: var(--green);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    transition: background 0.15s ease, color 0.15s ease;
}

.lp__related-faqs a:hover {
    background: var(--green);
    color: white;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lp__header-row {
        flex-direction: column;
        gap: 18px;
    }

    .lp__header-image {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    .lp__layout {
        flex-direction: column;
        gap: 32px;
    }

    .lp {
        padding: 88px 24px;
    }

    .lp__toc {
        position: static;
        flex: none;
        width: 100%;
        max-height: none;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        padding: 16px 18px;
        background: var(--white);
    }

    .lp__section-heading {
        font-size: var(--font-size-xl);
    }

    .lp__section-image {
        margin-top: 20px;
        margin-bottom: 6px;
    }

    .lp__table {
        font-size: var(--font-size-sm);
    }

    .lp__table th,
    .lp__table td {
        padding: 6px 10px;
    }

    .lp__related-faqs a {
        display: block;
        text-align: center;
    }
}