/* trust-legal.css */

/* Dark top banner: same as home page. Always applied on trust/legal so it doesn't
   disappear when script-v3.js removes .scrolled at top of page. */
body.legal-layout .v2-nav {
    background: rgba(11, 14, 20, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.legal-layout .v2-nav .logo {
    filter: brightness(0) invert(1);
}

:root {
    --brand-purple-light: #7C3AED;
    --brand-purple-medium: #6D28D9;
    --brand-purple-dark: #5B21B6;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --text-heading: #111;
    --bg-card: #EFF0F3;
    --border-subtle: rgba(0, 0, 0, 0.05);
}

/* Base styles to override v2-body defaults for these pages if needed */
body.v2-body.legal-layout {
    background-color: #fff;
    color: var(--gray-600);
}

.legal-layout h1,
.legal-layout h2,
.legal-layout h3 {
    color: var(--text-heading);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.legal-layout p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.legal-layout .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

/* Card Style (Purple left border) */
.legal-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--brand-purple-light);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Sections */
.legal-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
    border-bottom: none;
}

/* Sub-navigation (Sticky) */
.sub-nav {
    position: sticky;
    top: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sub-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sub-nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    transition: color 0.2s;
}

.sub-nav a:hover {
    color: var(--brand-purple-medium);
}

/* Document List (Legal Index) */
.doc-list {
    display: grid;
    gap: 1.5rem;
}

.doc-item {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.doc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-purple-medium);
    margin-bottom: 0.5rem;
    display: block;
}

.doc-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.doc-desc {
    color: var(--gray-600);
}

/* Individual Policy Page Content */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.policy-content th,
.policy-content td {
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    text-align: left;
}

.policy-content th {
    background: var(--bg-card);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-purple-medium);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Responsive Grid for Trust Center */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-layout .content-wrapper {
        padding: 60px 24px;
    }
}