body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #212529;
    
    background: radial-gradient(circle at center, #b2ebf2, #ffcdd2, #fff59d);
    background-size: 20% 80%;
    background-position: center center;
    animation: truePulse 3s ease-in-out infinite;
}

/* --- NEW CODE for the hover effect wrapper --- */
.hub-wrapper {
    position: relative; /* This is crucial for positioning the arms */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Your original container styles */
.container {
    text-align: center;
    padding: 40px; /* Increased padding slightly for more space */
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative; /* Stacks it on top */
    z-index: 10;
    cursor: pointer;
    width: 300px; /* Gave it a fixed width for consistency */
}

.logo {
    max-width: 180px;
    margin-bottom: 25px;
}
h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #343a40;
}
p {
    font-size: 1.1em;
    color: #6c757d;
    margin: 0;
    letter-spacing: 1px;
}

@keyframes truePulse {
    0% { background-size: 100% 100%; }
    50% { background-size: 300% 300%; }
    100% { background-size: 100% 100%; }
}

/* --- NEW CODE for the menu arms --- */
.hub-menu a {
    position: absolute; /* Lifts the links out of the normal flow */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Hides them in the center */
    background: #343a40; /* Dark button style */
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    opacity: 0; /* Makes them invisible by default */
    pointer-events: none; /* Can't be clicked when hidden */
    transition: all 0.3s ease;
    z-index: 5; /* Puts them behind the main card */
    white-space: nowrap;
}

/* On hover of the wrapper, the arms appear */
.hub-wrapper:hover .hub-menu a {
    opacity: 1;
    pointer-events: auto;
}

/* Move each arm to its final position on hover */
.hub-wrapper:hover .menu-item-1 { transform: translate(-50%, -220%); } /* Top */
.hub-wrapper:hover .menu-item-2 { transform: translate(100%, -50%); }  /* Right */
.hub-wrapper:hover .menu-item-3 { transform: translate(-200%, -50%); }  /* Left */

/* --- STYLES FOR LEGAL PAGES --- */

/* These rules will ONLY apply when the body tag has class="legal-page" */
body.legal-page {
    display: block; /* Override flexbox */
    height: auto; /* Allow the page to grow and scroll */
    background: #f8f9fa; /* Simple light grey background */
    animation: none; /* Disable the pulse animation */
}

.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 50px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

/* Target the headings specifically inside the legal container */
.legal-container h1,
.legal-container h2 {
    color: #212529;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-container h1 {
    font-size: 2.5em;
}

.legal-container h2 {
    font-size: 1.8em;
    margin-top: 2em;
}

.legal-container a {
    color: #007bff;
    text-decoration: none;
}

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

/* --- Modal Background Watermark --- */

.modal-content {
    position: relative; /* Required for the watermark positioning */
    overflow: hidden; /* Keeps the watermark inside the rounded corners */
}

/* This creates the watermark effect */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Your logo file */
    background-image: url('hedfloicon.jpeg');
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%; /* Adjust size as needed */
    
    opacity: 0.05; /* Makes it very faint */
    z-index: 0; /* Places it in the background */
}

/* This ensures the form content sits on top of the watermark */
.modal-body-content {
    position: relative;
    z-index: 1;
}