/* ================================
   LEGAL PAGES STYLING
   Dark Theme mit 3D-Effekten
   ================================ */

.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 119, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-link:hover {
    background: rgba(0, 119, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}

.legal-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(0, 119, 255, 0.3);
    letter-spacing: -1px;
}

.legal-subtitle {
    font-size: 18px;
    color: #999;
    font-weight: 400;
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-section {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.legal-section:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 119, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 119, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 i {
    color: #0077ff;
    font-size: 22px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 15px;
}

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

.legal-section a {
    color: #0077ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #4da6ff;
    text-shadow: 0 0 10px rgba(0, 119, 255, 0.5);
}

/* Info Box */
.info-box {
    background: rgba(0, 119, 255, 0.05);
    border-left: 4px solid #0077ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.info-box p {
    margin: 0;
}

.info-box strong {
    color: #0077ff;
    font-weight: 600;
}

/* Source Note */
.source-note {
    font-size: 14px;
    color: #777;
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-footer .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
}

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

.legal-section ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #ccc;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0077ff;
    font-weight: bold;
}

.legal-section ol {
    counter-reset: legal-counter;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-section ol li {
    counter-increment: legal-counter;
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: #ccc;
    line-height: 1.6;
}

.legal-section ol li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    color: #0077ff;
    font-weight: bold;
    font-size: 18px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(255, 119, 0, 0.1) 100%);
    border: 1px solid rgba(0, 119, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 0 30px rgba(0, 119, 255, 0.1);
}

.highlight-box h3 {
    color: #0077ff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight-box p {
    margin-bottom: 10px;
}

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

/* Table of Contents */
.table-of-contents {
    background: rgba(0, 119, 255, 0.05);
    border: 1px solid rgba(0, 119, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents h3 i {
    color: #0077ff;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents ul li {
    padding: 10px 0;
    padding-left: 0;
}

.table-of-contents ul li::before {
    display: none;
}

.table-of-contents a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents a:hover {
    color: #0077ff;
    transform: translateX(5px);
}

.table-of-contents a::before {
    content: '→';
    color: #0077ff;
    font-weight: bold;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #ffc107;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box h4 i {
    font-size: 20px;
}

.warning-box p {
    color: #e6e6e6;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-title {
        font-size: 32px;
    }
    
    .legal-subtitle {
        font-size: 16px;
    }
    
    .legal-section {
        padding: 25px 20px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section p {
        font-size: 15px;
    }
    
    .info-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 28px;
    }
    
    .legal-section {
        padding: 20px 15px;
    }
    
    .legal-section h2 {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
