/* =============================================================================
   TCL LEGAL PAGE
   Styles for page-legal.php template only.
   Loaded conditionally — see functions.php tcl_enqueue_legal_styles().
   Brand palette and .tcl-block components live in style.css.
   ========================================================================== */

/* ── Page Header ───────────────────────────────────────────────────────────── */

.tcl-legal-page-header {
    background: #F7F7F7;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */

.tcl-legal-breadcrumb {
    font-size: 13px;
    color: #888888;
    margin-bottom: 16px;
}

.tcl-legal-breadcrumb a {
    color: #888888;
    text-decoration: none;
}

.tcl-legal-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Header Typography ─────────────────────────────────────────────────────── */

.tcl-legal-page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    color: #241B2A;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.tcl-legal-page-header .tcl-legal-updated {
    font-style: italic;
    color: #70A37F;
    font-size: 14px;
    margin: 0;
}

/* ── Two-Column Layout ─────────────────────────────────────────────────────── */

.tcl-legal-wrap {
    display: flex;
    gap: 48px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
    align-items: flex-start;
}

/* ── Sidebar / TOC ─────────────────────────────────────────────────────────── */

.tcl-legal-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: #F7F7F7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.tcl-legal-sidebar .tcl-toc-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9796B6;
    margin-bottom: 12px;
    margin-top: 0;
    font-weight: 600;
}

.tcl-legal-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcl-legal-sidebar ul li a {
    font-size: 13px;
    color: #241B2A;
    text-decoration: none;
    display: block;
    padding: 6px 0 6px 10px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.tcl-legal-sidebar ul li a:hover {
    color: #79B473;
}

.tcl-legal-sidebar ul li.tcl-toc-active a {
    border-left-color: #79B473;
    color: #79B473;
}

/* ── Content Area ──────────────────────────────────────────────────────────── */

.tcl-legal-content {
    flex: 1;
    min-width: 0;
}

.tcl-legal-content h2 {
    font-size: 20px;
    color: #241B2A;
    border-left: 3px solid #79B473;
    padding-left: 12px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.tcl-legal-content h3 {
    font-size: 17px;
    color: #241B2A;
    margin-top: 28px;
    margin-bottom: 12px;
}

.tcl-legal-content p {
    line-height: 1.8;
    font-size: 16px;
    color: #3a3a3a;
}

.tcl-legal-content ul,
.tcl-legal-content ol {
    line-height: 1.8;
    padding-left: 24px;
}

/* ── Legal Callout ─────────────────────────────────────────────────────────── */

.tcl-legal-callout {
    border-left: 3px solid #9796B6;
    background: rgba(151, 150, 182, 0.08);
    padding: 16px 20px;
    border-radius: 0 4px 4px 0;
    margin: 28px 0;
}

/* ── Bottom CTA ────────────────────────────────────────────────────────────── */

.tcl-legal-cta {
    text-align: center;
    padding: 48px 24px;
    margin-top: 48px;
    border-top: 1px solid #e0e0e0;
}

.tcl-legal-cta h3 {
    color: #241B2A;
    font-size: 20px;
    margin-bottom: 8px;
    margin-top: 0;
}

.tcl-legal-cta p {
    color: #70A37F;
    font-size: 15px;
    margin: 0;
}

/* ── Astra Container Overrides ─────────────────────────────────────────────── */
/*
 * Force Astra's content wrappers back to block layout on legal pages.
 * Prevents any sidebar-layout or page-builder body class from applying
 * flex/float to the containers that hold tcl-legal-page-header,
 * tcl-legal-wrap, and tcl-legal-cta.
 */
body.page-template-page-legal .site-content,
body.page-template-page-legal #content,
body.page-template-page-legal .ast-container,
body.page-template-page-legal #primary,
body.page-template-page-legal .content-area,
body.page-template-page-legal .entry-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .tcl-legal-wrap {
        flex-direction: column;
    }

    .tcl-legal-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 24px;
    }
}
