/* Legal Pages Styles */
.legal-page {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="0.5" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.3" fill="%23000" opacity="0.015"/><circle cx="10" cy="90" r="0.4" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(91, 127, 204, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.page-title {
    color: #4a90e2;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
    position: relative;
    padding-bottom: 25px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #5B7FCC, #4c6fb8, #FFC107);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(91, 127, 204, 0.3);
}

.last-updated {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 40px 0;
    font-style: italic;
}

.legal-section {
    margin-bottom: 30px;
    padding: 25px;
    background: transparent;
    border-radius: 12px;
    border: 1px solid rgba(91, 127, 204, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.legal-section:hover {
    background: transparent;
    border-color: rgba(91, 127, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.legal-section h2 {
    color: #4a90e2;
    font-size: 18px;
    font-weight: 600;
    margin: -5px 0 20px 0;
    position: relative;
    padding-left: 25px;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, #5B7FCC, #4c6fb8, #FFC107);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(91, 127, 204, 0.3);
}

.legal-section h3 {
    color: #374151;
    font-size: 20px;
    font-weight: 650;
    margin: 25px 0 15px 0;
    position: relative;
    padding-left: 15px;
}

.legal-section h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: #5B7FCC;
    font-size: 16px;
}

.legal-section p {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px 0;
}

.legal-section ul {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px 0;
    padding-left: 28px;
}

.legal-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.legal-section li::marker {
    color: #5B7FCC;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #5B7FCC, #FFC107);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(91, 127, 204, 0.3);
}

.legal-section strong {
    color: #1f2937;
    font-weight: 700;
}

.legal-section a {
    color: #5B7FCC;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.legal-section a:hover {
    color: #4c6fb8;
    border-bottom-color: #5B7FCC;
}

.legal-section a:focus {
    outline: 2px solid rgba(91, 127, 204, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 0;
    }
    
    .legal-content {
        margin: 0 20px;
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .page-title::after {
        width: 60px;
        height: 2px;
    }
    
    .legal-section {
        margin-bottom: 25px;
        padding: 20px;
    }
    
    .legal-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-left: 15px;
    }
    
    .legal-section h2::before {
        width: 3px;
        height: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
        margin: 20px 0 12px 0;
    }
    
    .legal-section p,
    .legal-section ul {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .legal-section ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        margin: 0 15px;
        padding: 25px 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .legal-section p,
    .legal-section ul {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        background: white;
        color: black;
    }
    
    .legal-content {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .page-title,
    .legal-section h2,
    .legal-section h3,
    .legal-section strong {
        color: black;
    }
    
    .legal-section p,
    .legal-section ul {
        color: black;
    }
    
    .legal-section a {
        color: black;
        text-decoration: underline;
    }
}