/* ===== EVINAR LEGAL PAGES — Redesigned ===== */

/* ─── Layout wrapper ───────────────────────────────── */
.legal-section {
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
}

.legal-placeholder {
    color: var(--muted, #59514b);
    font-size: 1rem;
    padding: 8px 0 24px;
    border-top: 1px solid var(--line, rgba(68, 90, 109, 0.12));
}

/* ─── Document card (Privacy / Terms / Cookies) ────── */
div.WordSection1,
.legal-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(95, 126, 153, 0.1);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(31, 49, 64, 0.07);
    padding: 52px 60px 60px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

    /* Subtle blue-grey accent bar on the left */
    div.WordSection1::before,
    .legal-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--blue-3, #6f8596) 0%, rgba(111, 133, 150, 0.12) 100%);
        border-radius: 28px 0 0 28px;
    }

    /* ─── Document title (Level1Heading used as title) ── */
    div.WordSection1 > p.Level1Heading:first-of-type {
        font-family: "Playfair Display", Georgia, serif;
        font-size: clamp(1.5rem, 2.4vw, 1.875rem);
        font-weight: 700;
        color: var(--text, #2f2f2f);
        letter-spacing: -0.025em;
        line-height: 1.18;
        margin: 0 0 10px;
        padding: 0;
        border: none;
    }

/* ─── Date / doc metadata ───────────────────────────  */
p.DocumentName {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent, #6f8596);
    text-transform: uppercase;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(68, 90, 109, 0.1);
}

/* ─── Section headings (Privacy / Terms generated HTML) ── */
.Level1Heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    letter-spacing: -0.015em;
    margin: 40px 0 14px;
    padding: 18px 20px;
    background: rgba(111, 133, 150, 0.06);
    border-left: 3px solid var(--blue-3, #6f8596);
    border-radius: 0 12px 12px 0;
    line-height: 1.3;
}

/* Smaller heading variant used as document title — override above */
div.WordSection1 h1,
.legal-card h1 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--text, #2f2f2f);
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.14;
    margin: 0 0 18px;
}

div.WordSection1 h2,
.legal-card h2 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--text, #2f2f2f);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(68, 90, 109, 0.1);
}

div.WordSection1 h3,
.legal-card h3 {
    font-family: "Inter", sans-serif;
    color: var(--blue-4, #4a5568);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 22px 0 8px;
}

/* h4 — used on Cookies page as section headings, styled like Level1Heading */
.legal-card h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    letter-spacing: -0.015em;
    margin: 28px 0 12px;
    padding: 16px 20px;
    background: rgba(111, 133, 150, 0.06);
    border-left: 3px solid var(--blue-3, #6f8596);
    border-radius: 0 12px 12px 0;
    line-height: 1.3;
}

/* Preglasimo morebitne inline stile (npr. font-family:Roboto, white background)
   v vrinjenih span elementih, da besedilo vizualno ostane usklajeno. */
div.WordSection1 span,
.legal-card span {
    font-family: inherit !important;
    background: transparent !important;
}

/* ─── Body text ─────────────────────────────────────── */
div.WordSection1 p,
p.MsoNormal,
.legal-card p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #425260;
    line-height: 1.78;
    margin: 0 0 12px;
}

    div.WordSection1 p b,
    p.MsoNormal b,
    .legal-card p b,
    .legal-card li b {
        font-weight: 700;
        color: var(--text, #2f2f2f);
    }

    /* Hyperlinks — match body text color, keep underline */
    div.WordSection1 a,
    .legal-card a,
    p.MsoNormal a {
        color: inherit;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.2s;
    }

        div.WordSection1 a:hover,
        .legal-card a:hover,
        p.MsoNormal a:hover {
            color: var(--blue-5, #31424f);
        }

/* ─── Numbered / indented levels ───────────────────── */
/* Level2Number (1.1, 2.1, ...) — brez sive vertikalne črte. */
.Level2Number {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

/* Level3Number ((a), (b), ...) in Level4Number ((i), (ii), ...)
   ohranita sivo vertikalno črto kot vizualni indikator gnezdenja. */
.Level3Number {
    margin-left: 44px;
    padding-left: 14px;
    border-left: 2px solid rgba(95, 126, 153, 0.1);
}

.Level4Number {
    margin-left: 64px;
    padding-left: 12px;
    border-left: 1px solid rgba(95, 126, 153, 0.08);
}

/* ─── Lists ─────────────────────────────────────────── */
div.WordSection1 ol,
div.WordSection1 ul,
.legal-card ol,
.legal-card ul {
    margin: 8px 0 14px 24px;
    padding: 0 0 0 20px;
}

div.WordSection1 li,
.legal-card li {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #425260;
    line-height: 1.75;
    margin-bottom: 6px;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 840px) {
    div.WordSection1,
    .legal-card {
        padding: 36px 28px 44px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    div.WordSection1,
    .legal-card {
        padding: 28px 20px 36px;
        border-radius: 16px;
    }

    .Level1Heading {
        font-size: 1.0625rem;
        padding: 14px 16px;
    }

    .legal-card h4 {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .Level2Number {
        margin-left: 0;
    }

    .Level3Number {
        margin-left: 24px;
    }

    .Level4Number {
        margin-left: 34px;
    }
}
