/**
 * Ribeiro Cavalcante Advocacia - Professional Landing Page Styles
 * Author: Claude Code
 * Version: 2.0.0
 * 
 * Features:
 * - Modern CSS Grid & Flexbox layouts
 * - Professional color scheme optimized for legal services
 * - Mobile-first responsive design
 * - Accessibility-compliant (WCAG 2.1 AA)
 * - Performance optimized with hardware acceleration
 * - OAB Provimento 205/2021 compliant
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors - Professional Legal Palette */
    --primary: #b99768;
    --primary-dark: #a18256;
    --primary-light: #c9a675;
    --whatsapp: #25d366;
    --whatsapp-dark: #1fb55c;
    --dark: #1a1d29;
    --dark-alt: #2c3e50;
    --light: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --info: #0284c7;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --content-max-width: 65ch;
    --header-height: 70px;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: var(--font-body);
    font-feature-settings: normal;
    font-variation-settings: normal;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    line-height: inherit;
    color: var(--gray-800);
    background-color: var(--light);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Mobile-first container improvements */
@media (max-width: 480px) {
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

/* Background Utilities */
.bg-light { background-color: var(--gray-50); }
.bg-dark { 
    background-color: var(--dark);
    color: var(--light);
}

/* Text Utilities */
.text-center { text-align: center; }
.light { color: var(--light) !important; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin: 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

strong {
    font-weight: 600;
}

blockquote {
    margin: 0;
    padding: var(--space-4) var(--space-6);
    border-left: 4px solid var(--primary);
    background-color: var(--gray-50);
    font-style: italic;
    color: var(--gray-700);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    color: var(--light);
    border-color: var(--primary-dark);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--light);
    border-color: #25D366;
}

.btn-whatsapp:hover:not(:disabled) {
    background-color: #1DA851;
    border-color: #1DA851;
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-full { width: 100%; }

.btn-header {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-4);
}

.btn-header .btn-text {
    font-size: var(--text-sm);
    font-weight: 700;
}

.btn-header .btn-subtitle {
    font-size: var(--text-xs);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .btn-header {
        display: none;
    }
}

/* Button States */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn.error {
    background-color: var(--error);
    border-color: var(--error);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
.header-section {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-section.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-4);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo-img:hover {
    opacity: 0.8;
}

/* Main Navigation */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: center;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--gray-700);
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    display: block;
    animation: slideDown var(--transition-base);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: var(--space-4) 0;
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) var(--space-6);
    color: var(--gray-700);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 29, 41, 0.9) 0%,
        rgba(44, 62, 80, 0.8) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 1px 1px, var(--light) 1px, transparent 0);
    background-size: 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    color: var(--light);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-highlight {
    display: block;
    color: var(--primary-light);
    font-size: 0.8em;
    margin-top: var(--space-2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-12);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        gap: var(--space-3);
        margin-bottom: var(--space-8);
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: left;
}

.btn-main {
    font-weight: 700;
    font-size: var(--text-base);
}

.btn-sub {
    font-size: var(--text-xs);
    opacity: 0.9;
}

@media (max-width: 640px) {
    .btn-main {
        font-size: var(--text-sm);
    }
    
    .btn-sub {
        font-size: 0.7rem;
    }
    
    .btn-xl {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
}

.btn-icon {
    font-size: var(--text-lg);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-icon {
    display: block;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.trust-text {
    display: block;
    font-size: var(--text-sm);
    color: var(--light);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-1);
}

.trust-sub {
    display: block;
    font-size: var(--text-xs);
    color: var(--light);
    opacity: 0.8;
    font-weight: 400;
}

/* Mobile-first responsive design for trust indicators */
@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        margin-top: var(--space-8);
    }
    
    .trust-item {
        width: 100%;
        max-width: 300px;
        padding: var(--space-3);
    }
    
    .trust-icon {
        font-size: var(--text-xl);
    }
    
    .trust-text {
        font-size: var(--text-sm);
    }
    
    .trust-sub {
        font-size: 0.7rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.scroll-text {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.scroll-arrow {
    font-size: var(--text-xl);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTIONS ===== */
.section-problem {
    padding: var(--space-24) 0 var(--space-16) 0;
    background: var(--gray-50);
}

.section-rights,
.section-evidence,
.section-team,
.section-contact {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: var(--gray-50);
}

.section-solution {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: var(--dark);
    color: var(--light);
}

.section-solution .section-label {
    color: var(--primary-light);
}

.section-solution .section-title {
    color: var(--light);
}

.section-solution .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-20);
    }
}

/* WhatsApp Contact Card */
.whatsapp-contact-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.whatsapp-icon-large {
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-svg {
    width: 32px;
    height: 32px;
    fill: var(--light);
}

.whatsapp-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-family: var(--font-heading);
}

.whatsapp-subtitle {
    font-size: var(--text-lg);
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.whatsapp-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
    .whatsapp-benefits {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--radius);
    border-left: 3px solid var(--whatsapp);
}

.benefit-icon {
    font-size: var(--text-lg);
}

.benefit-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.whatsapp-cta-section {
    text-align: center;
}

.btn-whatsapp {
    background: var(--whatsapp) !important;
    color: var(--light) !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.whatsapp-note {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-4);
    line-height: 1.6;
    text-align: left;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-icon {
    font-size: var(--text-2xl);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.info-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-2) 0;
    font-family: var(--font-heading);
}

.info-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-title {
    margin-bottom: var(--space-6);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

/* Problem Section */
.problem-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.problem-scenario {
    text-align: center;
    padding: var(--space-6);
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.problem-scenario:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scenario-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.scenario-title {
    margin-bottom: var(--space-4);
    color: var(--dark);
}

.scenario-text {
    color: var(--gray-600);
    line-height: 1.7;
}

.scenario-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.scenario-list li {
    padding: var(--space-2) 0;
    color: var(--gray-600);
    position: relative;
    padding-left: var(--space-6);
}

.scenario-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.problem-cta {
    text-align: center;
    padding: var(--space-8);
    background: var(--primary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-dark);
    margin-top: var(--space-12);
}

.cta-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.cta-text {
    font-size: var(--text-lg);
    color: var(--light);
    margin-bottom: var(--space-6);
}

.problem-cta .btn-secondary {
    background: var(--light) !important;
    color: var(--primary) !important;
    border: 2px solid var(--light);
}



.problem-cta strong {
    color: var(--light) !important;
}

/* Rights Section */
.rights-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rights-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-base);
}

.rights-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.card-icon {
    font-size: var(--text-2xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.card-title {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--dark);
}

.card-reference {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 600;
    margin-top: var(--space-1);
}

.card-content {
    padding: var(--space-6);
}

.legal-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: var(--space-4);
    font-style: italic;
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

.card-text {
    color: var(--gray-600);
    line-height: 1.7;
}

.rights-summary {
    background: var(--primary);
    color: var(--light);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
}

.summary-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

.summary-title {
    color: var(--light);
    margin-bottom: var(--space-6);
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-4);
    text-align: left;
}

@media (min-width: 768px) {
    .summary-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

.summary-list li {
    position: relative;
    padding-left: var(--space-8);
    line-height: 1.6;
}

.summary-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    font-weight: 700;
    font-size: var(--text-lg);
}

/* Evidence Section */
.evidence-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto var(--space-12);
}

.evidence-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

@media (min-width: 768px) {
    .evidence-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-12);
    padding-left: 80px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: auto;
        padding-left: var(--space-10);
    }
    
    .timeline-item:nth-child(even) {
        padding-right: var(--space-10);
    }
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: 4px solid var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .timeline-marker {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-number {
    color: var(--light);
    font-weight: 700;
    font-size: var(--text-sm);
}

.timeline-content {
    background: var(--light);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -12px;
    border: 12px solid transparent;
    border-right-color: var(--light);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -12px;
        border-right-color: var(--light);
        border-left-color: transparent;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        left: auto;
        right: -12px;
        border-left-color: var(--light);
        border-right-color: transparent;
    }
}

.timeline-title {
    margin-bottom: var(--space-4);
    color: var(--dark);
    font-size: var(--text-xl);
}

.timeline-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.timeline-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}

.timeline-checklist li {
    color: var(--gray-600);
    font-size: var(--text-sm);
    position: relative;
    padding-left: var(--space-6);
}

.timeline-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.evidence-cta {
    text-align: center;
}

.cta-box {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    text-align: left;
}

.cta-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
}

.cta-title {
    margin-bottom: var(--space-3);
    color: var(--dark);
    font-size: var(--text-xl);
}

.cta-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Solution Section */
.solution-process {
    display: grid;
    gap: var(--space-8);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .solution-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solution-process {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-header {
    margin-bottom: var(--space-6);
}

.step-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.step-meta {
    text-align: center;
}

.step-number {
    display: block;
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.step-title {
    color: var(--dark);
    font-size: var(--text-lg);
    margin: 0;
}

.step-content {
    text-align: left;
}

.step-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}

.step-features li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    position: relative;
    padding-left: var(--space-6);
}

.step-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.solution-guarantee {
    background: var(--primary);
    color: var(--light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    margin-top: var(--space-12);
}

.guarantee-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    text-align: center;
    flex-direction: column;
}

@media (max-width: 767px) {
    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }
}

.guarantee-icon {
    font-size: var(--text-4xl);
    flex-shrink: 0;
}

.guarantee-title {
    color: var(--light);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.guarantee-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.solution-guarantee .btn-secondary {
    background: var(--light) !important;
    color: var(--primary) !important;
    border: 2px solid var(--light);
}

/* Team Section */
.team-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--gray-700);
    transition: fill var(--transition-fast);
}

.social-link:hover .social-icon {
    fill: var(--light);
}

.team-info {
    padding: var(--space-6);
}

.team-name {
    margin-bottom: var(--space-2);
    color: var(--dark);
}

.team-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.team-oab {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.team-credentials {
    margin-bottom: var(--space-6);
}

.credentials-title {
    font-size: var(--text-sm);
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}

.credentials-list li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    position: relative;
    padding-left: var(--space-6);
}

.credentials-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.team-stats {
    display: flex;
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

.team-cta {
    text-align: center;
    padding: var(--space-8);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-cta .cta-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-cta .cta-title {
    margin-bottom: var(--space-4);
    color: var(--dark);
}

.team-cta .cta-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.team-cta .btn {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .team-cta .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Contact Section Specific Grid (Different from main contact-grid) */
.section-contact .contact-grid {
    display: grid;
    gap: var(--space-12);
    align-items: start;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .section-contact .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        align-items: stretch;
    }
}

.contact-column {
    width: 100%;
}

@media (min-width: 1024px) {
    .faq-column {
        order: 1;
    }
    
    .contact-column {
        order: 2;
    }
}

/* FAQ Styles */
.faq-list {
    display: grid;
    gap: var(--space-4);
}

.faq-item {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    transition: all var(--transition-fast);
    list-style: none;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--primary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-4);
    border-top: 1px solid var(--gray-200);
    animation: fadeIn var(--transition-base);
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

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

/* Contact Form */
.contact-form {
    background: var(--light);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(185, 151, 104, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox {
    margin-top: var(--space-1);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

.checkbox-label .link {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label .link:hover {
    color: var(--primary-dark);
}

.form-error {
    display: block;
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

.form-note {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--info);
}

.form-note p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

.btn-form {
    margin-top: var(--space-4);
}

/* Contact Info */
.contact-info {
    margin-top: var(--space-12);
}

.contact-title {
    margin-bottom: var(--space-6);
    color: var(--dark);
}

.contact-methods {
    display: grid;
    gap: var(--space-6);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.method-icon {
    font-size: var(--text-xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-title {
    margin-bottom: var(--space-1);
    color: var(--dark);
    font-size: var(--text-base);
}

.method-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.method-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    display: block;
}

.method-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.method-sub {
    font-size: var(--text-xs);
    color: var(--gray-600);
    margin-top: var(--space-1);
    font-style: italic;
    display: block;
}

.method-address {
    font-style: normal;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    gap: var(--space-12);
}

.footer-main {
    display: grid;
    gap: var(--space-12);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 2fr;
        align-items: start;
        text-align: left;
    }
}

.footer-brand {
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-brand {
        margin: 0;
    }
}

.footer-logo {
    height: 50px;
    margin-bottom: var(--space-4);
}

.footer-description {
    line-height: 1.7;
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.8);
}

.footer-certifications {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-align: center;
}

.cert-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cert-label {
    font-size: var(--text-sm);
    color: var(--primary-light);
    font-weight: 600;
}

.cert-numbers {
    color: var(--light);
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: var(--space-8);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-links {
        text-align: left;
    }
}

.links-title {
    color: var(--light);
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: var(--space-6);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr auto;
        text-align: left;
        align-items: center;
    }
}

.footer-copyright p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.footer-disclaimer {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .footer-social {
        align-items: flex-end;
    }
}

.social-title {
    color: var(--light);
    font-size: var(--text-sm);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social .social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-social .social-icon {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.8);
    transition: fill var(--transition-fast);
}

.footer-social .social-link:hover .social-icon {
    fill: var(--light);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-fixed);
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
        transform: scale(0.9);
    }
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: #25D366;
    color: var(--light);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.whatsapp-text {
    font-size: var(--text-sm);
}

@media (max-width: 640px) {
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.back-to-top-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

/* Notification System */
.notification {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    max-width: 400px;
    padding: var(--space-4) var(--space-6);
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--info);
    z-index: var(--z-tooltip);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Device-specific optimizations */
.touch-device .btn:hover {
    transform: none;
}

.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Print styles */
@media print {
    .header-section,
    .whatsapp-float,
    .back-to-top,
    .notification {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: var(--space-8) 0;
        background: none !important;
        color: var(--dark) !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--dark) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
    
    .section-problem,
    .section-rights,
    .section-evidence,
    .section-solution,
    .section-team,
    .section-contact {
        padding: var(--space-8) 0;
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #8B4513;
        --gray-300: #666;
        --gray-600: #333;
    }
    
    .btn-primary {
        border-width: 2px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-pattern {
        animation: none;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* Force dark mode prevention (legal sites should be light) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

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

/* ===== HEADER LAYOUT (lawyer-in-brazil) ===== */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: var(--text-sm);
    font-weight: 600;
}

.lang-link {
    color: var(--gray-500);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    transition: color var(--transition-fast);
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary);
}

.lang-sep {
    color: var(--gray-300);
    user-select: none;
}

@media (max-width: 1023px) {
    .lang-switch {
        font-size: var(--text-xs);
    }
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(26, 29, 41, 0.85) 0%,
        rgba(44, 62, 80, 0.75) 100%
    );
}

/* ===== LEGAL MAP (lawyer-in-brazil) ===== */
.legal-map-section {
    --bic-blue: #1a1d29;
    --paper: #ffffff;
    --ink-soft: rgba(26, 29, 41, 0.82);
    --line-soft: rgba(148, 163, 184, 0.1);
    --red-margin: rgba(185, 151, 104, 0.1);
    --shadow: rgba(15, 23, 42, 0.1);
    --font-hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    --font-system: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --content: 1120px;
    --page-x: clamp(14px, 4vw, 22px);
    --card-radius: 16px;
    --map-title-color: var(--dark);
    --map-muted: rgba(71, 85, 105, 0.82);
    --map-section-fill: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --map-board-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    --map-board-border: rgba(226, 232, 240, 1);
    --map-board-inner-border: rgba(226, 232, 240, 0.9);
    --map-card-bg: rgba(255, 255, 255, 0.98);
    --map-card-border: rgba(26, 29, 41, 0.88);
    --map-card-outline: rgba(226, 232, 240, 0.92);
    --map-card-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --map-hint-bg: rgba(255, 255, 255, 0.96);
    --map-hint-border: rgba(226, 232, 240, 0.95);
    position: relative;
    overflow: clip;
    margin-bottom: var(--space-8);
    padding: 42px var(--page-x) 68px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    color: var(--bic-blue);
    background: var(--map-section-fill);
    isolation: isolate;
}

.legal-map-section,
.legal-map-section *,
.legal-map-section *::before,
.legal-map-section *::after {
    box-sizing: border-box;
}

.legal-map-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(11, 61, 145, 0.11) 0.65px, transparent 0.65px),
        radial-gradient(rgba(11, 61, 145, 0.055) 0.55px, transparent 0.55px);
    background-size: 23px 23px, 47px 47px;
    opacity: 0.14;
    mix-blend-mode: multiply;
    z-index: 0;
}

.legal-map-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    margin: 0 auto;
}


.map-header {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: left;
    opacity: 0;
    transform: translateY(18px) rotate(-0.4deg);
    transition: opacity 520ms ease, transform 520ms ease;
}

.map-header.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-0.4deg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--bic-blue);
    font-family: var(--font-hand);
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-3deg);
    opacity: 0.75;
}

.map-header h2 {
    margin: 0;
    max-width: 720px;
    color: var(--map-title-color);
    font-family: var(--font-hand);
    font-size: clamp(2.05rem, 11vw, 4rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-wrap: balance;
    text-shadow: 0 2px 0 rgba(11, 61, 145, 0.055);
}

.map-header p {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--map-muted);
    font-size: clamp(0.98rem, 4vw, 1.14rem);
    line-height: 1.48;
    text-wrap: pretty;
}

.paper-board {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 28px clamp(12px, 3.5vw, 20px) 32px;
    border: 1px solid var(--map-board-border);
    border-radius: 28px 22px 34px 24px;
    background: var(--map-board-fill);
    box-shadow:
        0 24px 56px var(--shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.paper-board::before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px dashed var(--map-board-inner-border);
    border-radius: 24px 18px 29px 20px;
    pointer-events: none;
}

.mobile-map {
    position: relative;
    display: grid;
    gap: 22px;
    z-index: 2;
    padding: 4px 0 10px;
}

.flow-svg-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.flow-svg-desktop {
    display: none;
}

.map-block {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 13px;
}

.map-block.superiors {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
}

.branch-stack {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    padding: 16px 10px 15px;
    border: 1px solid var(--map-board-inner-border);
    border-radius: 22px 17px 25px 18px / 18px 24px 17px 22px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    opacity: 0;
    transform: translateY(18px) rotate(-0.3deg);
    transition: opacity 460ms ease, transform 540ms cubic-bezier(.18, .9, .25, 1.08);
}

.branch-stack.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-0.3deg);
}

.branch-stack:nth-of-type(even) {
    transform: translateY(18px) rotate(0.35deg);
}

.branch-stack:nth-of-type(even).is-visible {
    transform: translateY(0) rotate(0.35deg);
}

.branch-title,
.level-chip,
.margin-note {
    color: var(--map-muted);
    font-family: var(--font-hand);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.branch-title {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 12px 5px;
    border: 1px solid var(--map-board-border);
    border-radius: 999px 70% 999px 80%;
    background: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    text-align: center;
    transform: rotate(-1.2deg);
}

.branch-title small {
    display: block;
    margin-top: 1px;
    color: var(--map-muted);
    font-family: var(--font-system);
    font-size: 0.67em;
    font-weight: 800;
    letter-spacing: 0;
}

.branch-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.parallel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 1px;
}

.node {
    --rotation: 0deg;
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: min(100%, 330px);
    min-height: var(--h, 70px);
    padding: 10px 12px 11px;
    color: var(--bic-blue);
    background: var(--map-card-bg);
    border: 1.5px solid var(--map-card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--map-card-shadow);
    font-family: var(--font-hand);
    text-align: center;
    opacity: 0;
    transform: translate3d(0, 16px, 0) rotate(calc(var(--rotation) - 0.45deg)) scale(0.985);
    transition:
        opacity 420ms ease,
        transform 540ms cubic-bezier(.18, .9, .25, 1.08),
        background 220ms ease;
    will-change: opacity, transform;
}

.node::before {
    content: "";
    position: absolute;
    inset: -5px -4px -4px -5px;
    border: 1px solid var(--map-card-outline);
    border-radius: 21px 15px 23px 14px / 17px 23px 17px 21px;
    transform: rotate(0.8deg);
    pointer-events: none;
}

.node::after {
    content: "";
    position: absolute;
    width: 33px;
    height: 8px;
    left: 16px;
    top: -7px;
    border-top: 2px solid var(--map-card-outline);
    border-radius: 50%;
    transform: rotate(-4deg);
    pointer-events: none;
}

.node.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--rotation)) scale(1);
}

.node.major {
    --h: 82px;
    max-width: 350px;
    border-width: 1.75px;
    background: rgba(255, 255, 255, 0.92);
}

.node.small {
    --h: 62px;
    padding: 9px 10px 10px;
    border-width: 2px;
}

.node.micro {
    --h: 50px;
    padding: 8px 9px;
    border-width: 1.75px;
    box-shadow: 1.5px 3px 0 rgba(11, 61, 145, 0.06);
}

.node .abbr {
    display: block;
    margin-bottom: 3px;
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.node .full {
    display: block;
    color: var(--map-muted);
    font-family: var(--font-system);
    font-size: clamp(0.64rem, 2.55vw, 0.76rem);
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.node.micro .abbr {
    margin: 0;
    font-size: clamp(0.66rem, 2.75vw, 0.76rem);
    line-height: 1.08;
    text-transform: none;
}

.node.stf { --rotation: -0.9deg; }
.node.cnj { --rotation: 1.2deg; }
.node.stj { --rotation: -1deg; }
.node.tst { --rotation: 0.7deg; }
.node.tse { --rotation: -0.4deg; }
.node.stm { --rotation: 1deg; }
.node.tj { --rotation: 0.8deg; }
.node.trf { --rotation: -0.6deg; }
.node.trt { --rotation: 0.75deg; }
.node.tre { --rotation: -0.7deg; }
.node.jm { --rotation: 0.9deg; }
.node.ve { --rotation: -0.6deg; }
.node.vf { --rotation: 0.7deg; }
.node.vt { --rotation: -0.3deg; }
.node.ze { --rotation: 0.55deg; }
.node.am { --rotation: -0.7deg; }
.node.jee { --rotation: 1deg; }
.node.trecu-e { --rotation: -1.1deg; }
.node.jef { --rotation: -0.7deg; }
.node.trecu-f { --rotation: 1deg; }
.node.jme { --rotation: 0.6deg; }
.node.obs { --rotation: -1deg; }

.level-row {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 1px 0;
}

.level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 4px 10px 5px;
    border: 1px solid var(--map-board-border);
    border-radius: 47% 53% 44% 58%;
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.85rem;
    transform: rotate(4deg);
    opacity: 0;
    transition: opacity 380ms ease, transform 420ms ease;
}

.level-chip.is-visible {
    opacity: 1;
    transform: rotate(4deg) translateY(0);
}

.margin-note {
    position: relative;
    z-index: 3;
    max-width: 290px;
    margin: 2px auto;
    color: var(--map-muted);
    font-size: clamp(0.76rem, 3vw, 0.92rem);
    line-height: 1.16;
    text-align: center;
    opacity: 0;
    transform: translateY(12px) rotate(-3deg);
    transition: opacity 420ms ease, transform 420ms ease;
}

.margin-note.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
}

.note-circle {
    display: inline-block;
    padding: 1px 7px 3px;
    border: 1.8px solid currentColor;
    border-radius: 52% 44% 60% 46%;
    transform: rotate(-3deg);
}

.legend-card {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 20px auto 0;
    padding: 11px 13px 12px;
    color: var(--map-muted);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--map-board-border);
    border-radius: 17px 22px 15px 20px;
    font-size: clamp(0.74rem, 3.1vw, 0.9rem);
    line-height: 1.35;
    opacity: 0;
    transform: translateY(12px) rotate(-0.35deg);
    transition: opacity 500ms ease, transform 500ms ease;
}

.legend-card.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(-0.35deg);
}

.legend-card strong {
    color: var(--bic-blue);
    font-family: var(--font-hand);
    font-size: 1.08em;
}

.legend-dots {
    display: inline-flex;
    gap: 5px;
    flex: 0 0 auto;
    padding-top: 4px;
}

.legend-dots span {
    display: block;
    width: 9px;
    height: 9px;
    border: 2px solid var(--bic-blue);
    border-radius: 50% 42% 55% 48%;
}

.draw-path,
.scribble-path {
    fill: none;
    stroke: var(--bic-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: url(#roughInkMobile);
}

.draw-path {
    stroke-width: 2.5;
    opacity: 0.74;
}

.draw-path.thin {
    stroke-width: 1.75;
    opacity: 0.58;
}

.draw-path.bold {
    stroke-width: 3.2;
    opacity: 0.82;
}

.scribble-path {
    stroke-width: 1.9;
    opacity: 0.48;
}

.scroll-hint {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 28px);
    padding: 8px 10px;
    color: var(--map-muted);
    background: var(--map-hint-bg);
    border: 1px solid var(--map-hint-border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(40, 33, 18, 0.1);
    font-family: var(--font-hand);
    font-size: 0.76rem;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.scroll-hint.hide {
    opacity: 0;
    transform: translateY(8px);
}

.scroll-hint .mouse {
    position: relative;
    width: 18px;
    height: 28px;
    border: 2px solid rgba(31, 47, 70, 0.42);
    border-radius: 999px;
    flex: 0 0 auto;
}

.scroll-hint .mouse::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 4px;
    height: 6px;
    border-radius: 999px;
    background: rgba(185, 151, 104, 0.9);
    transform: translateX(-50%);
    animation: wheel 1.45s ease-in-out infinite;
}

@keyframes wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

@media (min-width: 700px) {
    .legal-map-section {
        padding-top: 64px;
        padding-bottom: 86px;
    }

    .map-header {
        text-align: center;
        margin-bottom: 34px;
    }

    .map-header p {
        margin-left: auto;
        margin-right: auto;
    }

    .paper-board {
        padding: 34px 30px 38px;
    }

    .mobile-map {
        gap: 25px;
    }

    .map-block.superiors {
        grid-template-columns: repeat(4, 1fr);
    }

    .branch-inner {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .branch-inner .node:first-child {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .parallel-grid {
        grid-column: 1 / -1;
    }

    .node {
        width: min(100%, 360px);
    }

    .draw-path {
        stroke-width: 2.8;
    }
}

@media (min-width: 1040px) {
    .legal-map-section {
        min-height: 185vh;
        padding: 76px 22px 100px;
    }

    .legal-map-inner {
        position: sticky;
        top: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(100%, 1540px);
    }

    .map-header {
        max-width: 920px;
        margin-bottom: 38px;
    }

    .paper-board {
        width: 100%;
        aspect-ratio: 1600 / 1040;
        min-height: 620px;
        padding: 0;
        border-radius: 34px 28px 40px 30px;
        background:
            linear-gradient(90deg, var(--red-margin) 0 1px, transparent 1px) 92px 0 / 36px 36px,
            linear-gradient(0deg, rgba(11, 61, 145, 0.09) 0 1px, transparent 1px) 0 0 / 36px 36px,
            rgba(255, 253, 245, 0.78);
    }

    .paper-board::before {
        inset: 18px;
        border-radius: 28px 22px 35px 25px;
    }

    .mobile-map {
        display: contents;
    }

    .flow-svg-mobile {
        display: none;
    }

    .flow-svg-desktop {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: visible;
        pointer-events: none;
    }

    .map-block,
    .map-block.superiors,
    .branch-stack,
    .branch-inner,
    .parallel-grid {
        display: contents;
    }

    .branch-stack {
        opacity: 1;
        transform: none;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .node,
    .branch-title,
    .level-chip,
    .margin-note,
    .legend-card {
        position: absolute;
    }

    .node {
        width: var(--w, 160px);
        min-height: var(--h, 76px);
        left: var(--x);
        top: var(--y);
        padding: 11px 13px 12px;
    }

    .node .abbr {
        font-size: clamp(1.05rem, 1.45vw, 1.55rem);
    }

    .node .full {
        font-size: clamp(0.62rem, 0.78vw, 0.83rem);
    }

    .node.small {
        --h: 58px;
        padding: 8px 10px 9px;
    }

    .node.small .abbr {
        font-size: clamp(0.86rem, 1.03vw, 1.03rem);
    }

    .node.small .full {
        font-size: clamp(0.56rem, 0.66vw, 0.7rem);
    }

    .node.micro {
        --h: 46px;
        padding: 7px 8px;
    }

    .node.micro .abbr {
        font-size: clamp(0.62rem, 0.8vw, 0.78rem);
    }

    .node.stf { --w: 214px; --h: 92px; --x: calc(50% - 107px); --y: 7.2%; }
    .node.cnj { --w: 212px; --h: 78px; --x: 67.5%; --y: 10%; }
    .node.stj { --w: 178px; --x: 15%; --y: 26.4%; }
    .node.tst { --w: 178px; --x: 34%; --y: 25.6%; }
    .node.tse { --w: 178px; --x: 53%; --y: 26.4%; }
    .node.stm { --w: 178px; --x: 72%; --y: 25.8%; }
    .node.tj { --w: 168px; --x: 8%; --y: 49%; }
    .node.trf { --w: 168px; --x: 27%; --y: 49.5%; }
    .node.trt { --w: 168px; --x: 46%; --y: 49%; }
    .node.tre { --w: 168px; --x: 65%; --y: 49.3%; }
    .node.jm { --w: 168px; --x: 82%; --y: 49.1%; }
    .node.ve { --w: 150px; --x: 6.7%; --y: 64.7%; }
    .node.vf { --w: 150px; --x: 25.7%; --y: 65.1%; }
    .node.vt { --w: 150px; --x: 44.7%; --y: 64.6%; }
    .node.ze { --w: 150px; --x: 63.8%; --y: 65.2%; }
    .node.am { --w: 150px; --x: 81.3%; --y: 64.8%; }
    .node.jee { --w: 145px; --x: 3.8%; --y: 80.2%; }
    .node.trecu-e { --w: 145px; --x: 13.4%; --y: 82.8%; }
    .node.jef { --w: 145px; --x: 22.7%; --y: 80.7%; }
    .node.trecu-f { --w: 145px; --x: 32.6%; --y: 82.7%; }
    .node.jme { --w: 145px; --x: 77.5%; --y: 81.2%; }
    .node.obs { --w: 158px; --x: 87%; --y: 82.5%; }

    .branch-title {
        z-index: 4;
        padding: 3px 10px;
        font-size: clamp(0.7rem, 0.9vw, 0.96rem);
        opacity: 0;
        transform: translateY(10px) rotate(-2deg);
        transition: opacity 420ms ease, transform 420ms ease;
    }

    .branch-title.is-visible {
        opacity: 1;
        transform: translateY(0) rotate(-2deg);
    }

    .branch-title small {
        display: none;
    }

    .branch-title.l1 { left: 8.5%; top: 41.5%; }
    .branch-title.l2 { left: 27.6%; top: 42.3%; transform: translateY(10px) rotate(2deg); }
    .branch-title.l2.is-visible { transform: translateY(0) rotate(2deg); }
    .branch-title.l3 { left: 47.8%; top: 41.8%; }
    .branch-title.l4 { left: 66.7%; top: 41.4%; transform: translateY(10px) rotate(2deg); }
    .branch-title.l4.is-visible { transform: translateY(0) rotate(2deg); }
    .branch-title.l5 { left: 82.5%; top: 41.9%; }

    .level-row {
        display: contents;
    }

    .level-chip {
        right: 2%;
        width: 85px;
        min-width: 0;
        font-size: clamp(0.72rem, 1vw, 0.94rem);
        transform: translateX(14px) rotate(5deg);
    }

    .level-chip.is-visible {
        transform: translateX(0) rotate(5deg);
    }

    .level-chip.second { top: 53%; }
    .level-chip.first { top: 68.5%; }

    .margin-note {
        z-index: 5;
        max-width: none;
        margin: 0;
        text-align: left;
        line-height: 1.12;
    }

    .margin-note.one {
        left: 2.4%;
        top: 9%;
        width: 150px;
        font-size: clamp(0.72rem, 1vw, 1rem);
    }

    .margin-note.two {
        right: 3%;
        top: 17%;
        width: 170px;
        transform: translateY(12px) rotate(6deg);
        font-size: clamp(0.72rem, 1vw, 1rem);
    }

    .margin-note.two.is-visible {
        transform: translateY(0) rotate(6deg);
    }

    .margin-note.three {
        left: 3.3%;
        bottom: 9%;
        width: 180px;
        transform: translateY(12px) rotate(4deg);
        font-size: clamp(0.72rem, 1vw, 0.96rem);
    }

    .margin-note.three.is-visible {
        transform: translateY(0) rotate(4deg);
    }

    .legend-card {
        left: 50%;
        bottom: 2.4%;
        width: min(620px, 62%);
        margin: 0;
        transform: translateX(-50%) translateY(12px) rotate(-0.35deg);
    }

    .legend-card.is-visible {
        transform: translateX(-50%) translateY(0) rotate(-0.35deg);
    }

    .scroll-hint {
        left: 50%;
        right: auto;
        bottom: 22px;
        transform: translateX(-50%);
        font-size: 0.88rem;
    }

    .scroll-hint.hide {
        transform: translateX(-50%) translateY(8px);
    }
}

@media (min-width: 1040px) and (max-width: 1399px) {
    .legal-map-section {
        min-height: 175vh;
    }
}

@media (min-width: 1400px) {
    .legal-map-section {
        min-height: 165vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-map-section * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .map-header,
    .node,
    .branch-stack,
    .branch-title,
    .margin-note,
    .level-chip,
    .legend-card {
        opacity: 1 !important;
    }
}
