/* ============================================================
   Apex Turbo Task Planner — Official Promotion Website
   VeloLaunch Editorial Design System
   Warm Ivory Surfaces, Deep Charcoal Focus, Restrained Orange Accents
   ============================================================ */

/* --- Font Face --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('InterVariable.woff2') format('woff2');
}

/* --- Design Tokens --- */
:root {
    /* Light Theme (Default: Warm Ivory Editorial) */
    --bg-main: #F8F7F3;
    --bg-raised: #FFFFFF;
    --bg-subtle: #F0EFEB;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: #FFFFFF;
    --text-primary: #171918;
    --text-secondary: #626561;
    --text-muted: #747772;
    --border-color: #DDDED8;
    --border-focus: #C5C6BF;
    --divider-color: #E3E3DE;

    /* Accent Orange */
    --accent-orange: #F36335;
    --accent-orange-hover: #DE5227;
    --accent-orange-glow: rgba(243, 99, 53, 0.22);
    --accent-orange-subtle: rgba(243, 99, 53, 0.08);
    --accent-orange-tint: #FCEDE5;
    --accent-text-light: #B63D1B;

    /* Focus Mode Dark Palette Tokens (Used in Mockup & Dark Theme) */
    --focus-bg-main: #191C1A;
    --focus-bg-raised: #222623;
    --focus-bg-secondary: #292D29;
    --focus-text-primary: #F8F7F3;
    --focus-text-secondary: #C1C5BE;
    --focus-text-muted: #A2A89F;
    --focus-border-color: #3B403A;
    --focus-divider-color: #353B34;

    /* Priorities */
    --priority-low: #2E7D32;
    --priority-med: #F59E0B;
    --priority-high: #F36335;
    --priority-crit: #DC2626;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(243, 99, 53, 0.18);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;

    /* Scrollbar Tokens (Light Warm Ivory) */
    --scrollbar-track: var(--bg-main);
    --scrollbar-thumb: #D5D6CF;
    --scrollbar-thumb-hover: #B8B9B0;
    --scrollbar-thumb-active: var(--accent-orange);
}

/* --- Dark Theme Overrides --- */
body.dark-mode {
    --bg-main: #131514;
    --bg-raised: #1C1F1D;
    --bg-subtle: #242825;
    --bg-card: rgba(28, 31, 29, 0.88);
    --bg-card-hover: #242825;
    --text-primary: #F8F7F3;
    --text-secondary: #C1C5BE;
    --text-muted: #8E948B;
    --border-color: #313631;
    --border-focus: #474E47;
    --divider-color: #2B302B;
    --accent-orange-tint: rgba(243, 99, 53, 0.15);
    --accent-text-light: #FF9976;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 70px rgba(0, 0, 0, 0.55);

    /* Scrollbar Tokens (Deep Charcoal) */
    --scrollbar-track: var(--bg-main);
    --scrollbar-thumb: #3A403A;
    --scrollbar-thumb-hover: #525A51;
    --scrollbar-thumb-active: var(--accent-orange);
}

/* --- Global Reset & Theme-Following Scrollbar --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Custom Scrollbar (WebKit: Chrome, Edge, Safari, Brave, Opera) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: var(--radius-pill);
    border: 2px solid var(--scrollbar-track);
    transition: background-color var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-active);
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* --- Background Texture / Ambient Glow --- */
.ambient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 99, 53, 0.12) 0%, rgba(243, 99, 53, 0.04) 45%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

body.dark-mode .ambient-glow {
    background: radial-gradient(circle, rgba(243, 99, 53, 0.18) 0%, rgba(243, 99, 53, 0.06) 50%, transparent 75%);
    opacity: 0.7;
}

/* --- Utility Containers --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.18;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Badges & Pills --- */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.pill-badge.pill-accent {
    background: var(--accent-orange-tint);
    border-color: rgba(243, 99, 53, 0.28);
    color: var(--accent-orange);
}

.pill-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    text-align: center;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 16px var(--accent-orange-glow);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(243, 99, 53, 0.35);
}

.btn-secondary {
    background-color: var(--bg-raised);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--border-focus);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 15px;
    border-radius: var(--radius-pill);
}

/* --- Sticky Navigation Header --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(248, 247, 243, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

body.dark-mode .site-nav {
    background: rgba(19, 21, 20, 0.85);
    border-bottom-color: var(--border-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.brand-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.brand-subtitle-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-install-btn {
    display: inline-flex;
}

.mobile-nav-cta {
    display: none;
}

/* Theme Toggle Button */
.theme-switch-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-raised);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.theme-switch-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-raised);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background: var(--bg-subtle);
    border-color: var(--border-focus);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-pill {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.hero-title .text-gradient-orange {
    background: linear-gradient(135deg, #F36335 0%, #E04D1E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 36px;
    font-weight: 450;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    color: var(--accent-orange);
}

/* --- Interactive Live Extension Showcase --- */
.showcase-section {
    padding: 20px 0 100px 0;
}

.mockup-wrapper {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

/* Realistic Browser Window Frame */
.browser-window {
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.browser-header {
    background: var(--bg-subtle);
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.browser-url-bar {
    flex: 1;
    max-width: 520px;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}

.browser-url-bar svg {
    color: #2E7D32;
    flex-shrink: 0;
}

.browser-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chrome-ext-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-raised);
    border: 1px solid var(--accent-orange);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-orange);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-orange-glow);
    animation: floatGlow 3s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { box-shadow: 0 0 8px var(--accent-orange-glow); }
    100% { box-shadow: 0 0 18px rgba(243, 99, 53, 0.45); }
}

/* Browser Viewport with Interactive Extension Popup Inside */
.browser-viewport {
    min-height: 620px;
    background: radial-gradient(circle at 50% 30%, rgba(243, 99, 53, 0.05) 0%, transparent 60%), var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Simulated Floating Extension Popup */
.interactive-popup-frame {
    width: 420px;
    height: 580px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.interactive-popup-frame.mode-focus {
    background: var(--focus-bg-main);
    border-color: var(--focus-border-color);
    color: var(--focus-text-primary);
}

/* Header in Interactive Demo */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 8px 18px;
    border-bottom: 1px solid transparent;
}

.demo-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.demo-brand img {
    width: 24px;
    height: 24px;
}

.demo-titles {
    display: flex;
    flex-direction: column;
}

.demo-app-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

.demo-app-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-datetime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
}

.interactive-popup-frame.mode-focus .demo-datetime-badge {
    background: var(--focus-bg-secondary);
    border-color: var(--focus-border-color);
    color: var(--focus-text-secondary);
}

.demo-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.interactive-popup-frame.mode-focus .demo-btn {
    color: var(--focus-text-secondary);
}

.demo-btn:hover {
    background: var(--bg-subtle);
}

/* Demo Body Content */
.demo-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 18px 12px 18px;
    display: flex;
    flex-direction: column;
}

.demo-streak-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2px;
}

.demo-streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-orange);
}

.demo-hero-text {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.demo-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.demo-progress-track {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.interactive-popup-frame.mode-focus .demo-progress-track {
    background: var(--focus-border-color);
}

.demo-progress-bar {
    height: 100%;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

/* Demo Tabs */
.demo-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.interactive-popup-frame.mode-focus .demo-tabs {
    border-bottom-color: var(--focus-border-color);
}

.demo-tab-item {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.interactive-popup-frame.mode-focus .demo-tab-item {
    color: var(--focus-text-secondary);
}

.demo-tab-item.active {
    background: var(--accent-orange);
    color: #FFFFFF !important;
}

/* Demo Task Input */
.demo-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 6px 4px 14px;
    margin-bottom: 12px;
}

.interactive-popup-frame.mode-focus .demo-input-box {
    background: var(--focus-bg-raised);
    border-color: var(--focus-border-color);
}

.demo-input-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: inherit;
    font-family: inherit;
}

.demo-add-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.interactive-popup-frame.mode-focus .demo-add-btn {
    background: var(--accent-orange);
    color: #FFFFFF;
}

/* Demo Task List */
.demo-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.demo-task-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.interactive-popup-frame.mode-focus .demo-task-card {
    background: var(--focus-bg-raised);
    border-color: var(--focus-border-color);
}

.demo-task-card.completed .demo-task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.demo-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 2px solid #383B38;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.interactive-popup-frame.mode-focus .demo-checkbox {
    border-color: #9DA29D;
}

.demo-checkbox.checked {
    background: var(--accent-orange);
    border-color: var(--accent-orange) !important;
}

.demo-checkbox svg {
    display: none;
}

.demo-checkbox.checked svg {
    display: block;
}

.demo-task-title {
    flex: 1;
    font-weight: 500;
}

.demo-task-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.interactive-popup-frame.mode-focus .demo-task-tag {
    background: var(--focus-bg-secondary);
    border-color: var(--focus-border-color);
    color: var(--focus-text-secondary);
}

/* Demo Focus Dock */
.demo-focus-dock {
    margin-top: auto;
    padding: 10px 14px;
    background: var(--focus-bg-main);
    border: 1px solid #4A5049;
    border-radius: var(--radius-md);
    color: var(--focus-text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.demo-focus-dock-info {
    display: flex;
    flex-direction: column;
}

.demo-focus-dock-title {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

.demo-focus-dock-sub {
    font-size: 11px;
    color: var(--focus-text-muted);
}

.demo-play-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

/* Interactive Demo Mode Toggle Bar (Below mockup) */
.demo-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.switcher-pill {
    display: flex;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.switcher-btn {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.switcher-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .switcher-btn.active {
    background: var(--accent-orange);
    color: #FFFFFF;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Bento Grid Features Section --- */
.bento-section {
    padding: 80px 0 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.bento-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.bento-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Visual UI snippet inside bento cards */
.bento-visual {
    margin-top: auto;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

/* Specific Focus Bento Card in Dark */
.bento-dark-focus {
    background: var(--focus-bg-main);
    color: var(--focus-text-primary);
    border-color: var(--focus-border-color);
}

.bento-dark-focus .bento-card-title {
    color: var(--focus-text-primary);
}

.bento-dark-focus .bento-card-desc {
    color: var(--focus-text-secondary);
}

.bento-dark-focus .bento-icon-box {
    background: var(--focus-bg-secondary);
    border-color: var(--focus-border-color);
}

/* Circular Timer Dial Graphic */
.timer-dial-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 0;
}

.dial-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #3B403A;
    border-top-color: var(--accent-orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 19px;
    color: #FFFFFF;
}

.dial-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--focus-text-muted);
}

/* --- Deep Dive Tabbed Tour Section --- */
.deep-dive-section {
    padding: 90px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal);
}

body.dark-mode .deep-dive-section {
    background: #161817;
}

.feature-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.feature-tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-raised);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.feature-tab-btn:hover {
    border-color: var(--border-focus);
    color: var(--text-primary);
}

.feature-tab-btn.active {
    background: var(--accent-orange);
    color: #FFFFFF;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 14px var(--accent-orange-glow);
}

.feature-tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.feature-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.tour-text h3 {
    font-size: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.tour-text p {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tour-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tour-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.tour-highlights li svg {
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.tour-preview-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* --- Video Demo Section --- */
.video-section {
    padding: 100px 0;
    text-align: center;
}

.video-shell {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.video-element-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000000;
}

.video-player {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.video-sound-toggle-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(18, 20, 19, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-quick);
}

.video-sound-toggle-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 20px rgba(243, 99, 53, 0.45);
}

.video-sound-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

.video-sound-toggle-btn.unmuted {
    background: rgba(243, 99, 53, 0.85);
    border-color: var(--accent-orange);
}

.video-sound-toggle-btn.unmuted:hover {
    background: var(--accent-orange-hover);
}

/* --- Comparison Table --- */
.compare-section {
    padding: 90px 0;
}

.table-wrapper {
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th, .compare-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--divider-color);
    font-size: 14px;
}

.compare-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    color: var(--text-primary);
}

.compare-table th.highlight-col, .compare-table td.highlight-col {
    background: rgba(243, 99, 53, 0.05);
    font-weight: 600;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.badge-yes {
    color: #2E7D32;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.badge-no {
    color: #DC2626;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* --- Installation Guide Section --- */
.install-section {
    padding: 90px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .install-section {
    background: #161817;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-orange-tint);
    color: var(--accent-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(243, 99, 53, 0.25);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.code-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.copy-btn:hover {
    color: var(--accent-orange);
}

/* Shortcut Box in Step 3 */
.shortcut-box {
    margin-top: auto;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.shortcut-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.shortcut-badge kbd {
    display: inline-block;
    padding: 2px 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shortcut-os {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

/* --- FAQ Accordion --- */
.faq-section {
    padding: 90px 0;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-focus);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 17px;
    font-weight: 650;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 26px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 220px;
    padding-bottom: 22px;
}

/* --- Bottom Conversion Banner --- */
.cta-banner-section {
    padding: 40px 0 100px 0;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(243, 99, 53, 0.12) 0%, rgba(243, 99, 53, 0.03) 100%), var(--bg-raised);
    border: 1px solid rgba(243, 99, 53, 0.35);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 42px;
    margin-bottom: 18px;
    letter-spacing: -0.035em;
}

.cta-banner p {
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 32px auto;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 36px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-col p {
    margin-top: 14px;
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid var(--divider-color);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-division-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all var(--transition-fast);
}

.footer-division-pill:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* --- Toast Notification --- */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-title { font-size: 46px; }
    .bento-col-8, .bento-col-4, .bento-col-6 { grid-column: span 12; }
    .tour-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }

    /* Mobile Header Layout */
    .header-install-btn {
        display: none !important;
    }

    .brand-link {
        min-width: 0;
        flex-shrink: 1;
        gap: 10px;
    }

    .brand-logo-wrap {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .brand-meta {
        min-width: 0;
        overflow: hidden;
    }

    .brand-title {
        font-size: 16px;
        white-space: nowrap;
    }

    .brand-subtitle-tag {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 240px;
    }

    .nav-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .theme-switch-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    /* Mobile Nav Dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-raised);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        gap: 4px;
        z-index: 999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.open {
        display: flex;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 11px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
        font-weight: 500;
        color: var(--text-primary);
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: var(--bg-subtle);
        color: var(--accent-orange);
    }

    .mobile-nav-cta {
        display: block;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--divider-color);
    }

    .mobile-menu-install-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(243, 99, 53, 0.28);
    }
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 64px;
    }
    .hero-title { font-size: 34px; }
    .hero-desc { font-size: 16px; }
    .interactive-popup-frame { width: 100%; height: 520px; }
    .section-title { font-size: 28px; }
    .cta-banner h2 { font-size: 28px; }
    .footer-top { grid-template-columns: 1fr; }
    .brand-subtitle-tag { max-width: 190px; }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    .site-nav {
        height: var(--header-height);
    }
    .nav-inner {
        padding: 0 12px;
        gap: 8px;
    }
    .brand-link {
        gap: 8px;
    }
    .brand-logo-wrap {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .brand-logo-img {
        width: 22px;
        height: 22px;
    }
    .brand-title {
        font-size: 15px;
    }
    .brand-subtitle-tag {
        font-size: 10.5px;
        max-width: 145px;
        letter-spacing: -0.01em;
    }
    .nav-actions {
        gap: 6px;
    }
    .theme-switch-btn,
    .mobile-nav-toggle {
        width: 36px;
        height: 36px;
    }
    .nav-links {
        top: var(--header-height);
        padding: 12px 14px 16px;
    }
}

@media (max-width: 360px) {
    .brand-subtitle-tag {
        max-width: 110px;
        font-size: 10px;
    }
    .brand-title {
        font-size: 14.5px;
    }
}

/* ============================================================
   12. LEGAL & PRIVACY POLICY PAGE STYLES
   ============================================================ */
.legal-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 40px;
    border-bottom: 1px solid var(--divider-color);
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-main) 100%);
    position: relative;
}

.legal-hero-inner {
    max-width: 860px;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-raised);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.legal-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.legal-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.legal-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.legal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 80px;
}

.legal-toc-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.legal-toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.legal-toc-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--divider-color);
}

.legal-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.legal-toc-list a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-toc-list a:hover {
    background: var(--bg-subtle);
    color: var(--accent-orange);
    padding-left: 14px;
}

.legal-content {
    min-width: 0;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-height) + 24px);
    transition: border-color var(--transition-fast);
}

.legal-section:hover {
    border-color: var(--border-focus);
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--divider-color);
}

.legal-section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-orange-tint);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 16px 20px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section li strong {
    color: var(--text-primary);
}

.legal-callout {
    background: var(--bg-subtle);
    border-left: 4px solid var(--accent-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-primary);
}

.legal-callout-success {
    background: rgba(46, 125, 50, 0.08);
    border-left-color: var(--priority-low);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.legal-table th,
.legal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--divider-color);
}

.legal-table th {
    background: var(--bg-subtle);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-perm-code {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    color: var(--accent-orange);
    font-weight: 600;
}

.legal-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(46, 125, 50, 0.12);
    color: var(--priority-low);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }
    .legal-toc-wrapper {
        position: relative;
        top: 0;
    }
    .legal-section {
        padding: 28px 24px;
    }
    .legal-title {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .legal-title {
        font-size: 28px;
    }
    .legal-subtitle {
        font-size: 16px;
    }
    .legal-section {
        padding: 22px 18px;
    }
    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
    }
}
