/* ✅ Global page body styles */
body {
    background: #000;
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* ✅ Form styles (optional if forms are used on legal pages later) */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 12px;
    border: 1px solid white;
    border-radius: 8px;
    background: #222;
    color: white;
}

button {
    padding: 12px;
    background-color: white;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #00ff99;
    color: #000;
}

/* ✅ Universal link style override */
a {
    color: #00ff99;
    text-decoration: underline;
    text-align: center;
    display: inline-block;
    margin-top: 20px;
}

/* ✅ Optional: heading styles for consistency */
h2 {
    text-align: center;
    font-size: 2em;
    margin-top: 40px;
}

/* 🔹 Fullscreen video background setup */
#video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔹 Floating content container */
.legal-container {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 0 16px white;
    animation: whitePulse 2s infinite alternate ease-in-out;
    position: relative;
    z-index: 1;
}

/* 🔙 Back arrow top-left */
.legal-back-button-fixed {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.legal-back-arrow {
    animation: arrowWhitePulse 1.4s infinite;
    filter: drop-shadow(0 0 6px white);
    cursor: pointer;
}

/* 🔠 Page title */
.legal-title {
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 2.5rem;
    color: white;
}

/* 🔁 Pulsing border animation */
@keyframes whitePulse {
    0% {
        box-shadow: 0 0 6px white, 0 0 12px white;
    }

    50% {
        box-shadow: 0 0 14px white, 0 0 28px white;
    }

    100% {
        box-shadow: 0 0 6px white, 0 0 12px white;
    }
}

/* 🔁 Arrow animation */
@keyframes arrowWhitePulse {
    0% {
        fill: rgba(255, 255, 255, 0.7);
        transform: scale(1);
    }

    50% {
        fill: rgba(255, 255, 255, 1);
        transform: scale(1.12);
    }

    100% {
        fill: rgba(255, 255, 255, 0.7);
        transform: scale(1);
    }
}

/* 🔗 Styled links */
.legal-container a {
    color: #00ff99;
    text-decoration: underline;
}

/* 📜 Clean UL list */
.legal-container ul {
    list-style: none;
    padding-left: 0;
}

/* 🔽 Enhanced Mobile Layout (≤ 480px) */
@media (max-width: 480px) {

    /* Make body scroll-friendly and safe for notched devices */
    html,
    body {
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        padding-bottom: 10vh;
    }

    /* 🧱 Reduce container size and padding for small screens */
    .legal-container {
        width: 92%;
        padding: 20px 16px;
        margin: 30px auto;
        font-size: 0.95rem;
        box-shadow: 0 0 10px white;
        margin-bottom: 60px;

    }

    /* 🔠 Title size reduction */
    .legal-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    /* 🔙 Back arrow position tweak */
    .legal-back-button-fixed {
        top: 20px;
        left: 20px;
    }

    .legal-back-arrow {
        width: 36px;
        height: 36px;
        max-width: 100%;
    }

    /* 📄 Heading and paragraph spacing */
    h2 {
        font-size: 1.4rem;
        margin-top: 30px;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    ul {
        font-size: 0.95rem;
        padding-left: 16px;
    }

    /* ✅ Buttons become more tappable */
    button {
        font-size: 1rem;
        padding: 12px 14px;
        max-width: 100%;
        width: 100%;
    }

    /* 📧 Email links wrap cleanly */
    a {
        font-size: 1rem;
        word-break: break-word;
    }

    /* 🧾 Form alignment for narrow screens */
    form {
        gap: 12px;
    }

    #result {
        font-size: 0.95rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .legal-title {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 1.8rem;
    }

    .legal-container {
        padding: 30px 20px;
        margin: 40px auto;
    }
}