/* ============================================
   Legal Pages Styles
   ============================================ */

.legal-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(180deg, #0D1B2A 0%, #1B263B 100%);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(27, 38, 59, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.legal-container h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.legal-container section {
    margin-bottom: 2rem;
}

.legal-container h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    color: #4ADE80;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-container h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-container p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.legal-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.legal-container ul li {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.legal-container ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
}

.legal-container a {
    color: #4ADE80;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-container a:hover {
    color: #FF8C5A;
    text-decoration: underline;
}

.legal-container strong {
    color: #ffffff;
    font-weight: 700;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.cookie-table th {
    background: rgba(74, 222, 128, 0.15);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table th:first-child {
    border-radius: 8px 0 0 0;
}

.cookie-table th:last-child {
    border-radius: 0 8px 0 0;
}

.cookie-table td {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(13, 27, 42, 0.4);
}

.cookie-table tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.cookie-table tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Back Button */
.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
    text-align: center;
}

.legal-back .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #4ADE80;
    border-radius: 50px;
    color: #4ADE80;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-back .btn-secondary:hover {
    background: #4ADE80;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 15px 40px;
    }

    .legal-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .legal-container h1 {
        font-size: 1.8rem;
    }

    .legal-container h2 {
        font-size: 1.15rem;
    }

    .legal-container p,
    .legal-container ul li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 1.5rem 1rem;
    }

    .legal-container h1 {
        font-size: 1.5rem;
    }

    /* Stack table on very small screens */
    .cookie-table,
    .cookie-table thead,
    .cookie-table tbody,
    .cookie-table th,
    .cookie-table td,
    .cookie-table tr {
        display: block;
    }

    .cookie-table thead {
        display: none;
    }

    .cookie-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(74, 222, 128, 0.2);
        border-radius: 8px;
        overflow: hidden;
    }

    .cookie-table td {
        padding: 10px 12px;
        text-align: left;
        border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    }

    .cookie-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #4ADE80;
        display: block;
        margin-bottom: 4px;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .cookie-table tr:last-child td:first-child,
    .cookie-table tr:last-child td:last-child {
        border-radius: 0;
    }
}
