/* ==============================================
   LEGAL PAGE — legal-page.css
   Shared by Privacy Policy and Terms & Conditions
   (page-legal.php). Only enqueued when that
   template is active.
   ============================================== */

#tx-legal-page {
    padding: 55px 0 70px;
}

/* ---------- Sidebar ---------- */
.tx-legal-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tx-legal-toc-widget {
    background:    #fff;
    border:        1px solid var(--color-border, #e9ecef);
    border-radius: 12px;
    padding:       20px;
}

.tx-legal-toc-widget h4 {
    font-family:    'Oswald', sans-serif;
    font-size:      0.85rem;
    font-weight:    700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color:          var(--color-navy, #00406B);
    margin-bottom:  14px;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--color-light-bg, #f7f9fb);
}

.tx-legal-toc-list { list-style: none; margin: 0; padding: 0; }
.tx-legal-toc-list li:not(:last-child) { margin-bottom: 4px; }

.tx-legal-toc-list a {
    display:          flex;
    align-items:      flex-start;
    gap:              8px;
    padding:          7px 6px;
    border-radius:    6px;
    text-decoration:  none;
    font-size:        0.83rem;
    color:            #444;
    line-height:      1.4;
    transition:       background 0.18s ease, color 0.18s ease;
}

.tx-legal-toc-list a:hover,
.tx-legal-toc-list a.is-active {
    background: var(--color-light-bg, #f7f9fb);
    color:      var(--color-primary, #015285);
}

.tx-legal-toc-list a i {
    font-size:  0.75rem;
    color:      var(--color-primary, #015285);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---------- Highlight box ---------- */
.tx-legal-highlight-box {
    background:    var(--color-light-bg, #f7f9fb);
    border:        1px solid var(--color-border, #e9ecef);
    border-radius: 12px;
    padding:       24px 20px;
    text-align:    center;
}

.tx-legal-highlight-icon {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    width:            56px;
    height:           56px;
    border-radius:    50%;
    background:       #fff;
    color:            #e63946;
    font-size:        1.5rem;
    box-shadow:       0 6px 18px rgba(0,0,0,0.08);
    margin-bottom:    14px;
}

.tx-legal-highlight-box h5 {
    font-family: 'Oswald', sans-serif;
    font-size:   1rem;
    font-weight: 700;
    color:       var(--color-navy, #00406B);
    margin-bottom: 8px;
}

.tx-legal-highlight-box p {
    font-size: 0.82rem;
    color: var(--color-muted, #6c757d);
    line-height: 1.6;
    margin-bottom: 18px;
}

.tx-legal-highlight-btn {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    gap:              8px;
    background:       var(--color-primary, #015285);
    color:            #fff;
    text-decoration:  none;
    font-family:      'Oswald', sans-serif;
    font-size:        0.8rem;
    font-weight:      700;
    text-transform:   uppercase;
    padding:          11px 20px;
    border-radius:    30px;
    width:            100%;
    transition:       background 0.2s ease;
}

.tx-legal-highlight-btn:hover { background: var(--color-navy, #00406B); color: #fff; }

/* ---------- Main content ---------- */
.tx-legal-updated {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    background:     var(--color-light-bg, #f7f9fb);
    color:          var(--color-muted, #6c757d);
    font-size:      0.82rem;
    padding:        8px 16px;
    border-radius:  30px;
    margin-bottom:  28px;
}

.tx-legal-updated i { color: var(--color-primary, #015285); }

/* Headings inside the rendered content */
.tx-legal-content h2 {
    font-family:   'Oswald', sans-serif;
    font-size:     1.25rem;
    font-weight:   700;
    color:         var(--color-navy, #00406B);
    margin-top:    36px;
    margin-bottom: 12px;
    scroll-margin-top: 100px; /* keeps the heading visible below a sticky header when jumped to */
}

.tx-legal-content h2:first-child { margin-top: 0; }

.tx-legal-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size:   1.02rem;
    font-weight: 700;
    color:       var(--color-navy, #00406B);
    margin-top:  22px;
    margin-bottom: 10px;
}

.tx-legal-content p {
    color: #444;
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* Checkmark bullet lists */
.tx-legal-content ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.tx-legal-content ul li {
    position:      relative;
    padding-left:  26px;
    font-size:     0.9rem;
    color:         #444;
    line-height:   1.8;
    margin-bottom: 6px;
}

.tx-legal-content ul li::before {
    content:     '\f00c'; /* Font Awesome check */
    font-family: FontAwesome;
    position:    absolute;
    left:        0;
    top:         2px;
    color:       var(--color-primary, #015285);
    font-size:   0.8rem;
}

.tx-legal-content ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

.tx-legal-content ol li {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 6px;
}

.tx-legal-content hr {
    border: none;
    border-top: 1px solid var(--color-border, #e9ecef);
    margin: 24px 0;
}

.tx-legal-content strong { color: var(--color-navy, #00406B); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .tx-legal-sidebar { position: static; margin-bottom: 30px; }
}
