/* ================================================================
   EEA Legal Page — Modern legal layout with sticky TOC
   ================================================================ */

.eea-legal {
    --eea-lg-navy:    #080872;
    --eea-lg-gold:    #C7A73E;
    --eea-lg-white:   #ffffff;
    --eea-lg-ink:     #1a1a2e;
    --eea-lg-mute:    #6b6b80;
    --eea-lg-accent:  #C7A73E;
    --eea-lg-primary: #080872;
    --eea-lg-ease:    cubic-bezier(.2, .8, .2, 1);

    position: relative;
    width: 100%;
    padding: 90px 32px;
    color: var(--eea-lg-ink);
    font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fafafe;
    overflow: hidden;
    isolation: isolate;
}

.eea-legal,
.eea-legal *,
.eea-legal *::before,
.eea-legal *::after {
    box-sizing: border-box;
}

.eea-legal p { margin: 0 0 16px; }
.eea-legal p:last-child { margin-bottom: 0; }

.eea-legal ul,
.eea-legal ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.eea-legal li { margin-bottom: 6px; }

.eea-legal a {
    color: var(--eea-lg-accent);
    text-decoration: none;
    transition: color .25s var(--eea-lg-ease);
}

.eea-legal a:hover { color: var(--eea-lg-primary); }

/* Full-width breakout */
.eea-legal--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.eea-legal__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.eea-legal__header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.eea-legal__eyebrow {
    display: inline-block;
    color: var(--eea-lg-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eea-legal__title {
    margin: 0 0 14px;
    color: var(--eea-lg-primary);
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.eea-legal__updated {
    color: var(--eea-lg-mute);
    font-size: 13.5px;
    letter-spacing: 1px;
    margin: 0 0 24px;
    text-transform: uppercase;
    font-weight: 600;
}

.eea-legal__intro {
    color: #3a3a55;
    font-size: 16px;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

/* ================================================================
   BODY — TOC + Content grid
   ================================================================ */
.eea-legal__body {
    display: block;
}

.eea-legal--has-toc .eea-legal__body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

/* TOC sidebar */
.eea-legal__toc {
    position: sticky;
    top: 32px;
    background: var(--eea-lg-white);
    border-radius: 12px;
    padding: 22px 22px;
    box-shadow: 0 12px 30px -8px rgba(8, 8, 114, 0.10);
    border: 1px solid rgba(8, 8, 114, 0.06);
}

.eea-legal__toc-title {
    margin: 0 0 14px;
    color: var(--eea-lg-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eea-legal__toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eea-legal__toc a {
    display: block;
    padding: 8px 12px;
    color: #3a3a55;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-left: 2px solid transparent;
    transition: all .25s var(--eea-lg-ease);
    text-decoration: none !important;
    border-radius: 0 6px 6px 0;
}

.eea-legal__toc a:hover {
    color: var(--eea-lg-accent);
    background: rgba(199, 167, 62, 0.06);
    border-left-color: var(--eea-lg-accent);
}

.eea-legal__toc a.is-active {
    color: var(--eea-lg-accent);
    border-left-color: var(--eea-lg-accent);
    background: rgba(199, 167, 62, 0.08);
    font-weight: 600;
}

/* ================================================================
   CONTENT
   ================================================================ */
.eea-legal__content {
    min-width: 0;
}

.eea-legal__section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(8, 8, 114, 0.08);
    scroll-margin-top: 100px;
}

.eea-legal__section:first-child { padding-top: 0; }
.eea-legal__section:last-of-type { border-bottom: none; }

.eea-legal__section-title {
    margin: 0 0 18px;
    color: var(--eea-lg-primary);
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    position: relative;
    padding-left: 18px;
}

.eea-legal__section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--eea-lg-accent);
    border-radius: 4px;
}

.eea-legal__section-body {
    color: #3a3a55;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.85;
}

.eea-legal__section-body strong,
.eea-legal__section-body b {
    color: var(--eea-lg-primary);
    font-weight: 700;
}

/* Contact note */
.eea-legal__contact-note {
    margin: 36px 0 0;
    padding: 22px 24px;
    background: rgba(199, 167, 62, 0.10);
    border-left: 3px solid var(--eea-lg-accent);
    border-radius: 0 10px 10px 0;
    color: var(--eea-lg-primary);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.eea-legal__top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--eea-lg-accent);
    color: var(--eea-lg-primary);
    border: 2px solid var(--eea-lg-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .35s var(--eea-lg-ease);
    z-index: 80;
    box-shadow: 0 10px 28px rgba(199, 167, 62, 0.35);
    appearance: none;
    -webkit-appearance: none;
}

.eea-legal__top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eea-legal__top:hover {
    background: var(--eea-lg-primary);
    color: var(--eea-lg-white);
    border-color: var(--eea-lg-primary);
    transform: translateY(-3px);
}

/* ================================================================
   ELEMENTOR / THEME GUARDS
   ================================================================ */
.elementor-page .eea-legal a,
.e-con .eea-legal a {
    text-decoration: none !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .eea-legal--has-toc .eea-legal__body {
        grid-template-columns: 200px 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .eea-legal {
        padding: 48px 20px;
    }
    .eea-legal__header {
        margin-bottom: 32px;
    }
    .eea-legal--has-toc .eea-legal__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .eea-legal__toc {
        position: relative;
        top: auto;
        padding: 18px 18px;
    }
    .eea-legal__section-title {
        font-size: 22px;
    }
    .eea-legal__top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}
