/* ============================================
   LEGAL POLICY PAGES — legal-style.css
   ============================================ */

/* Page wrapper */
.legal-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 60px 40px;
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ============================================
   LEFT SIDEBAR — legal variant
   ============================================ */
.legal-sidebar {
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0 35px 0 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.legal-sidebar::-webkit-scrollbar { display: none; }

.sidebar-section { margin-bottom: 40px; }

.sidebar-title {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-weight: 700;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    color: #e2e8f0;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
}

.sidebar-item:hover { color: #ffffff; }

.sidebar-item.active {
    color: #8b5cf6;
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Policy nav links */
.toc-item {
    display: block;
    padding: 8px 0 8px 12px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s, border-left-color 0.2s;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-item:hover {
    color: #a5b4fc;
    border-left-color: rgba(99, 102, 241, 0.4);
}

.toc-item.active {
    color: #8b5cf6;
    border-left-color: #8b5cf6;
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.legal-main {
    padding: 48px 0 100px;
    min-width: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s;
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-link:hover { color: #a5b4fc; }

.page-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.2;
}

.page-meta {
    font-size: 13px;
    color: #475569;
    margin-bottom: 40px;
}

/* Intro / disclaimer card */
.intro-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 48px;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

.intro-card strong { color: #c4b5fd; }

/* ============================================
   LEGAL CONTENT — WordPress editor output
   ============================================
   Benis enters content via the WP editor.
   These styles handle h2, h3, p, ul, ol, a
   to match the design from the HTML file.
   ============================================ */
.legal-content {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

/* Section blocks — wrap each section in <div class="tos-section"> or use h2 */
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 48px 0 16px;
    padding-top: 8px;
}

/* Section number label — add as a <p class="section-number"> before each h2 */
.legal-content .section-number,
.legal-content p.section-number {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    margin-top: 44px;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 28px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: #94a3b8;
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul,
.legal-content ol {
    margin: 12px 0 20px 24px;
    color: #94a3b8;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover { color: #c4b5fd; }

.legal-content strong { color: #e2e8f0; }

/* Horizontal rule between sections */
.legal-content hr {
    border: none;
    height: 1px;
    background: rgba(99, 102, 241, 0.1);
    margin: 48px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media ( max-width: 1200px ) {
    .legal-page-wrapper {
        grid-template-columns: 200px 1fr 280px;
        gap: 30px;
        padding: 100px 30px 40px;
    }
}

@media ( max-width: 1024px ) {
    .legal-page-wrapper {
        grid-template-columns: 1fr;
        padding: 90px 20px 40px;
    }

    .legal-page-wrapper .legal-sidebar,
    .legal-page-wrapper .sidebar-right {
        display: none;
    }

    .legal-main { padding: 32px 0 60px; }

    .page-title { font-size: 28px; }
}