/* ============================================
   LEGAL PAGE STYLES
   Terms, Privacy & Legal Information
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.legal-hero {
    display: flex;
    height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    align-self: stretch;
    background: var(--ebf-1-f-7, #EBF1F7);
    padding-bottom: 48px;
}

.legal-hero__title {
    color: #000;
    font-family: "Funnel Display", var(--font-display), sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    margin: 0;
    text-align: center;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.legal-wrapper {
    display: flex;
    width: 100%;
    max-width: 1062px;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.legal-nav {
    display: inline-flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    border-bottom: 1px solid var(--Grey-500, #5B5D6C);
}

.legal-nav__item {
    display: flex;
    padding: 20px 20px 17px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Grey-500, #5B5D6C);
    font-family: "Funnel Sans", var(--font-sans), sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.054px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.legal-nav__item:hover {
    color: var(--Neopharm-dark-blue, #005395);
}

.legal-nav__item--active {
    color: var(--Neopharm-dark-blue, #005395);
    font-size: 20px;
    font-weight: 500;
    line-height: 150%;
    border-bottom: 2px solid var(--Neopharm-dark-blue, #005395);
}

/* ============================================
   CONTENT
   ============================================ */
.legal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.legal-content__title {
    color: var(--Neopharm-dark-blue, #005395);
    font-family: "Funnel Display", var(--font-display), sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    text-transform: capitalize;
    margin: 0;
}

.legal-content__body {
    color: #000;
    font-family: "Funnel Sans", var(--font-sans), sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.054px;
}

.legal-content__body p {
    margin: 0 0 1em;
}

.legal-content__body h2 {
    color: var(--Neopharm-dark-blue, #005395);
    font-family: "Funnel Sans", var(--font-sans), sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    margin: 1.5em 0 0.5em;
}

.legal-content__body h3,
.legal-content__body h4 {
    color: var(--Neopharm-dark-blue, #005395);
    font-family: "Funnel Display", var(--font-display), sans-serif;
    font-weight: 500;
    margin: 1.5em 0 0.5em;
}

.legal-content__body h3 {
    font-size: 24px;
    line-height: 130%;
}

.legal-content__body h4 {
    font-size: 20px;
    line-height: 130%;
}

.legal-content__body ul,
.legal-content__body ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.legal-content__body li {
    margin-bottom: 0.5em;
}

.legal-content__body a {
    color: var(--Neopharm-dark-blue, #005395);
    text-decoration: underline;
}

.legal-content__body a:hover {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .legal-hero {
        height: 240px;
        padding-bottom: 32px;
    }

    .legal-hero__title {
        font-size: 32px;
        padding: 0 20px;
    }

    .legal-wrapper {
        gap: 40px;
        margin: 24px auto 60px;
    }

    .legal-nav {
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }

    .legal-nav__item {
        padding: 12px 16px;
        font-size: 16px;
    }

    .legal-nav__item--active {
        font-size: 16px;
    }

    .legal-content__title {
        font-size: 26px;
    }

    .legal-content__body {
        font-size: 16px;
    }
}
