﻿/* ============================================
   Documentation Layout CSS â€” Redesigned
   Modern sidebar + content grid for all
   company, investor, legal, partner, and
   responsibility documentation pages.
   ============================================ */

/* --- Page-level header (above the grid) --- */
.doc-header {
    max-width: 1200px;
    margin: 7rem auto 2.5rem auto;
    padding: 0 2rem;
}

.doc-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.doc-header .doc-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 680px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* Thin and spaced dividers */
.doc-divider-thin {
    height: 1px;
    background-color: #e2e8f0;
    width: 100%;
    border: none;
    margin: 0;
}

.doc-divider-spaced {
    height: 1px;
    background-color: #e2e8f0;
    width: 100%;
    border: none;
    margin: 3rem 0;
}

/* --- Two-column grid: sidebar + content --- */
.doc-container {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 5rem;
    align-items: start;
}

/* --- Sidebar --- */
.doc-sidebar {
    position: sticky;
    top: 140px;
    padding-top: 0.5rem;
    height: max-content;
}

.doc-sidebar-group {
    margin-bottom: 2.25rem;
}

.doc-sidebar-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.doc-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.doc-sidebar-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 450;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    position: relative;
    left: 0;
}

.doc-sidebar-links a:hover {
    color: #0f172a;
    left: 4px; /* Subtle premium slide effect */
}

.doc-sidebar-links a.active {
    color: #0f172a;
    font-weight: 600;
}

.doc-sidebar-links a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #0f172a;
}

/* --- Main content area --- */
.doc-content {
    padding-top: 0.5rem;
    padding-bottom: 6rem;
    max-width: 840px;
}

.doc-intro {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 3rem;
}

/* --- Section blocks --- */
.doc-section {
    margin-bottom: 3.5rem;
}

.doc-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

.doc-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

.doc-section p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.35rem;
}

.doc-section ul,
.doc-section ol {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.35rem;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

/* --- CTA block at bottom of content --- */
.doc-cta-block {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.doc-cta-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.doc-cta-block p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.doc-btn:hover {
    background-color: #1e293b;
}

.doc-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .doc-header {
        margin-top: 5rem;
    }

    .doc-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 2rem;
    }

    .doc-sidebar {
        position: static;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .doc-sidebar-group {
        margin-bottom: 0;
        min-width: 150px;
    }

    .doc-sidebar-links a {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }
}
