/**
 * Mortex Legal — Privacybeleid & Algemene Voorwaarden
 *
 * Gebruikt design tokens uit mortex-core.css
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */

.mortex-legal {
    padding: var(--mortex-space-4xl) 0 var(--mortex-space-5xl);
}

.mortex-legal__container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--mortex-gutter);
}

/* ==========================================================================
   Datum / update label
   ========================================================================== */

.mortex-legal__updated {
    font-family: var(--mortex-font-body);
    font-size: var(--mortex-fs-sm);
    font-weight: 400;
    color: var(--mortex-grey);
    letter-spacing: 0.02em;
    margin-bottom: var(--mortex-space-3xl);
    padding-bottom: var(--mortex-space-lg);
    border-bottom: 1px solid var(--mortex-cream);
}

/* ==========================================================================
   Headings
   ========================================================================== */

.mortex-legal h2 {
    font-family: var(--mortex-font-heading);
    font-size: var(--mortex-fs-xl);
    font-weight: 400;
    color: var(--mortex-black);
    margin: var(--mortex-space-3xl) 0 var(--mortex-space-lg);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.mortex-legal h2:first-of-type {
    margin-top: 0;
}

/* ==========================================================================
   Body tekst
   ========================================================================== */

.mortex-legal p {
    font-family: var(--mortex-font-body);
    font-size: var(--mortex-fs-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--mortex-charcoal);
    margin: 0 0 var(--mortex-space-md);
}

.mortex-legal strong {
    font-weight: 500;
    color: var(--mortex-dark);
}

/* ==========================================================================
   Lijsten
   ========================================================================== */

.mortex-legal ul,
.mortex-legal ol {
    font-family: var(--mortex-font-body);
    font-size: var(--mortex-fs-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--mortex-charcoal);
    margin: 0 0 var(--mortex-space-lg);
    padding-left: 1.5em;
}

.mortex-legal li {
    margin-bottom: var(--mortex-space-sm);
}

.mortex-legal li:last-child {
    margin-bottom: 0;
}

/* Geneste lijsten */
.mortex-legal li ul,
.mortex-legal li ol {
    margin-top: var(--mortex-space-sm);
    margin-bottom: var(--mortex-space-sm);
}

/* Ongeordende lijst: subtiel streepje */
.mortex-legal ul {
    list-style: none;
    padding-left: 0;
}

.mortex-legal ul > li {
    position: relative;
    padding-left: 1.4em;
}

.mortex-legal ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 12px;
    height: 1px;
    background: var(--mortex-gold);
}

/* Geneste ul binnen ol */
.mortex-legal ol ul > li {
    padding-left: 1.4em;
}

.mortex-legal ol ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 10px;
    height: 1px;
    background: var(--mortex-gold);
}

/* Geordende lijst */
.mortex-legal ol {
    list-style: none;
    padding-left: 0;
    counter-reset: legal-counter;
}

.mortex-legal ol > li {
    position: relative;
    padding-left: 2em;
    counter-increment: legal-counter;
}

.mortex-legal ol > li::before {
    content: counter(legal-counter) '.';
    position: absolute;
    left: 0;
    font-weight: 400;
    color: var(--mortex-gold);
    font-size: var(--mortex-fs-sm);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mortex-legal {
        padding: var(--mortex-space-3xl) 0 var(--mortex-space-4xl);
    }

    .mortex-legal h2 {
        font-size: var(--mortex-fs-lg);
        margin-top: var(--mortex-space-2xl);
    }
}
