/* =====================================================
   LEGAL PAGES STYLES - WienMaler
   Green color scheme: #2d7a4e, #1a4d2e, #3a8f5f
   Shared styles for Impressum and Datenschutz
   ===================================================== */

/* Container */
.legal-hero__container,
.legal-main__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   LEGAL HERO SECTION
   ===================================================== */

.legal-hero {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4e 50%, #3a8f5f 100%);
    overflow: hidden;
}

.legal-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.legal-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}

.legal-hero__shape--1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.legal-hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
}

/* Breadcrumb */
.legal-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legal-hero__breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.legal-hero__breadcrumb-link:hover {
    color: #fff;
}

.legal-hero__breadcrumb-sep {
    width: 10px;
    height: 10px;
    opacity: 0.4;
    filter: brightness(0) invert(1);
}

.legal-hero__breadcrumb-current {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Hero Content */
.legal-hero__content {
    max-width: 600px;
}

.legal-hero__title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
}

.legal-hero__desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* =====================================================
   LEGAL MAIN CONTENT
   ===================================================== */

.legal-main {
    background: #f8f9fa;
    padding: 60px 0 80px;
}

.legal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Sections */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
}

.legal-section__title img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: invert(35%) sepia(30%) saturate(800%) hue-rotate(100deg) brightness(95%);
}

/* Cards */
.legal-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

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

.legal-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #2d7a4e;
    margin: 0 0 12px;
}

.legal-card__content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 12px;
}

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

/* Lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

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

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #2d7a4e;
    border-radius: 50%;
}

.legal-list--check li::before {
    content: "✓";
    width: auto;
    height: auto;
    background: none;
    color: #2d7a4e;
    font-weight: 700;
    font-size: 14px;
    top: 0;
}

.legal-list--numbered {
    counter-reset: list-counter;
}

.legal-list--numbered li {
    counter-increment: list-counter;
}

.legal-list--numbered li::before {
    content: counter(list-counter) ".";
    width: auto;
    height: auto;
    background: none;
    color: #2d7a4e;
    font-weight: 600;
    font-size: 15px;
    top: 0;
}

/* Highlight Boxes */
.legal-highlight {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, #e8f4ec 0%, #d4ead9 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border-left: 4px solid #2d7a4e;
}

.legal-highlight--info {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-left-color: #3b82f6;
}

.legal-highlight__icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-highlight__icon img {
    width: 24px;
    height: 24px;
    filter: invert(35%) sepia(30%) saturate(800%) hue-rotate(100deg) brightness(95%);
}

.legal-highlight--info .legal-highlight__icon img {
    filter: invert(40%) sepia(90%) saturate(500%) hue-rotate(200deg);
}

.legal-highlight__content {
    flex: 1;
}

.legal-highlight__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.legal-highlight__content p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 8px;
}

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

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

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

.legal-contact__label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 100px;
    flex-shrink: 0;
}

.legal-contact__value {
    font-size: 15px;
    color: #1a1a2e;
    text-decoration: none;
}

a.legal-contact__value {
    color: #2d7a4e;
    transition: color 0.2s;
}

a.legal-contact__value:hover {
    color: #1a4d2e;
}

/* Links */
.legal-link {
    color: #2d7a4e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #1a4d2e;
    text-decoration: underline;
}

/* Notes */
.legal-note {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 12px;
}

/* Table of Contents */
.legal-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.legal-toc li {
    padding: 0;
}

.legal-toc li::before {
    display: none;
}

.legal-toc .legal-link {
    display: block;
    padding: 10px 16px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.legal-toc .legal-link:hover {
    background: #e8f4ec;
    text-decoration: none;
}

/* Footer Note */
.legal-footer-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.legal-footer-note p {
    font-size: 14px;
    color: #888;
    margin: 0 0 4px;
}

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

/* =====================================================
   RESPONSIVE - 1200px
   ===================================================== */

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

    .legal-hero__title {
        font-size: 36px;
    }
}

/* =====================================================
   RESPONSIVE - 768px
   ===================================================== */

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

    .legal-hero__title {
        font-size: 30px;
    }

    .legal-hero__desc {
        font-size: 15px;
    }

    .legal-main {
        padding: 40px 0 60px;
    }

    .legal-content {
        padding: 28px;
        border-radius: 16px;
    }

    .legal-section__title {
        font-size: 19px;
    }

    .legal-highlight {
        flex-direction: column;
        gap: 12px;
    }

    .legal-highlight__icon {
        width: 40px;
        height: 40px;
    }

    .legal-highlight__icon img {
        width: 20px;
        height: 20px;
    }

    .legal-toc {
        grid-template-columns: 1fr;
    }

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

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

/* =====================================================
   RESPONSIVE - 480px
   ===================================================== */

@media (max-width: 480px) {
    .legal-hero {
        padding: 110px 0 35px;
    }

    .legal-hero__breadcrumb {
        margin-bottom: 20px;
    }

    .legal-hero__title {
        font-size: 26px;
    }

    .legal-hero__desc {
        font-size: 14px;
    }

    .legal-main {
        padding: 30px 0 50px;
    }

    .legal-content {
        padding: 20px;
        border-radius: 14px;
    }

    .legal-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .legal-section__title {
        font-size: 17px;
        gap: 10px;
    }

    .legal-section__title img {
        width: 18px;
        height: 18px;
    }

    .legal-card {
        padding: 18px;
        border-radius: 10px;
    }

    .legal-card__title {
        font-size: 15px;
    }

    .legal-card__content p,
    .legal-list li {
        font-size: 14px;
    }

    .legal-highlight {
        padding: 18px;
    }

    .legal-highlight__title {
        font-size: 15px;
    }

    .legal-highlight__content p {
        font-size: 14px;
    }

    .legal-toc .legal-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* =====================================================
   RESPONSIVE - 375px
   ===================================================== */

@media (max-width: 375px) {
    .legal-hero__container,
    .legal-main__container {
        padding: 0 16px;
    }

    .legal-hero {
        padding: 100px 0 30px;
    }

    .legal-hero__title {
        font-size: 22px;
    }

    .legal-content {
        padding: 16px;
        border-radius: 12px;
    }

    .legal-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .legal-section__title {
        font-size: 16px;
    }

    .legal-card {
        padding: 14px;
    }

    .legal-highlight {
        padding: 14px;
    }
}
