/**
 * legal.css — Shared styles for Privacy Policy & Terms & Conditions pages
 * Link in header: <link rel="stylesheet" href="assets/static/css/legal.css"/>
 * Or include inline in each page via <style> block.
 */

/* ════════════════════════════════════════════════════
   TABLE OF CONTENTS SIDEBAR
════════════════════════════════════════════════════ */
.wlx-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border-left: 3px solid #4f46e5;
}

.wlx-toc-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.wlx-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wlx-toc-list li {
    margin-bottom: 4px;
}

.wlx-toc-list a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: .83rem;
    line-height: 1.4;
    transition: background .2s, color .2s;
}

.wlx-toc-list a:hover,
.wlx-toc-list a.active {
    background: #4f46e510;
    color: #4f46e5;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════
   LEGAL CONTENT
════════════════════════════════════════════════════ */
.wlx-legal-content {
    font-size: .96rem;
    line-height: 1.8;
    color: #334155;
}

/* Intro box */
.wlx-legal-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #4f46e508;
    border: 1px solid #4f46e520;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 40px;
    font-size: .93rem;
    line-height: 1.75;
    color: #334155;
}

.wlx-legal-intro-icon {
    font-size: 1.6rem;
    color: #4f46e5;
    flex-shrink: 0;
    margin-top: 2px;
}

.wlx-legal-intro a {
    color: #4f46e5;
    font-weight: 600;
}

/* ── Sections ── */
.wlx-legal-section {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 110px; /* offset for sticky header */
}

.wlx-legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── Headings ── */
.wlx-legal-h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 18px;
}

.wlx-legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.wlx-legal-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 10px;
}

/* ── Paragraphs ── */
.wlx-legal-content p {
    margin-bottom: 14px;
    color: #475569;
}

/* ── Lists ── */
.wlx-legal-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
}

.wlx-legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
    color: #475569;
    font-size: .93rem;
}

.wlx-legal-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f46e5;
    flex-shrink: 0;
    margin-top: 9px;
}

.wlx-legal-list li strong {
    color: #1e293b;
}

.wlx-legal-list a {
    color: #4f46e5;
    font-weight: 600;
}

/* ── Note / callout boxes ── */
.wlx-legal-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: .88rem;
    color: #1d4ed8;
    line-height: 1.65;
    margin: 16px 0;
}

.wlx-legal-note i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wlx-legal-note--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* ── Cookie table ── */
.wlx-cookie-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 16px 0 20px;
}

.wlx-cookie-row {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    gap: 0;
}

.wlx-cookie-header {
    background: #4f46e5;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.wlx-cookie-header > div,
.wlx-cookie-row > div {
    padding: 12px 16px;
    border-right: 1px solid rgba(0,0,0,.06);
    font-size: .87rem;
    color: #475569;
    line-height: 1.5;
}

.wlx-cookie-header > div {
    color: #fff;
    border-right-color: rgba(255,255,255,.15);
}

.wlx-cookie-row > div:last-child { border-right: none; }

.wlx-cookie-row:not(.wlx-cookie-header) {
    border-bottom: 1px solid #f1f5f9;
}

.wlx-cookie-row:not(.wlx-cookie-header):last-child {
    border-bottom: none;
}

.wlx-cookie-row:not(.wlx-cookie-header):nth-child(even) {
    background: #fafafa;
}

@media (max-width: 576px) {
    .wlx-cookie-row {
        grid-template-columns: 1fr;
    }
    .wlx-cookie-row > div {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
    .wlx-cookie-row > div:last-child {
        border-bottom: none;
    }
}

/* ── Contact card ── */
.wlx-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 0;
    margin-top: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.wlx-contact-card-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .92rem;
    color: #475569;
}

.wlx-contact-card-row:last-child {
    border-bottom: none;
}

.wlx-contact-card-row i {
    color: #4f46e5;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    text-align: center;
}

.wlx-contact-card-row a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}

.wlx-contact-card-row a:hover {
    opacity: .75;
}

/* ── TOC active link via JS ── */
.wlx-toc-list a.active {
    background: #4f46e510;
    color: #4f46e5;
    font-weight: 700;
}
