/* Base */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #0a1628, #1a2f4a);
    color: white;
    display: flex;
    flex-direction: column;
}

/* Header */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    background: rgba(10, 22, 40, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.legal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b19dff;
}

.back-link {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
}

/* PDF Viewer */
.pdf-wrapper {
    flex: 1;
    width: 100%;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #0b1220;
}

/* Floating Download Button */
.download-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #7c4dff;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 9999;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(124, 77, 255, 0.65);
}

/* Mobile */
@media (max-width: 768px) {
    .legal-header {
        padding: 1rem 1.2rem;
    }

    .legal-title {
        font-size: 1rem;
    }

    .download-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
    }
}