body, html, .page-bg, .legal-hub-section, .container, #app, main, .wrapper, .main-content, .page-wrapper {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* rusty begin new code | 2026-09-04 01:23 */
/* Action: Dark-glass styles for the Legal & Policy Hub */

/* rusty begin update | 2026-09-04 01:35 */
/* Action: Fix BUG-05 — Remove overflow:hidden to prevent clipping hover box-shadows
   on FAQ cards and CTA panels. Per workspace rules, clipping should be applied
   to internal wrappers (.img-container etc.), not parent card containers. */
.dark-glass-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--home-border, rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
/* rusty end update */

/* rusty begin update | 2026-09-04 01:35 */
/* Action: Fix BUG-06/BUG-07 — Retarget from dead .legal-toc .nav-pills selectors
   to .legal-horizontal-tabs (where the tabs actually live after the UI restructure). */

/* Horizontal Page Tabs (About, Terms, Privacy) */
.legal-horizontal-tabs {
    position: sticky !important;
    top: 90px !important;
    z-index: 1030 !important;
    transition: top 0.3s ease;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--home-border, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 10px;
    gap: 0.5rem;
}

.legal-horizontal-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

[dir="ltr"] .legal-horizontal-tabs .nav-link {
    text-align: left;
}

.legal-horizontal-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.legal-horizontal-tabs .nav-link.active {
    color: var(--cyber-cyan, #06b6d4);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}
/* rusty end update */

/* Content Panes */
.legal-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.legal-pane.active {
    display: block;
}

.pane-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* CKEditor Content Overrides */
.ckeditor-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
}

.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
    color: var(--cyber-cyan, #06b6d4);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ckeditor-content p {
    margin-bottom: 1.25rem;
}

.ckeditor-content ul, 
.ckeditor-content ol {
    margin-bottom: 1.5rem;
    padding-inline-start: 1.5rem;
}

.ckeditor-content li {
    margin-bottom: 0.5rem;
}

.ckeditor-content strong,
.ckeditor-content b {
    color: #fff;
    font-weight: 700;
}

.ckeditor-content a {
    color: var(--cyber-purple, #8b5cf6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ckeditor-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cyber Glitch Title (Optional flair) */
.cyber-glitch {
    position: relative;
    color: #fff;
    font-weight: bold;
}

/* rusty begin new code | 2026-09-04 01:35 */
/* Action: Fix BUG-04 — Define .cyber-btn-primary and .cyber-input.
   These were referenced in both Blade files but never defined,
   causing raw Bootstrap white/grey defaults to render. */

/* Cyber Primary Button */
.cyber-btn-primary {
    background: linear-gradient(135deg, var(--cyber-cyan, #06b6d4) 0%, var(--cyber-purple, #8b5cf6) 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.cyber-btn-primary:hover,
.cyber-btn-primary:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.45), 0 0 20px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
    color: #fff !important;
}

.cyber-btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* Cyber Form Inputs */
.cyber-input {
    background: rgba(10, 10, 15, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.cyber-input:focus {
    outline: none !important;
    border-color: var(--cyber-cyan, #06b6d4) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), 0 0 12px rgba(6, 182, 212, 0.1) !important;
    background: rgba(10, 10, 15, 0.8) !important;
}

/* rusty begin new code | 2026-09-04 05:35 */
/* Action: QA fix — Bootstrap's .form-select draws its caret via background-image, but
   .cyber-input's `background: ... !important` is a shorthand, so combining the two
   classes (needed for the dark-theme contact form dropdown) silently resets that
   background-image to none — the arrow vanishes entirely, including on :focus, where
   .cyber-input re-declares the same shorthand a second time. Re-asserting a cyan
   chevron here (after .cyber-input in the cascade) restores it in both states. */
/* rusty begin update | 2026-09-04 07:00 */
/* Action: Scope widened from .legal-contact-form-wrapper to any select.cyber-input.
   The support-ticket form on /support now has its own section dropdown and hit the
   exact same vanishing-caret bug. This stylesheet only loads on /support and /legal,
   so the bare element+class selector is already scoped to those two pages. */
select.cyber-input,
select.cyber-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2306b6d4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

[dir="rtl"] select.cyber-input {
    background-position: left 0.75rem center !important;
    padding-right: 1rem;
    padding-left: 2.25rem;
}
/* rusty end update */
/* rusty end new code */

.faq-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.faq-card-cyan:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(6, 182, 212, 0.25);
}

.faq-card-purple:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 92, 246, 0.25);
}

.legal-toc,
.legal-toc.position-sticky {
    position: sticky !important;
    top: 170px !important;
    height: max-content !important;
    z-index: 1010;
    align-self: flex-start;
}

.toc-link {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.35rem 0.65rem;
    border-inline-start: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.toc-link:hover {
    color: #fff;
}

.toc-link.active-toc {
    color: var(--cyber-cyan, #06b6d4);
    border-inline-start-color: var(--cyber-cyan, #06b6d4);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.18);
}

.cyber-heading {
    color: var(--cyber-cyan, #06b6d4);
    font-weight: 700;
    letter-spacing: 0.01em;
    scroll-margin-top: 180px !important;
}

/* rusty begin new code | 2026-09-04 01:45 */
/* Action: Fix BUG-5A — .support-subtitle replaces .text-muted on dark glass backgrounds.
   Bootstrap's text-muted (#6c757d) is near-invisible on dark backgrounds.
   This class uses a lighter, readable rgba white. */
.support-subtitle {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Action: Fix BUG-5B — Add bottom padding to the last section before .footer-bar
   to prevent content from colliding with the sticky footer after .footer-main was removed. */
.support-contact,
.legal-hub-section,
.support-faq-grid {
    margin-bottom: 0;
}

.legal-hub-section:last-of-type,
.support-hero:last-of-type,
.support-hub-section:last-of-type {
    padding-bottom: 3rem;
}

.footer-bar {
    margin-top: 0;
}

/* rusty begin new code | 2026-09-04 06:00 */
/* Action: Support Hub Phases 2 & 3 — live search dropdown, data-driven FAQ card glow
   color (replaces the old .faq-card-cyan/.faq-card-purple pair, kept above for
   whatever else may still reference them), and the answer modal + particle canvas. */

/* --- Live search dropdown --- */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 1040;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
    text-align: start;
}

.search-result-item,
.search-result-empty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-result-item i {
    flex-shrink: 0;
    color: var(--cyber-cyan, #06b6d4);
}

.search-result-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #fff;
}

.search-result-empty {
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}

/* --- Data-driven FAQ card glow (icon + hover), driven by --faq-color set inline --- */
.faq-card-trigger {
    --faq-color: var(--cyber-cyan, #06b6d4);
    cursor: pointer;
}

.faq-card-trigger .icon-wrapper {
    background: color-mix(in srgb, var(--faq-color) 12%, transparent);
    color: var(--faq-color);
}

.faq-card-trigger:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px color-mix(in srgb, var(--faq-color) 30%, transparent);
}

.faq-card-trigger:focus-visible {
    outline: 2px solid var(--faq-color);
    outline-offset: 3px;
}

/* --- FAQ answer modal --- */
.faq-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.faq-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
}

.faq-modal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.faq-modal-body {
    position: relative;
    z-index: 1;
    padding: 3rem 2.5rem;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
}

.faq-modal-icon {
    --faq-color: var(--cyber-cyan, #06b6d4);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--faq-color) 15%, transparent);
    color: var(--faq-color);
    font-size: 1.8rem;
}

.faq-modal-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-modal-close:hover {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyber-cyan, #06b6d4);
}

@media (max-width: 768px) {
    .faq-modal-body {
        padding: 2.25rem 1.5rem;
    }
}
/* rusty end new code */
/* rusty end new code */

/* rusty begin new code | 2026-09-04 08:00 */
/* Action: Detailed partner list on the Legal & Policy Hub's "About MacBlash" tab
   (Phase 3 of the Partner module migration). */
#partners {
    /* A fresh page load of /legal#partners scrolls via the browser's native fragment
       handling, not support-hub.js's own TOC click offset — this is what keeps the
       section clear of the sticky page header + sticky horizontal tabs bar. */
    scroll-margin-top: 200px;
}

/* rusty begin update | 2026-09-04 10:00 */
/* Action: QA request — partner cards moved from a static lift-on-hover card to the
   shared .partner-3d-card tilt+reveal treatment (macblash-site-theme.css, loaded
   everywhere), and logos now sit naked (transparent) by default instead of behind a
   white chip. The old transform:translateY hover rule is removed rather than kept
   alongside it: GSAP sets this element's `transform` via inline style on every
   mousemove tick, which always wins over a class-based CSS rule on the same
   property, so the old rule would have gone silently inert the moment a cursor
   entered the card — better removed than left as dead, misleading code. Padding
   still comes from Bootstrap's p-4 class already on the element in the Blade. */
.partner-detail-logo {
    height: 56px;
    width: 96px;
    object-fit: contain;
}
/* rusty end update */
/* rusty end new code */
