/* ==========================================================================
   PRINTA4 / SUPPORTA4 LEGAL PORTAL - SHARED PRODUCTION CSS
   Fully Mobile Responsive, Dual Official Brand Logos, Dark Theme
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #050816;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-input: rgba(15, 23, 42, 0.9);
    
    --blue-primary: #3B82F6;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --blue-light: #60A5FA;
    
    --purple-primary: #A855F7;
    --purple-glow: rgba(168, 85, 247, 0.35);
    --purple-light: #C084FC;
    
    --emerald-primary: #10B981;

    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Background Atmosphere */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -2;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.orb-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--blue-primary) 0%, transparent 70%);
    top: -120px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
    top: 35%;
    right: -120px;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-primary), var(--purple-primary));
    z-index: 1000;
}

/* Navbar & Official Brand Logos */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Official PrintA4 Logo Badge Container */
.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-badge-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
    transition: var(--transition-fast);
}

.logo-badge-card:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.brand-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-tag-support {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--purple-light);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--blue-light);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-print-page {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-print-page:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle Hamburger */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    padding: 0.45rem 0.65rem;
    cursor: pointer;
}

/* Main Layout */
.main-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    padding-bottom: 3rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheading {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.effective-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.hero-visual-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.4);
}

.hero-visual-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Two Column Content Layout */
.content-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sticky Sidebar Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 85px;
}

.toc-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.15rem;
    backdrop-filter: blur(16px);
}

.toc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}

.toc-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.toc-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-light);
    border-left-color: var(--blue-primary);
    font-weight: 600;
}

/* Glassmorphism Cards Feed */
.policy-feed {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--blue-light);
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    display: block;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.15rem;
    letter-spacing: -0.01em;
}

.card-body {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.card-body p {
    margin-bottom: 1rem;
}

.card-body ul, .card-body ol {
    margin-left: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.card-body li {
    line-height: 1.5;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    font-size: 0.88rem;
    color: #E2E8F0;
    margin: 1.15rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.highlight-box svg {
    color: var(--blue-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box-purple {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    font-size: 0.88rem;
    color: #E9D5FF;
    margin: 1.15rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-box-purple svg {
    color: var(--purple-light);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.contact-card-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.15rem;
}

.contact-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.15rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--blue-primary);
}

.btn-submit {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

/* Official SupportA4 Dedicated Brand Box */
.supporta4-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.supporta4-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.supporta4-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.supporta4-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.cyber-footer {
    background: #030612;
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--blue-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: 1.25rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--blue-primary);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-subheading {
        margin: 0 auto 1.25rem;
    }

    .effective-date-pill {
        margin: 0 auto;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        background: rgba(5, 8, 22, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        display: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .brand-logo-img {
        height: 24px;
    }

    .logo-tag-support {
        display: none;
    }
}
