/* CobrApp Landing - Privacy Page Stylesheet */
:root {
    --color-primary: #10b981; /* Green accent */
    --color-primary-hover: #059669;
    --color-dark: #0f172a; /* Slate 900 */
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;
    --color-slate-100: #f1f5f9;
    --color-bg-light: #f8fafc;
    --color-card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-slate-700);
    line-height: 1.6;
    overflow: hidden; /* Prevent body scroll, let sidebar and content scroll independently */
}

/* Layout */
.layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--color-dark);
    color: var(--color-slate-400);
    padding: 30px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-slate-800);
    flex-shrink: 0;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 4px;
}

/* Scrollbar styling for sidebar */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--color-slate-800);
    border-radius: 4px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background-color: var(--color-slate-800);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back:hover {
    background-color: var(--color-slate-700);
    transform: translateX(-2px);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-400);
    margin-bottom: 12px;
    padding-left: 8px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    color: var(--color-slate-400);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #ffffff;
    background-color: var(--color-slate-800);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
    padding: 50px 60px;
    overflow-y: auto;
    height: 100vh;
}

/* Scrollbar styling for content */
.content::-webkit-scrollbar {
    width: 8px;
}
.content::-webkit-scrollbar-track {
    background: transparent;
}
.content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.25;
    margin-bottom: 8px;
}

.date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro {
    font-size: 1.05rem;
    color: var(--color-slate-600);
    margin-bottom: 30px;
}

.intro p {
    margin-bottom: 16px;
}

/* Tab content visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section-card {
    background-color: var(--color-card-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-slate-100);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
    color: var(--color-slate-600);
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 20px;
    color: var(--color-slate-600);
}

li {
    margin-bottom: 6px;
}

strong {
    color: var(--color-dark);
}

/* Custom cards */
.b2b-notice {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-color: #f59e0b;
}

.b2b-notice h2 {
    color: #b45309;
    border-bottom-color: rgba(180, 83, 9, 0.1);
}

.b2b-notice p {
    color: #92400e;
    font-weight: 500;
}

.roles-notice {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-color: #3b82f6;
}

.roles-notice h2 {
    color: #1d4ed8;
    border-bottom-color: rgba(29, 78, 216, 0.1);
}

.roles-notice p, .roles-notice li {
    color: #1e40af;
}

/* Table styling */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--color-slate-100);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-slate-100);
}

th {
    background-color: var(--color-slate-100);
    color: var(--color-dark);
    font-weight: 700;
}

td {
    background-color: #ffffff;
    color: var(--color-slate-600);
}

tr:last-child td {
    border-bottom: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
        padding: 20px 12px;
    }

    .btn-back {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .nav-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .content {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .layout {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-slate-800);
    }

    .sidebar-scroll {
        height: auto;
        max-height: 200px;
    }

    .content {
        height: auto;
        padding: 30px 20px;
    }
}
