/* ==========================================================================
   Legal Pages Styles (Impressum & Datenschutz)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --clr-dark: #19181D;
    --clr-dark-card: #252329;
    --clr-dark-elevated: #2A282F;
    --clr-gold: #DFB975;
    --clr-text-light: #F7F7F8;
    --clr-text-muted-light: #A9A9A9;
}

/* --- Header Override for Legal Pages --- */
.page-legal .hdr {
    background: var(--clr-dark) !important;
}

.page-legal .hdr__main {
    background: var(--clr-dark) !important;
}

.page-legal .hdr__topbar {
    background: var(--clr-dark-elevated) !important;
}

.page-legal .hdr__topbar-item {
    color: var(--clr-text-muted-light) !important;
}

.page-legal .hdr__topbar-item--link:hover {
    color: var(--clr-gold) !important;
}

.page-legal .hdr__topbar-item img {
    filter: brightness(0) invert(1) opacity(0.6);
}

/* Header scrolled state override */
.page-legal .hdr--scrolled .hdr__logo-name,
.page-legal .hdr--scrolled .hdr__logo-tag {
    color: var(--clr-text-light) !important;
}

.page-legal .hdr--scrolled .hdr__nav-link {
    color: var(--clr-text-light) !important;
}

.page-legal .hdr--scrolled .hdr__nav-link:hover {
    color: var(--clr-gold) !important;
}

.page-legal .hdr__nav-link--accent img {
    filter: brightness(0) invert(1);
}

.page-legal .hdr__nav-link--accent:hover img {
    filter: brightness(0) saturate(100%) invert(76%) sepia(45%) saturate(500%) hue-rotate(10deg) brightness(95%) contrast(90%);
}

.page-legal .hdr__burger-line {
    background: var(--clr-text-light) !important;
}

/* --- Legal Hero Section --- */
.leg-hero {
    background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark-elevated) 100%);
    padding: 140px 0 60px;
    position: relative;
}

.leg-hero__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.leg-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--clr-text-muted-light);
    margin-bottom: 24px;
}

.leg-hero__breadcrumb a {
    color: var(--clr-text-muted-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.leg-hero__breadcrumb a:hover {
    color: var(--clr-gold);
}

.leg-hero__breadcrumb-sep {
    opacity: 0.5;
}

.leg-hero__content {
    text-align: center;
}

.leg-hero__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--clr-text-light);
    margin-bottom: 16px;
    line-height: 1.2;
}

.leg-hero__subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Legal Main Content --- */
.leg-main {
    background: #f8f8f8;
    padding: 60px 0 80px;
}

.leg-main__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.leg-content {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- Legal Sections --- */
.leg-section {
    padding: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.leg-section:last-child {
    border-bottom: none;
}

.leg-section__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clr-gold);
    display: inline-block;
}

/* --- Legal Cards --- */
.leg-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.leg-card:last-child {
    margin-bottom: 0;
}

.leg-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 16px 20px;
    background: #f0f0f0;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
}

.leg-card__body {
    padding: 20px;
    color: #444;
    line-height: 1.7;
}

.leg-card__body p {
    margin: 0 0 12px;
}

.leg-card__body p:last-child {
    margin-bottom: 0;
}

/* --- Legal Contact Info --- */
.leg-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leg-contact__item {
    display: flex;
    gap: 12px;
}

.leg-contact__label {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 100px;
    flex-shrink: 0;
}

.leg-contact__value {
    color: #444;
    text-decoration: none;
}

a.leg-contact__value {
    color: var(--clr-gold);
    transition: color 0.2s ease;
}

a.leg-contact__value:hover {
    color: #c9a355;
}

/* --- Legal Lists --- */
.leg-list {
    margin: 0;
    padding-left: 20px;
    color: #444;
}

.leg-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.leg-list li:last-child {
    margin-bottom: 0;
}

.leg-list--check {
    list-style: none;
    padding-left: 0;
}

.leg-list--check li {
    position: relative;
    padding-left: 28px;
}

.leg-list--check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clr-gold);
    font-weight: 700;
}

.leg-list--numbered {
    list-style: decimal;
    padding-left: 24px;
}

/* --- Legal Table of Contents --- */
.leg-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leg-toc li {
    margin-bottom: 12px;
}

.leg-toc li:last-child {
    margin-bottom: 0;
}

.leg-toc a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leg-toc a::before {
    content: "→";
    color: var(--clr-gold);
}

.leg-toc a:hover {
    color: var(--clr-gold);
}

/* --- Legal Highlight Box --- */
.leg-highlight {
    background: linear-gradient(135deg, rgba(223, 185, 117, 0.15) 0%, rgba(223, 185, 117, 0.05) 100%);
    border: 1px solid rgba(223, 185, 117, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.leg-highlight__title {
    font-size: 1rem;
    font-weight: 700;
    color: #b8860b;
    margin: 0 0 8px;
}

.leg-highlight p {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.7;
}

.leg-highlight p:last-child {
    margin-bottom: 0;
}

.leg-highlight--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.leg-highlight--info .leg-highlight__title {
    color: #2563eb;
}

/* --- Legal Links --- */
.leg-link {
    color: var(--clr-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.leg-link:hover {
    color: #c9a355;
    text-decoration: underline;
}

/* --- Legal Notes --- */
.leg-note {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-top: 12px;
}

/* --- Legal Footer Note --- */
.leg-footer-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.leg-footer-note p {
    margin: 0 0 4px;
}

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

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1200px) {
    .leg-hero {
        padding: 130px 0 50px;
    }
}

@media (max-width: 1024px) {
    .leg-hero {
        padding: 120px 0 50px;
    }

    .leg-main {
        padding: 50px 0 60px;
    }
}

@media (max-width: 768px) {
    .leg-hero {
        padding: 100px 0 40px;
    }

    .leg-hero__title {
        font-size: 1.75rem;
    }

    .leg-hero__subtitle {
        font-size: 1rem;
    }

    .leg-main {
        padding: 40px 0 50px;
    }

    .leg-section {
        padding: 24px;
    }

    .leg-section__title {
        font-size: 1.25rem;
    }

    .leg-card__body {
        padding: 16px;
    }

    .leg-highlight {
        padding: 20px;
    }

    .leg-contact__item {
        flex-direction: column;
        gap: 4px;
    }

    .leg-contact__label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .leg-hero {
        padding: 90px 0 32px;
    }

    .leg-hero__container {
        padding: 0 16px;
    }

    .leg-hero__title {
        font-size: 1.5rem;
    }

    .leg-main__container {
        padding: 0 16px;
    }

    .leg-section {
        padding: 20px 16px;
    }

    .leg-card__title {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }

    .leg-card__body {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 375px) {
    .leg-hero {
        padding: 85px 0 28px;
    }

    .leg-hero__title {
        font-size: 1.375rem;
    }

    .leg-hero__subtitle {
        font-size: 0.9375rem;
    }

    .leg-section {
        padding: 16px 14px;
    }

    .leg-section__title {
        font-size: 1.125rem;
    }
}
