/* --- CSS Variables --- */
:root {
    --primary: #696cff;
    --primary-dark: #5f61e6;
    --brick: #c1440e;
    --bg-body: #232333;
    --bg-paper: #2b2c40;
    --text-main: #a3a4cc;
    --text-muted: #697a8d;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #71dd37;
    
    --container-width: 1200px;
    --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Public Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding-left: 0; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Utilities --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Spacing Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

@media (min-width: 768px) {
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* --- Components --- */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    line-height: 1.2;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; height: var(--header-height);
    background: rgba(35, 35, 51, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid var(--border-color);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 800; color: white; display: flex; align-items: center; gap: 10px; }

/* Mobile Navbar Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: white;
    padding: 8px;
}

.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-content {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0; /* Animated height */
        background: var(--bg-body);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        margin-left: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }

    .nav-content.active {
        height: auto;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
        width: 100%;
    }

    .nav-link {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }
}


/* Hero */
.hero { padding: 180px 0 100px; text-align: center; position: relative; }
.hero h1 {
    font-size: 48px; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 24px;
}
.hero p { font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; line-height: 1.6; }
.hero-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-badge {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color);
    padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--text-main);
    display: flex; align-items: center; gap: 6px; font-weight: 500;
}

/* Product Sections */
.product-section { padding: 100px 0; border-bottom: 1px solid var(--border-color); }
.product-section:last-of-type { border-bottom: none; }
.product-content h2 { font-size: 36px; color: white; margin-bottom: 16px; line-height: 1.3; }
.product-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }

.product-visual {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    border-radius: 16px; height: 360px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Mockup Base Styles - "Zoomed Out" Effect */
.mockup-window {
    width: 90%; 
    height: 85%; 
    background: #232333; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    display: flex; 
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    font-size: 11px; /* Global zoom out font base */
}

/* Generic Mockup Sidebar */
.mockup-sidebar {
    width: 60px; 
    border-right: 1px solid var(--border-color); 
    background: var(--bg-paper);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 16px 0; 
    gap: 16px;
    flex-shrink: 0;
}
.mockup-icon-btn {
    width: 32px; height: 32px; border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--text-muted); transition: 0.2s;
}
.mockup-icon-btn.active { background: rgba(105, 108, 255, 0.15); color: var(--primary); }

/* Generic Mockup Content */
.mockup-main {
    flex: 1; 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; /* Prevent spillover */
}

.product-badge {
    display: inline-block; padding: 6px 14px; border-radius: 20px; 
    font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.5px;
}

.feature-list { list-style: none; margin-bottom: 32px; }
.feature-item { 
    margin-bottom: 16px; display: flex; align-items: center; gap: 12px; 
    color: var(--text-main); font-size: 16px; 
}

/* Roadmap */
.roadmap-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    padding: 32px 24px; border-radius: 16px; text-align: center;
    opacity: 0.8; transition: all 0.3s ease;
}
.roadmap-card:hover { opacity: 1; border-color: var(--primary); transform: translateY(-5px); background: rgba(255,255,255,0.04); }
.roadmap-icon { margin-bottom: 20px; display: flex; justify-content: center; }

/* Trust Section */
.trust-section { background: var(--bg-paper); padding: 100px 0; border-top: 1px solid var(--border-color); }
.trust-item { text-align: center; padding: 0 10px; }
.trust-icon { color: var(--success); margin-bottom: 20px; width: 32px; height: 32px; display: inline-block; }
.trust-item h4 { color: white; margin-bottom: 12px; font-size: 18px; }
.trust-item p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* Form Section */
.form-section { padding: 100px 0; background: linear-gradient(to bottom, var(--bg-body), #1b1b29); }
.form-box {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 48px; max-width: 540px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color);
    border-radius: 8px; color: white; font-size: 15px; outline: none; transition: 0.3s;
}
.form-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.3); }
select.form-input { appearance: none; cursor: pointer; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 80px 0 40px; background: #1b1b29; font-size: 14px; }
.footer h5 { color: white; margin-bottom: 20px; font-size: 16px; font-weight: 700; }
.footer a { color: var(--text-muted); display: block; margin-bottom: 12px; transition: color 0.2s; }
.footer a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .hero-visual { display: none; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    /* Added gap for mobile spacing fix */
    .grid-2, .grid-3, .grid-4 { display: flex; flex-direction: column; gap: 48px; }
    /* Additional margins for stacked sections */
    .product-section .grid-2 > div { margin-bottom: 32px; }
    .product-section .grid-2 > div:last-child { margin-bottom: 0; }

    .product-section.reverse .grid-2 { flex-direction: column-reverse; }

    /* Feature Row Mobile Spacing */
    .feature-row .grid-2 > div { margin-bottom: 32px; }
    .feature-row .grid-2 > div:last-child { margin-bottom: 0; }
    .feature-row.reverse .grid-2 { flex-direction: column-reverse; }

    .form-box { padding: 32px 24px; }
    .btn { width: 100%; }
    /* Hero badges horizontal on mobile */
    .hero-badges { flex-direction: row; align-items: center; flex-wrap: wrap; }

    /* Footer center alignment on mobile */
    .footer { text-align: center; }
    .footer .grid-4 { gap: 40px; }
}

/* Hide first badge on very small screens */
@media (max-width: 480px) {
    .hero-badge:first-child { display: none; }
}

/* --- PROJECT MANAGEMENT SPECIFIC STYLES --- */

/* Kanban Mockup */
.hero-visual {
    margin-top: 60px;
    position: relative;
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
}

.kanban-board {
    background: #232333; 
    border: 1px solid var(--border-color); 
    border-radius: 8px;
    padding: 20px; 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-height: 500px;
    overflow: hidden;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.kanban-col-actions { color: var(--text-muted); cursor: pointer; }

.kanban-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
    border-color: rgba(105, 108, 255, 0.3);
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tag-green { background: rgba(113, 221, 55, 0.15); color: var(--success); }
.tag-red { background: rgba(255, 62, 29, 0.15); color: #ff3e1d; }
.tag-blue { background: rgba(3, 195, 236, 0.15); color: #03c3ec; }
.tag-purple { background: rgba(105, 108, 255, 0.15); color: var(--primary); }
.tag-yellow { background: rgba(255, 171, 0, 0.15); color: #ffab00; }

.card-title {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-item { display: flex; align-items: center; gap: 4px; }

.avatar-stack { display: flex; }

.avatar {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--card-bg);
    background-color: var(--text-muted);
    margin-left: -8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: white; font-weight: bold;
}

.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar:first-child { margin-left: 0; }

/* Hierarchy Mockup */
.hierarchy-ui {
    width: 80%;
    height: 380px;
    background: #232333;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.h-sidebar {
    width: 220px;
    background: var(--bg-paper);
    border-right: 1px solid var(--border-color);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-group-title {
    font-size: 10px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; 
    margin: 12px 0 8px 8px;
}

.h-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 6px;
    font-size: 13px; color: var(--text-main);
    transition: 0.2s; cursor: pointer;
    line-height: 1;
}

.h-nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.h-nav-item.active { background: rgba(105, 108, 255, 0.1); color: var(--primary); }
.h-nav-item i { width: 16px; height: 16px; stroke-width: 2px; }

.h-nested { margin-left: 12px; border-left: 1px solid var(--border-color); padding-left: 8px; display: flex; flex-direction: column; gap: 4px; }

.h-main { flex: 1; padding: 24px; background: #232333; display: flex; flex-direction: column; }

.h-breadcrumb { display: flex; gap: 8px; color: var(--text-muted); font-size: 11px; margin-bottom: 16px; align-items: center; }

.h-page-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

.h-task-list { display: flex; flex-direction: column; gap: 0; }

.h-task-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
}

.h-task-row:last-child { border-bottom: none; }
.h-checkbox { width: 16px; height: 16px; border: 1px solid var(--text-muted); border-radius: 4px; cursor: pointer; }
.h-task-content { flex: 1; font-size: 13px; color: var(--text-main); font-weight: 500; }
.h-task-meta { font-size: 10px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }

/* User Management Mockup */
.user-mgmt-ui {
    width: 100%;
    background: #232333;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.um-header {
    background: var(--bg-paper);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.um-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.um-row:hover { background: rgba(255,255,255,0.02); }
.um-row:last-child { border-bottom: none; }

.um-user-info { display: flex; gap: 14px; align-items: center; }

.um-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}

.um-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.um-text-group { display: flex; flex-direction: column; gap: 2px; }
.um-name { color: white; font-size: 14px; font-weight: 600; }
.um-email { color: var(--text-muted); font-size: 12px; }

.um-badge {
    font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 6px;
    display: inline-flex; align-items: center; gap: 4px;
}

.badge-admin { background: rgba(105, 108, 255, 0.15); color: var(--primary); }
.badge-member { background: rgba(113, 221, 55, 0.15); color: var(--success); }
.badge-guest { background: rgba(255, 171, 0, 0.15); color: #ffab00; }

/* Projects Page Responsive */
@media (max-width: 768px) {
    .hierarchy-ui { width: 100%; height: auto; flex-direction: column; }
    .h-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
}

/* --- IDRIVE SPECIFIC STYLES --- */

/* File Manager UI */
.file-manager-ui {
    background: #232333; 
    border: 1px solid var(--border-color); 
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    height: 500px;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.fm-sidebar {
    width: 240px;
    background: var(--bg-paper);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: 0.2s;
}

.fm-nav-item:hover, .fm-nav-item.active {
    background: rgba(105, 108, 255, 0.1); color: var(--primary);
}

.fm-nav-item i { width: 18px; height: 18px; }

.storage-meter {
    margin-top: auto;
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 8px;
}

.meter-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.meter-track { height: 6px; background: #444; border-radius: 3px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--primary); width: 45%; }

/* Main Content */
.fm-main { flex: 1; padding: 24px; display: flex; flex-direction: column; }

.fm-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}

.fm-search {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    padding: 8px 16px; border-radius: 8px; width: 300px;
    display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px;
}

.fm-section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; }

.fm-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.file-card {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 16px; text-align: center;
    transition: 0.2s; cursor: pointer; position: relative;
}

.file-card:hover { transform: translateY(-4px); border-color: var(--primary); background: rgba(43, 44, 64, 0.8); }

.file-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
}

.icon-folder { color: #ffab00; fill: rgba(255, 171, 0, 0.2); }
.icon-pdf { color: #ff3e1d; }
.icon-img { color: #03c3ec; }

.file-name { font-size: 13px; color: white; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 11px; color: var(--text-muted); }

/* Quota Management */
.quota-ui {
    width: 100%; background: #232333; border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quota-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border-color);
}

.quota-row:last-child { border-bottom: none; }

.quota-user { display: flex; align-items: center; gap: 12px; width: 30%; }
.quota-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

.quota-bar-container { flex: 1; margin: 0 24px; }
.quota-bar-bg { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: var(--success); border-radius: 4px; }
.quota-text { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: space-between; }

.quota-input {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    color: white; padding: 6px 12px; border-radius: 6px; width: 100px; font-size: 13px; text-align: right;
}

/* iDrive Page Responsive */
@media (max-width: 768px) {
}

/* --- POLICY PAGE STYLES --- */

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    min-height: calc(100vh - 80px);
}

/* Legal Header */
.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-align: left;
}

.legal-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
}

.legal-header p strong {
    color: white;
    font-weight: 600;
}

/* Legal Content */
.legal-content {
    text-align: left;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 36px 0 16px 0;
    text-align: left;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: left;
}

.legal-content ul,
.legal-content ol {
    margin-left: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.legal-content li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 10px;
    text-align: left;
}

.legal-content ul li {
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.legal-content strong {
    color: white;
    font-weight: 600;
}

.legal-content em {
    color: var(--primary);
    font-style: italic;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Policy Page Responsive */
@media (max-width: 768px) {
    .policy-container {
        padding: 60px 16px 40px;
    }
    
    .legal-header h1 {
        font-size: 26px;
    }
    
    .legal-header p {
        font-size: 13px;
    }
    
    .legal-content h2 {
        font-size: 18px;
        margin: 28px 0 12px 0;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 13px;
    }
}

/* --- EMAIL PAGE STYLES --- */

/* Dashboard UI Mockup */
.dashboard-ui {
    background: #2b2c40; 
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    height: 700px; 
    display: flex; 
    overflow: hidden;
    font-family: 'Public Sans', sans-serif;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar */
.dash-sidebar { 
    width: 260px; 
    background: #2b2c40; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.compose-btn {
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.4);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 0 50px 50px 0;
    color: var(--text-main);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: 0.2s;
    margin-left: -20px;
    padding-left: 36px;
}

.sidebar-item i { margin-right: 12px; width: 18px; }
.sidebar-item:hover { color: white; }

.sidebar-item.active { 
    color: var(--primary); 
    background: rgba(105, 108, 255, 0.16); 
    border-left: 3px solid var(--primary);
    padding-left: 33px;
}

.badge-pill {
    font-size: 13px;
    font-weight: 400;
    min-width: 20px;
    text-align: center;
}

.badge-primary { color: var(--primary); }

.badge-warning { 
    background: #ffab00; 
    color: #2b2c40; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 700; 
}

.badge-danger { 
    background: #ff3e1d; 
    color: white; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 700; 
}

.label-section { margin-top: 32px; }

.label-header { 
    font-size: 11px; 
    font-weight: 600; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    margin-bottom: 16px; 
    padding-left: 12px; 
    letter-spacing: 1px; 
}

.label-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 15px; 
    color: var(--text-main); 
    padding: 8px 12px; 
    cursor: pointer; 
}

.label-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Main Content */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #232333;
    position: relative;
}

/* Header */
.dash-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    width: 100%;
    outline: none;
}

/* Toolbar */
.dash-toolbar {
    height: 52px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: var(--text-muted);
}

.toolbar-left { display: flex; gap: 24px; align-items: center; }
.tool-icon { width: 20px; height: 20px; cursor: pointer; transition: 0.2s; }
.tool-icon:hover { color: white; }

/* Email List */
.email-list { flex: 1; overflow-y: auto; }

.email-row {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.email-row:hover { 
    box-shadow: 0 0 15px rgba(0,0,0,0.3); 
    z-index: 2; 
    position: relative; 
    background: #2b2c40; 
}

.email-row.selected { background: rgba(43, 44, 64, 0.6); }

.row-check {
    width: 18px; 
    height: 18px; 
    border-radius: 4px; 
    border: 2px solid var(--text-muted);
    margin-right: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-shrink: 0; 
    color: transparent;
}

.row-check.checked { 
    background: var(--primary); 
    border-color: var(--primary); 
    color: white; 
}

.row-star { 
    margin-right: 16px; 
    color: var(--text-muted); 
    width: 20px; 
    flex-shrink: 0; 
}

.row-star.starred { 
    color: var(--warning); 
    fill: var(--warning); 
}

.row-avatar {
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    margin-right: 16px; 
    flex-shrink: 0;
    object-fit: cover;
}

.row-avatar-text {
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    margin-right: 16px; 
    flex-shrink: 0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 13px; 
    font-weight: 700;
}

.row-sender { 
    width: 160px; 
    font-weight: 500; 
    color: white; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    flex-shrink: 0; 
}

.row-content { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    min-width: 0; 
    padding-right: 24px; 
    color: var(--text-muted); 
}

.row-subject { 
    color: var(--text-main); 
    white-space: nowrap; 
    margin-right: 6px; 
}

.row-meta { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 13px; 
    color: var(--text-muted); 
    white-space: nowrap; 
    flex-shrink: 0; 
    justify-content: flex-end; 
    margin-left: auto; 
}

.status-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    display: inline-block; 
}

.dot-green { background: var(--success); }
.dot-blue { background: var(--primary); }
.dot-orange { background: #ffab00; }
.dot-red { background: #ff3e1d; }

/* Email Page Responsive */
@media (max-width: 768px) {
}


/* --- Shared CSS Variables (Email Page Specific Override) --- */
:root {
    --primary: #696cff;
    --primary-dark: #5f61e6;
    --brick: #c1440e;
    --bg-body: #232333;
    --bg-paper: #2b2c40;
    --text-main: #dbdbe0;
    --text-muted: #8c90ad;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #71dd37;
    --warning: #ffab00;
    --info: #03c3ec;
    --danger: #ff3e1d;

    --container-width: 1200px;
    --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Public Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Utilities --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

@media (min-width: 768px) {
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* --- Components --- */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Hero */
.hero { padding: 160px 0 80px; text-align: center; position: relative; }
.hero h1 { font-size: 48px; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto 32px; line-height: 1.6; }
.hero-badge {
    background: rgba(105, 108, 255, 0.1); border: 1px solid var(--primary);
    padding: 6px 16px; border-radius: 20px; font-size: 12px; color: #a5b4fc;
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-weight: 600;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- MOCKUP CSS --- */
.hero-visual { margin-top: 60px; position: relative; max-width: 1200px; margin-left: auto; margin-right: auto; }

.dashboard-ui {
    background: #2b2c40;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    height: 700px;
    display: flex;
    overflow: hidden;
    font-family: 'Public Sans', sans-serif;
}

/* Sidebar */
.dash-sidebar {
    width: 260px;
    background: #2b2c40;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.compose-btn {
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.4);
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.compose-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 0 50px 50px 0; /* Rounded right edge */
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.2s;
    margin-left: -16px; /* Extend to edge */
    padding-left: 32px;
    font-weight: 500;
}
.sidebar-item i { margin-right: 12px; width: 18px; stroke-width: 2.5px; }
.sidebar-item:hover { color: white; background: rgba(255,255,255,0.03); }
.sidebar-item.active {
    color: var(--primary);
    background: rgba(105, 108, 255, 0.12);
    border-left: 3px solid var(--primary);
    padding-left: 29px; /* Adjust for border width */
}

.badge-pill {
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}
.badge-primary { color: var(--primary); }
.badge-warning { background: #ffab00; color: #2b2c40; padding: 4px 8px; border-radius: 12px; }
.badge-danger { background: #ff3e1d; color: white; padding: 4px 8px; border-radius: 12px; }

.label-section { margin-top: 32px; }
.label-header { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; padding-left: 16px; letter-spacing: 1px; }
.label-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-main); padding: 8px 16px; cursor: pointer; border-radius: 6px; transition: 0.2s; }
.label-item:hover { background: rgba(255,255,255,0.03); color: white; }
.label-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Main Content */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #232333;
    position: relative;
}

/* Header */
.dash-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}
.search-icon { color: var(--text-muted); width: 20px; }
.search-input {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    width: 100%;
    outline: none;
}

/* Toolbar */
.dash-toolbar {
    height: 52px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: var(--text-muted);
}
.toolbar-left { display: flex; gap: 24px; align-items: center; }
.tool-icon { width: 20px; height: 20px; cursor: pointer; transition: 0.2s; }
.tool-icon:hover { color: white; }

/* Email List */
.email-list { flex: 1; overflow-y: auto; }
.email-row {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}
.email-row:hover { background: #2b2c40; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transform: translateY(-1px); z-index: 2; position: relative; }
.email-row.selected { background: rgba(105, 108, 255, 0.05); border-left: 2px solid var(--primary); padding-left: 22px; }

.row-check {
    width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--text-muted);
    margin-right: 16px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: transparent; transition: 0.2s;
}
.row-check.checked { background: var(--primary); border-color: var(--primary); color: white; }

.row-star { margin-right: 16px; color: var(--text-muted); width: 20px; flex-shrink: 0; transition: 0.2s; }
.row-star.starred { color: var(--warning); fill: var(--warning); }

.row-avatar {
    width: 36px; height: 36px; border-radius: 50%; margin-right: 16px; flex-shrink: 0;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.05);
}
.row-avatar-text {
    width: 36px; height: 36px; border-radius: 50%; margin-right: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
    border: 2px solid rgba(255,255,255,0.05);
}

.row-sender { width: 170px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }

.row-content { flex: 1; display: flex; align-items: center; min-width: 0; padding-right: 24px; color: var(--text-muted); }
.row-subject { color: var(--text-main); font-weight: 500; white-space: nowrap; margin-right: 8px; }

.row-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; justify-content: flex-end; margin-left: auto; font-weight: 500; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot-green { background: var(--success); box-shadow: 0 0 8px rgba(113, 221, 55, 0.4); }
.dot-blue { background: var(--primary); box-shadow: 0 0 8px rgba(105, 108, 255, 0.4); }
.dot-orange { background: var(--warning); box-shadow: 0 0 8px rgba(255, 171, 0, 0.4); }
.dot-red { background: var(--danger); box-shadow: 0 0 8px rgba(255, 62, 29, 0.4); }

/* --- END MOCKUP CSS --- */

/* Identity Cards */
.identity-container { margin-top: 60px; max-width: 900px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.identity-card { background: #2b2c40; border: 1px solid var(--border-color); border-radius: 12px; padding: 32px; text-align: left; transition: 0.3s; position: relative; overflow: hidden; height: 100%; }
.identity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.identity-card.pos { border-top: 4px solid var(--success); }
.identity-card.neg { border-top: 4px solid var(--danger); }
.identity-title { font-size: 20px; font-weight: 700; color: white; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

.id-list li {
    display: flex;
    align-items: flex-start; /* Alignment fix */
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 15px;
}
.id-list li i {
    flex-shrink: 0;
    margin-top: 3px; /* Visual alignment correction */
    width: 18px;
    height: 18px;
}
.list-check { color: var(--success); }
.list-x { color: var(--danger); }

/* Section Styling */
.section-title { font-size: 32px; color: white; margin-bottom: 16px; font-weight: 700; }
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto 48px; line-height: 1.6; }
.section-box { padding: 80px 0; border-bottom: 1px solid var(--border-color); }

/* Visual Containers */
.product-visual {
    background: var(--bg-paper); border: 1px solid var(--border-color);
    border-radius: 16px; height: 350px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Feature Row Layout */
.feature-row { padding: 100px 0; border-bottom: 1px solid var(--border-color); }
.feature-row:last-child { border-bottom: none; }
.feature-content h3 { font-size: 28px; color: white; margin-bottom: 16px; font-weight: 700; }
.feature-content p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

/* ALIGNMENT FIX: List items */
.feature-list-item {
    display: flex;
    align-items: flex-start; /* Ensures icon stays top-aligned with multiline text */
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.5;
}
.feature-list-item i {
    flex-shrink: 0;
    margin-top: 3px; /* Visual alignment correction for icon vs text cap-height */
    width: 20px;
    height: 20px;
}

/* Feature Cards (Grid) */
.feature-card { background: var(--bg-paper); border: 1px solid var(--border-color); padding: 32px; border-radius: 12px; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); background: #323249; }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; color: white; margin-bottom: 12px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Mockup: Admin/User Mgmt */
.admin-ui { width: 90%; background: #232333; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.admin-header { background: var(--bg-paper); padding: 16px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.admin-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
.admin-row:last-child { border-bottom: none; }
.usage-bar { width: 80px; height: 6px; background: #444; border-radius: 3px; overflow: hidden; margin-right: 12px; }
.usage-fill { height: 100%; background: var(--success); }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; color: white; font-weight: 600; cursor: pointer; font-size: 16px; }
.faq-answer { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 12px; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-icon { transition: 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Contact Form */
.contact-form-box { background: var(--bg-paper); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; color: white; font-size: 14px; outline: none; transition: 0.3s; }
.form-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.4); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 80px 0 40px; background: #1b1b29; font-size: 14px; }
.footer h5 { color: white; margin-bottom: 20px; font-size: 16px; font-weight: 700; }
.footer a { color: var(--text-muted); display: block; margin-bottom: 12px; transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer-legal { font-size: 12px; color: #697a8d; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { display: flex; flex-direction: column; gap: 32px; }
    .hero h1 { font-size: 32px; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group .btn { width: 100%; }
    .dashboard-ui {
        transform: scale(0.65); transform-origin: top center; width: 153%; margin-left: -26.5%; margin-bottom: -150px;
        flex-direction: row;
    }
    .dash-sidebar { display: none; }
    .feature-row { padding: 60px 0; }
    .section-box { padding: 60px 0; }
    .feature-row.reverse .grid-2 { flex-direction: column-reverse; }
    .identity-container { grid-template-columns: 1fr; }
}

