/* ========================================
   LEGAL PAGES STYLES (Impressum & Datenschutz)
   KüchenMontagePro - Kitchen Installation Service
   Colors: Dark Blue (#1E3A5F) + Orange (#F97316)
   ======================================== */

/* ========================================
   CONTAINER
   ======================================== */

.fe-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

:root {
    --legal-primary: #F97316;
    --legal-secondary: #1E3A5F;
    --legal-bg: #FAFBFC;
    --legal-card-bg: #FFFFFF;
    --legal-border: #E5E7EB;
    --legal-text: #374151;
    --legal-text-light: #6B7280;
    --legal-highlight-bg: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    --legal-highlight-info-bg: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    --legal-radius: 16px;
    --legal-radius-sm: 10px;
    --legal-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    --legal-shadow-hover: 0 8px 30px rgba(30, 58, 95, 0.12);
}

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

.legal-hero {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--legal-bg) 100%);
    overflow: hidden;
}

.legal-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.legal-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.legal-hero__shape--1 {
    top: -80px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
}

.legal-hero__shape--2 {
    bottom: -60px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
}

.legal-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 0.875rem;
}

.legal-hero__breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--legal-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-hero__breadcrumb-link:hover {
    color: var(--legal-primary);
}

.legal-hero__breadcrumb-sep {
    opacity: 0.4;
}

.legal-hero__breadcrumb-current {
    color: var(--legal-secondary);
    font-weight: 600;
}

.legal-hero__content {
    max-width: 700px;
}

.legal-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--legal-secondary);
    margin: 0 0 16px;
    line-height: 1.2;
}

.legal-hero__desc {
    font-size: 1.125rem;
    color: var(--legal-text-light);
    margin: 0;
    line-height: 1.7;
}

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

.legal-main {
    padding: 60px 0 100px;
    background: var(--legal-bg);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   SECTIONS
   ======================================== */

.legal-section {
    margin-bottom: 48px;
}

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

.legal-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--legal-secondary);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--legal-border);
}

.legal-section__title img {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ========================================
   CARDS
   ======================================== */

.legal-card {
    background: var(--legal-card-bg);
    border-radius: var(--legal-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--legal-shadow);
    border: 1px solid var(--legal-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.legal-card:hover {
    box-shadow: var(--legal-shadow-hover);
    transform: translateY(-2px);
}

.legal-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--legal-secondary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-card__title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--legal-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-card__content {
    color: var(--legal-text);
    line-height: 1.75;
}

.legal-card__content p {
    margin: 0 0 16px;
}

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

.legal-card__content strong {
    color: var(--legal-secondary);
}

/* ========================================
   LISTS
   ======================================== */

.legal-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--legal-border);
}

.legal-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--legal-primary);
    border-radius: 50%;
}

.legal-list--check li::before {
    content: '✓';
    width: auto;
    height: auto;
    background: none;
    color: var(--legal-primary);
    font-weight: 700;
    font-size: 0.875rem;
}

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

.legal-list--numbered li {
    counter-increment: legal-counter;
    padding-left: 36px;
}

.legal-list--numbered li::before {
    content: counter(legal-counter);
    width: 24px;
    height: 24px;
    background: var(--legal-secondary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   CONTACT INFO
   ======================================== */

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

.legal-contact__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--legal-border);
}

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

.legal-contact__label {
    font-weight: 600;
    color: var(--legal-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal-contact__value {
    color: var(--legal-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.legal-contact__value:hover {
    color: var(--legal-primary);
}

/* ========================================
   HIGHLIGHT BOXES
   ======================================== */

.legal-highlight {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--legal-highlight-bg);
    border-radius: var(--legal-radius);
    border-left: 4px solid var(--legal-primary);
    margin-bottom: 20px;
}

.legal-highlight--info {
    background: var(--legal-highlight-info-bg);
    border-left-color: var(--legal-secondary);
}

.legal-highlight__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.legal-highlight__content {
    flex: 1;
}

.legal-highlight__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--legal-secondary);
    margin: 0 0 8px;
}

.legal-highlight__content p {
    margin: 0 0 12px;
    color: var(--legal-text);
    line-height: 1.7;
}

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

/* ========================================
   TABLE OF CONTENTS (Datenschutz)
   ======================================== */

.legal-toc {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.legal-toc li {
    padding: 12px 16px;
    background: var(--legal-bg);
    border-radius: var(--legal-radius-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.legal-toc li:hover {
    background: #F0F4F8;
    transform: translateX(4px);
}

.legal-toc .legal-link {
    display: block;
    color: var(--legal-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ========================================
   LINKS
   ======================================== */

.legal-link {
    color: var(--legal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.legal-link:hover {
    color: var(--legal-secondary);
    border-bottom-color: var(--legal-secondary);
}

/* ========================================
   NOTES
   ======================================== */

.legal-note {
    font-size: 0.875rem;
    color: var(--legal-text-light);
    font-style: italic;
    padding: 12px 16px;
    background: var(--legal-bg);
    border-radius: var(--legal-radius-sm);
    margin-top: 16px;
    border-left: 3px solid var(--legal-border);
}

/* ========================================
   FOOTER NOTE
   ======================================== */

.legal-footer-note {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, var(--legal-secondary) 0%, #2D4A6B 100%);
    border-radius: var(--legal-radius);
    text-align: center;
}

.legal-footer-note p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

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

.legal-footer-note strong {
    color: #fff;
}

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

@media (max-width: 1200px) {
    .fe-container {
        padding: 0 20px;
    }

    .legal-hero {
        padding: 130px 0 50px;
    }

    .legal-hero__title {
        font-size: 2.5rem;
    }

    .legal-card {
        padding: 24px;
    }

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

/* ========================================
   RESPONSIVE - 1024px
   ======================================== */

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

    .legal-hero__title {
        font-size: 2.25rem;
    }

    .legal-hero__desc {
        font-size: 1rem;
    }

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

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

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

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

@media (max-width: 768px) {
    .fe-container {
        padding: 0 16px;
    }

    .legal-hero {
        padding: 110px 0 40px;
    }

    .legal-hero__breadcrumb {
        margin-bottom: 24px;
        font-size: 0.8125rem;
    }

    .legal-hero__title {
        font-size: 2rem;
    }

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

    .legal-section {
        margin-bottom: 36px;
    }

    .legal-section__title {
        font-size: 1.125rem;
        gap: 10px;
        padding-bottom: 12px;
    }

    .legal-card {
        padding: 20px;
        border-radius: 12px;
    }

    .legal-card__title {
        font-size: 1rem;
    }

    .legal-highlight {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

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

    .legal-contact__item {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .legal-contact__label {
        font-size: 0.8125rem;
    }
}

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

@media (max-width: 480px) {
    .fe-container {
        padding: 0 14px;
    }

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

    .legal-hero__breadcrumb {
        flex-wrap: wrap;
        gap: 8px;
    }

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

    .legal-hero__desc {
        font-size: 0.9375rem;
    }

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

    .legal-section {
        margin-bottom: 28px;
    }

    .legal-section__title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .legal-card {
        padding: 16px;
    }

    .legal-card__title {
        font-size: 0.9375rem;
    }

    .legal-card__content {
        font-size: 0.9375rem;
    }

    .legal-highlight {
        padding: 16px;
    }

    .legal-highlight__title {
        font-size: 0.9375rem;
    }

    .legal-highlight__content p {
        font-size: 0.875rem;
    }

    .legal-contact__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .legal-contact__label {
        font-size: 0.75rem;
    }

    .legal-list li {
        padding: 8px 0 8px 24px;
        font-size: 0.9375rem;
    }

    .legal-list--numbered li {
        padding-left: 32px;
    }

    .legal-list--numbered li::before {
        width: 20px;
        height: 20px;
        font-size: 0.6875rem;
    }

    .legal-toc li {
        padding: 10px 12px;
    }

    .legal-toc .legal-link {
        font-size: 0.875rem;
    }

    .legal-footer-note {
        padding: 20px 16px;
    }

    .legal-footer-note p {
        font-size: 0.875rem;
    }
}

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

@media (max-width: 375px) {
    .fe-container {
        padding: 0 12px;
    }

    .legal-hero {
        padding: 95px 0 28px;
    }

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

    .legal-hero__desc {
        font-size: 0.875rem;
    }

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

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

    .legal-section__title {
        font-size: 0.9375rem;
        gap: 8px;
    }

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

    .legal-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .legal-card__title {
        font-size: 0.875rem;
        margin-bottom: 12px;
    }

    .legal-card__title::before {
        width: 3px;
        height: 16px;
    }

    .legal-card__content {
        font-size: 0.875rem;
        line-height: 1.65;
    }

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

    .legal-highlight__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

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

    .legal-highlight__title {
        font-size: 0.875rem;
    }

    .legal-highlight__content p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .legal-list li {
        padding: 6px 0 6px 20px;
        font-size: 0.875rem;
    }

    .legal-list li::before {
        width: 6px;
        height: 6px;
    }

    .legal-list--check li::before {
        font-size: 0.75rem;
    }

    .legal-list--numbered li {
        padding-left: 28px;
    }

    .legal-list--numbered li::before {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }

    .legal-note {
        font-size: 0.8125rem;
        padding: 10px 12px;
    }

    .legal-footer-note {
        padding: 16px 14px;
        margin-top: 24px;
    }

    .legal-footer-note p {
        font-size: 0.8125rem;
    }
}
