/* Legal Pages Specific Styles */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(74, 144, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 226, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-move 30s linear infinite;
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.legal-subtitle {
    color: rgba(232, 232, 240, 0.7);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Legal Content Layout */
.legal-content {
    padding: 60px 0 100px;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Legal Navigation Sidebar */
.legal-nav {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.legal-nav h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.legal-nav ul {
    list-style: none;
}

.legal-nav ul li {
    margin-bottom: 0.8rem;
}

.legal-nav ul li a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.7rem 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-nav ul li a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.legal-nav ul li a.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Legal Text Content */
.legal-text {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient);
    border-radius: 3px;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section ul li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-section ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Contact Info Box */
.contact-info {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info p strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* SLA Table */
.sla-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.sla-table th {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.sla-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-gray);
}

.sla-table tr:last-child td {
    border-bottom: none;
}

.sla-table tr:hover td {
    background: rgba(74, 144, 226, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        margin-bottom: 2rem;
    }

    .legal-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

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

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

    .legal-text {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

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

    .sla-table {
        font-size: 0.9rem;
    }

    .sla-table th,
    .sla-table td {
        padding: 0.7rem 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeIn 0.6s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .legal-nav,
    .footer {
        display: none;
    }

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

    .legal-text {
        box-shadow: none;
        padding: 0;
    }

    .legal-header {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .legal-title {
        -webkit-text-fill-color: black;
        color: black;
    }
}