/* ========== AGB SEITE - PREMIUM DESIGN ========== */

:root {
    --primary: #6ab04c;
    --dark: #4a7c59;
    --light: #8cc152;
    --bg-light: #f8f6f0;
    --bg-light-2: #e8f0e4;
    --text-dark: #2d3d1f;
    --text-muted: #6c757d;
    --white: #ffffff;
    --accent-blue: #3b82f6;
}

/* ========== GLOBAL ========== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-light-2) 100%);
    color: var(--text-dark);
    line-height: 1.8;
}

/* ========== HERO SECTION ========== */
.legal-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6ab04c 0%, #4a7c59 50%, #2d5a3d 100%);
    padding: 5rem 0;
    margin-bottom: 4rem;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(162, 188, 139, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    color: white;
    font-weight: 900;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-size: 3.2rem;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease-out;
    margin-bottom: 1rem;
}

.legal-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.9s ease-out 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== LEGAL CONTAINER ========== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ========== LAST UPDATED ========== */
.last-updated {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.last-updated i {
    color: var(--primary);
}

/* ========== TABLE OF CONTENTS ========== */
.toc {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--bg-light-2);
}

.toc h3 {
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.toc h3 i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.toc li {
    transition: all 0.3s ease;
}

.toc li:hover {
    transform: translateX(8px);
}

.toc a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: var(--bg-light);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(106, 176, 76, 0.15);
}

.toc i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toc a:hover i {
    transform: translateX(3px);
}

/* ========== LEGAL SECTIONS ========== */
.legal-section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 176, 76, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.legal-section h2 {
    font-weight: 900;
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light-2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.legal-section h2 i {
    color: var(--primary);
    font-size: 1.8rem;
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.legal-section h3 {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-section p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.legal-section li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    line-height: 1.6;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.legal-section li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 0 8px rgba(106, 176, 76, 0.1);
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    background: linear-gradient(135deg, rgba(106, 176, 76, 0.08) 0%, rgba(74, 124, 89, 0.08) 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.highlight-box strong {
    color: var(--primary);
    font-weight: 800;
}

.highlight-box i {
    color: var(--primary);
    font-weight: 700;
}

/* ========== BUTTONS ========== */
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(106, 176, 76, 0.3);
    margin-top: 3rem;
    text-align: center;
}

.legal-back-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(106, 176, 76, 0.45);
    color: white;
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.2rem;
    }

    .legal-hero .lead {
        font-size: 1rem;
    }

    .legal-hero {
        padding: 3rem 0;
    }

    .legal-container {
        padding: 0 1rem 3rem;
    }

    .legal-section {
        padding: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h2 i {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .toc {
        padding: 1.75rem;
    }

    .toc ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toc a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.6rem;
    }

    .legal-hero .lead {
        font-size: 0.9rem;
    }

    .legal-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .legal-section h2 {
        font-size: 1.1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-section h2 i {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .last-updated {
        font-size: 0.8rem;
        padding: 0.75rem 1.5rem;
    }

    .highlight-box {
        padding: 1.25rem;
        font-size: 0.9rem;
    }

    .legal-section li {
        padding-left: 2rem;
        font-size: 0.9rem;
    }
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}
