/* ==========================================================================
   GLOBAL BACKGROUND & ROOT SETTINGS
   ========================================================================== */
body {
    /* Matches your home page gradient perfectly so the transition feels premium */
    background: linear-gradient(to bottom, #000000 0%, #000000 25%, #161a22 50%, #161a22 100%);
    background-attachment: scroll;
    
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.legal-header {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px 0 20px;
    box-sizing: border-box;
}

.back-link {
    color: rgb(0, 157, 255);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* ==========================================================================
   DOCUMENT CONTAINER & LAYOUT
   ========================================================================== */
.legal-container {
    max-width: 800px;
    width: 100%;
    padding: 40px 20px 100px 20px;
    box-sizing: border-box;
    text-align: left; /* Left align for legal copy reading comfort */
}

.legal-container h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.last-updated {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 40px;
}

/* ==========================================================================
   LEGAL TEXT SECTIONS
   ========================================================================== */
.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.65; /* Adds excellent line separation for readability */
    color: #cbd5e1;   /* Off-white so it reads comfortably on dark backgrounds */
    margin: 0 0 15px 0;
}

.legal-section strong {
    color: rgb(0, 157, 255); /* Reuses your brand color to accent crucial data points */
}

/* ==========================================================================
   SHARED SIMPLE SITE FOOTER
   ========================================================================== */
.site-footer {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto; /* Dynamically locks the footer to the bottom of shorter pages */
}

.site-footer p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}