/**
 * EBA Legal Page — modern wrapper for legal documents.
 * Brand: gold #d4a24c, charcoal #0f172a, ivory #fafaf7.
 */

.eba-wrapper.eba-lp {
    background: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
}

/* Safety-net readable defaults — beat any legacy widget style values that
   were saved with the older dark-hero defaults. If saved values would make
   text invisible on the light hero, these fallbacks keep everything readable
   until admin edits or resets the widget style. */
.eba-wrapper.eba-lp.eba-lp .eba-lp__hero { background: #efe9dc; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__title { color: #0f1c2e !important; opacity: 1 !important; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__meta { color: #4a5573 !important; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__cta { background: #0f1c2e; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__cta h3 { color: #f7f4ed !important; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__cta p { color: #d1d5db !important; }
.eba-wrapper.eba-lp.eba-lp .eba-lp__cta .eba-lp__btn { background: #c99a54 !important; color: #0f1c2e !important; }
.eba-wrapper.eba-lp .eba-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eba-wrapper.eba-lp .eba-container--narrow { max-width: 920px; }

/* ===== HERO ===== */
.eba-wrapper.eba-lp .eba-lp__hero {
    background: linear-gradient(180deg, #fafaf7 0%, #fff 100%);
    padding: 72px 0 48px;
    border-bottom: 1px solid #eee9df;
    text-align: center;
}
.eba-wrapper.eba-lp .eba-lp__eyebrow {
    display: inline-block;
    background: rgba(212, 162, 76, 0.12);
    color: #b58834;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.eba-wrapper.eba-lp .eba-lp__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: #0f172a !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.eba-wrapper.eba-lp .eba-lp__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.eba-wrapper.eba-lp .eba-lp__meta svg { color: #d4a24c; }

/* ===== BODY LAYOUT ===== */
.eba-wrapper.eba-lp .eba-lp__body { padding: 56px 0 72px; }
.eba-wrapper.eba-lp .eba-lp__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

/* ===== STICKY TOC ===== */
.eba-wrapper.eba-lp .eba-lp__toc {
    position: sticky;
    top: 24px;
    padding: 22px 20px;
    background: #fafaf7;
    border: 1px solid #eee9df;
    border-radius: 12px;
}
.eba-wrapper.eba-lp .eba-lp__toc strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee9df;
}
.eba-wrapper.eba-lp .eba-lp__toc ol {
    list-style: none;
    counter-reset: tocnum;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eba-wrapper.eba-lp .eba-lp__toc li { counter-increment: tocnum; }
.eba-wrapper.eba-lp .eba-lp__toc a {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #475569 !important;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}
.eba-wrapper.eba-lp .eba-lp__toc a::before {
    content: counter(tocnum, decimal-leading-zero) ".";
    color: #d4a24c;
    font-weight: 700;
    margin-right: 6px;
    font-size: 11px;
}
.eba-wrapper.eba-lp .eba-lp__toc a:hover {
    background: #fff;
    color: #0f172a !important;
    border-left-color: #d4a24c;
}
.eba-wrapper.eba-lp .eba-lp__toc a.is-active {
    background: #fff;
    color: #d4a24c !important;
    font-weight: 600;
    border-left-color: #d4a24c;
}

/* ===== PROSE ===== */
.eba-wrapper.eba-lp .eba-lp__prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}
.eba-wrapper.eba-lp .eba-lp__prose h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 1.625rem !important;
    color: #0f172a !important;
    margin: 2em 0 0.6em !important;
    padding-top: 6px;
    scroll-margin-top: 24px;
}
.eba-wrapper.eba-lp .eba-lp__prose h2:first-child { margin-top: 0 !important; }
.eba-wrapper.eba-lp .eba-lp__prose h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    color: #0f172a !important;
    margin: 1.5em 0 0.4em !important;
}
.eba-wrapper.eba-lp .eba-lp__prose p { margin: 0 0 1.1em; }
.eba-wrapper.eba-lp .eba-lp__prose ul,
.eba-wrapper.eba-lp .eba-lp__prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.eba-wrapper.eba-lp .eba-lp__prose li { margin-bottom: 0.5em; }
.eba-wrapper.eba-lp .eba-lp__prose li::marker { color: #d4a24c; }
.eba-wrapper.eba-lp .eba-lp__prose a {
    color: #d4a24c !important;
    text-decoration: underline;
    text-decoration-color: rgba(212, 162, 76, 0.4);
    text-underline-offset: 3px;
}
.eba-wrapper.eba-lp .eba-lp__prose a:hover { text-decoration-color: #d4a24c; }
.eba-wrapper.eba-lp .eba-lp__prose strong { color: #0f172a; }
.eba-wrapper.eba-lp .eba-lp__prose blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-left: 4px solid #d4a24c;
    background: #fafaf7;
    border-radius: 0 10px 10px 0;
    color: #475569;
    font-style: italic;
}

/* ===== CTA ===== */
.eba-wrapper.eba-lp .eba-lp__cta {
    background: linear-gradient(180deg, #fafaf7 0%, #fff 100%);
    border-top: 1px solid #eee9df;
    padding: 56px 0 72px;
    text-align: center;
}
.eba-wrapper.eba-lp .eba-lp__cta h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 1.75rem !important;
    color: #0f172a !important;
    margin: 0 0 10px !important;
}
.eba-wrapper.eba-lp .eba-lp__cta p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 22px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.eba-wrapper.eba-lp .eba-lp__btn,
.eba-wrapper.eba-lp a.eba-lp__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 26px !important;
    background: linear-gradient(135deg, #d4a24c, #e0b96b) !important;
    background-image: linear-gradient(135deg, #d4a24c, #e0b96b) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.15s;
    box-shadow: 0 4px 14px rgba(212, 162, 76, 0.32);
}
.eba-wrapper.eba-lp .eba-lp__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212, 162, 76, 0.42); color: #fff !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .eba-wrapper.eba-lp .eba-lp__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .eba-wrapper.eba-lp .eba-lp__toc {
        position: static;
        order: -1;
    }
}
@media (max-width: 600px) {
    .eba-wrapper.eba-lp .eba-lp__hero { padding: 48px 0 32px; }
    .eba-wrapper.eba-lp .eba-lp__body { padding: 32px 0 48px; }
    .eba-wrapper.eba-lp .eba-container { padding: 0 16px; }
    .eba-wrapper.eba-lp .eba-lp__prose h2 { font-size: 1.375rem !important; margin-top: 1.4em !important; }
    .eba-wrapper.eba-lp .eba-lp__prose h3 { font-size: 1.125rem !important; }
}
