/* ============================================================
   shared-legal.css
   Gemeinsame Styles für alle Legal-Seiten:
   AGB, Widerrufsrecht, Datenschutz, Impressum
   ============================================================ */

/* ── Content Container ──────────────────────────────────────── */
.legal-content {
    --display: flex;
    --flex-direction: column;
    --flex-wrap-mobile: wrap;
    --padding-top: 0em;
    --padding-bottom: 7em;
}

/* ── Part-Header (Abschnittsüberschriften) ──────────────────── */
.legal-part-header {
    margin-top: 4em;
    margin-bottom: 0.75em;
    padding-bottom: 1em;
    border-bottom: 2px solid var(--e-global-color-d79e5ec, #00cea8);
}

.legal-part-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--e-global-color-d79e5ec, #00cea8);
    margin-bottom: 0.3em;
}

.legal-part-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0;
}

/* ── Inhalts-Cards (Section) ────────────────────────────────── */
.legal-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2em 2.25em;
    margin-top: 1.5em;
    transition: border-color 0.25s, background 0.25s;
}

.legal-section:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 206, 168, 0.2);
}

.legal-section-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--e-global-color-d79e5ec, #00cea8);
    margin: 0 0 1em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.legal-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: currentColor;
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-section p {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height, 1.75);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.85em 0;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--e-global-color-d79e5ec, #00cea8);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ── Adress-Block ───────────────────────────────────────────── */
.legal-address {
    font-style: normal;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 206, 168, 0.06);
    border: 1px solid rgba(0, 206, 168, 0.15);
    border-radius: 10px;
    padding: 1.25em 1.5em;
    display: inline-block;
    margin: 0;
}

.legal-address a {
    color: var(--e-global-color-d79e5ec, #00cea8);
    text-decoration: none;
}

/* ── Intro-Textblock (WR, DS) ──────────────────────────────── */
.legal-intro {
    margin-top: 1.5em;
    padding: 1em 1.5em;
    background: rgba(0, 206, 168, 0.05);
    border-left: 3px solid rgba(0, 206, 168, 0.4);
    border-radius: 0 10px 10px 0;
}

.legal-intro p {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

/* ── Legal-Note (Hinweis am Seitenende) ─────────────────────── */
.legal-note {
    margin-top: 3em;
    padding: 1.5em 2em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    border-left: 3px solid rgba(0, 206, 168, 0.4);
}

.legal-note p {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.5em 0;
}

.legal-note p:last-child {
    margin-bottom: 0;
}

.legal-note__date {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4) !important;
}

.legal-note a {
    color: rgba(0, 206, 168, 0.7);
    text-decoration: none;
}

.legal-note a:hover {
    color: #00cea8;
    text-decoration: underline;
}

/* Einfacher legal-note als einzeiliger Hinweis (DS) */
.legal-note--simple {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 1em !important;
    padding: 0;
    background: none;
    border: none;
    border-left: none;
    border-radius: 0;
}

/* ── Modifikatoren ──────────────────────────────────────────── */
.legal-part-header--spaced {
    margin-top: 5em;
}

/* ── Responsive: Mobile ─────────────────────────────────────── */
@media (max-width: 767px) {
    .legal-section {
        padding: 1.5em 1.25em;
    }

    .legal-part-header {
        margin-top: 2.5em;
    }
}