/* Legal Pages Styles */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #001122 0%, #003366 50%, #001122 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(102, 204, 255, 0.2);
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #66ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.legal-updated span {
    color: #66ccff;
    font-weight: 600;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 17, 34, 0.6);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(102, 204, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #66ccff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 204, 255, 0.3);
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.legal-section li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-section li strong {
    color: #66ccff;
    font-weight: 600;
}

.legal-section a {
    color: #66ccff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #00bfff;
    border-bottom-color: #00bfff;
}

.contact-details {
    background: rgba(102, 204, 255, 0.1);
    border: 1px solid rgba(102, 204, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong {
    color: #66ccff;
    font-size: 1.2rem;
}

.contact-details i {
    color: #66ccff;
    width: 20px;
}

.contact-details a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #66ccff;
}

/* Cookie Table */
.cookie-table {
    margin: 30px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 17, 34, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.cookie-table thead {
    background: rgba(102, 204, 255, 0.2);
}

.cookie-table th {
    padding: 15px;
    text-align: left;
    color: #66ccff;
    font-weight: 600;
    border-bottom: 2px solid rgba(102, 204, 255, 0.3);
}

.cookie-table td {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(102, 204, 255, 0.1);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background: rgba(102, 204, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-header h1 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .legal-section h2 {
        font-size: 1.6rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .contact-details {
        padding: 20px;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 25px 15px;
        margin: 0 15px;
    }

    .legal-section {
        margin-bottom: 40px;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
}

/* ===== CRITICAL RESPONSIVE FIXES - Prevent Crashes ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .legal-page,
    .legal-content,
    .legal-header,
    .legal-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .cookie-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .legal-content {
        padding: 1.5rem 1rem !important;
    }
}