/* Public Offer Template Styles */

/* Override global overflow rules that may interfere with sticky positioning */
html, html:has(.legal-main) {
    overflow-x: visible !important;
    overflow-y: visible !important;
    /* Remove any transforms that break sticky positioning */
    transform: none !important;
    -webkit-transform: none !important;
}

body.page-template-public-offer, 
body.page-template-public-offer * {
    overflow-x: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    /* Ensure no parent elements break sticky context */
    contain: none !important;
}

/* Force override of any parent containers that might break sticky */
body.page-template-public-offer #page,
body.page-template-public-offer .site,
body.page-template-public-offer main,
body.page-template-public-offer .full-width-header {
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    contain: none !important;
    position: static !important;
}

/* Main Container */
.legal-main {
    background-color: #1A1A1A;
    color: white;
    min-height: 100vh;
    padding-bottom: 15vh; /* Increased to prevent footer overlap */
    padding-top: 25px; /* Simple fixed padding equal to typical header height */
    /* Ensure no overflow issues that break sticky */
    overflow: visible;
    position: relative;
    margin-top: 0;
}

.legal-container {
    /* max-width: 1400px; Removed to allow full width utilization */
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    /* Ensure sticky context is not broken by container */
    transform: none !important;
    contain: layout !important;
}

/* Media Queries will be consolidated at the end of the file */

/* Flexbox layout for better content management */
.legal-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position: relative;
    align-items: flex-start;
    /* Natural grid height - will be overridden by media queries for consistent layout */
    min-height: auto;
    /* Ensure sticky context is preserved */
    transform: none !important;
    contain: layout !important;
}

/* Grid layout styles - responsive behavior moved to consolidated media queries */

/* Main Content - flexbox item */
.legal-content {
    background-color: #2A2A2A;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
    overflow-wrap: break-word;
    width: 80%; /* Set to 80% width */
    flex: 0 0 80%; /* Don't grow or shrink, stay at 80% */
    /* Natural content height - will be overridden by media queries for consistent layout */
    min-height: auto;
}

/* Content width styles - responsive behavior moved to consolidated media queries */

/* Content height normalization for consistent layout */

/* Content padding styles - responsive behavior moved to consolidated media queries */

/* Sidebar - flexbox item on right */
.legal-sidebar-public-offer {
    background-color: #2A2A2A;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    
    /* Mobile: full width */
    width: 100%;
    max-height: 50vh;
    flex-shrink: 0; /* Don't shrink */
    
    /* Visual indicator for testing sticky behavior */
    border-left: 4px solid #3B82F6; /* Blue border to make it more visible */
}

/* Sidebar responsive styles - moved to consolidated media queries */

/* Tablet-specific styles - moved to consolidated media queries */

/* Sidebar sizing and positioning styles - moved to consolidated media queries */

/* Navigation Styles */
.legal-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* space-y-1 */
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent any overflow */
    box-sizing: border-box;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem; /* px-3 py-2 */
    color: #D1D5DB; /* text-gray-300 */
    text-decoration: none;
    border-radius: 6px; /* rounded-md */
    transition: all 0.3s ease; /* transition-all duration-300 */
    font-size: 2vmin; /* Converted from 0.875rem to vmin for better scaling */
    line-height: 1.625; /* leading-relaxed */
    font-weight: 500;
    border-left: 3px solid transparent;
    /* Prevent text overflow causing horizontal scroll */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

/* Navigation link styles - moved to consolidated media queries */

.nav-link:hover {
    background-color: #374151; /* hover:bg-gray-700 */
    color: white; /* hover:text-white */
    transform: translateX(0.25rem); /* hover:translate-x-1 */
    border-left-color: #6B7280;
}

.nav-link.active {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border-left-color: #1D4ED8;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* Legal Section */
.legal-section {
    margin-bottom: 3rem; /* mb-12 */
    scroll-margin-top: 25px; /* Simple fixed padding equal to typical header height */
    padding-top: 0; /* No extra padding */
}

.legal-section:last-child {
    margin-bottom: 10vh; /* Add bottom margin to prevent footer overlap */
}

.legal-section:first-child {
    padding-top: 0; /* No special padding for first section */
}

/* Section Title */
.section-title-public-offer {
    font-size: 5vmin; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: white;
    margin-bottom: 1.5rem; /* mb-6 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom: 4px solid #3B82F6; /* border-b-4 border-blue-500 */
    scroll-margin-top: 25px; /* Simple fixed padding equal to typical header height */
    line-height: 1.2;
}

/* Section title responsive styles - moved to consolidated media queries */

/* Section Content */
.section-content {
    font-size: 2vmin; /* text-base */
    line-height: 1.6; /* leading-relaxed */
    color: #C4C4C4;
    text-align: justify;
    word-wrap: break-word; /* break-words */
    max-width: none;
}

/* Section content responsive styles - moved to consolidated media queries */

/* Prose Styles */
.section-content h1,
.section-content h2,
.section-content h3 {
    font-size: 2.5vmin; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #FFFFFF; /* text-white */
    margin: 1.5rem 0 1rem 0; /* my-6 mb-4 */
    scroll-margin-top: 25px; /* Simple fixed padding equal to typical header height */
}

.section-content h4 {
    font-size: 2vmin; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #FFFFFF; /* text-white */
    margin: 1.25rem 0 0.75rem 0; /* my-5 mb-3 */
    scroll-margin-top: 25px; /* Simple fixed padding equal to typical header height */
}

/* Content heading responsive styles - moved to consolidated media queries */

.section-content p {
    margin-bottom: 1rem; /* mb-4 */
}

.section-content ul, 
.section-content ol {
    margin: 1rem 0; /* my-4 */
    padding-left: 2rem; /* pl-8 */
}

.section-content li {
    margin-bottom: 0.5rem; /* mb-2 */
}

.section-content a {
    color: #3B82F6; /* text-blue-500 */
    text-decoration: underline;
    transition: color 0.2s ease; /* transition-colors duration-200 */
}

.section-content a:hover {
    color: #1D4ED8; /* hover:text-blue-700 */
}

/* Indented Items */
.indented-item {
    display: inline-block;
    margin-left: 2rem; /* ml-8 */
    font-weight: 600;
    /* color: #60A5FA; */
}

/* Custom Scrollbar */
.legal-sidebar-public-offer::-webkit-scrollbar {
    width: 8px;
}

/* Scrollbar responsive styles - moved to consolidated media queries */

.legal-sidebar-public-offer::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.legal-sidebar-public-offer::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4A4A4A, #6B7280);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.legal-sidebar-public-offer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #6B7280, #9CA3AF);
}

/* Firefox scrollbar */
.legal-sidebar-public-offer {
    scrollbar-width: thin;
    scrollbar-color: #4A4A4A #1A1A1A;
}

/* Focus states for accessibility */
.nav-link:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Remove any unwanted borders */
.nav-link,
.nav-link.active,
.nav-link:hover,
.nav-link:focus {
    border: none !important;
    border-left: 3px solid transparent !important;
}

.nav-link:hover {
    border-left-color: #6B7280 !important;
}

.nav-link.active {
    border-left-color: #1D4ED8 !important;
}

/* Remove any red debugging borders and force proper styling */
.legal-sidebar-public-offer *,
.legal-sidebar-public-offer .nav-link,
.legal-sidebar-public-offer .nav-link:focus,
.legal-sidebar-public-offer .nav-link:active,
.legal-sidebar-public-offer .nav-link.active {
    border: none !important;
    border-left: 3px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Immediately override any red styling */
.nav-link[style*="border"] {
    border: none !important;
    border-left: 3px solid transparent !important;
}

.nav-link.active[style*="border"] {
    border: none !important;
    border-left: 3px solid #1D4ED8 !important;
}

/* Force immediate blue styling for active links - STRONGEST OVERRIDES */
.nav-link.active,
.nav-link.active:focus,
.nav-link.active:active,
.nav-link.active:hover,
.nav-link.active:visited,
.legal-sidebar-public-offer .nav-link.active,
.legal-nav-list .nav-link.active,
.nav-item .nav-link.active,
a.nav-link.active {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    background-color: #3B82F6 !important;
    color: white !important;
    border-left: 3px solid #1D4ED8 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Absolutely no red colors anywhere */
.nav-link:not(.active) {
    background: transparent !important;
    color: #D1D5DB !important;
}

/* Override any possible red styling sources */
.nav-link[style*="red"],
.nav-link[style*="Red"],
.nav-link[style*="RED"],
.nav-link.active[style*="red"],
.nav-link.active[style*="Red"],
.nav-link.active[style*="RED"] {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    background-color: #3B82F6 !important;
    color: white !important;
    border: none !important;
    border-left: 3px solid #1D4ED8 !important;
}

/* Mobile responsive styles - moved to consolidated media queries */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px; /* Simple fixed padding equal to typical header height */
}

/* ========================================
   CONSOLIDATED RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Mobile Devices - up to 767px */
@media (max-width: 767px) {
    .legal-container {
        padding: 1.5rem 1rem;
    }
    
    .legal-sidebar-public-offer {
        display: none; /* Hide sidebar on mobile */
    }
    
    .legal-content {
        margin-right: 0;
        width: 100%;
    }
    
    .legal-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title-public-offer {
        font-size: 24px; /* Clear readable mobile title */
    }
    
    .nav-link {
        font-size: 1vmin;
        padding: 0.75rem 1rem;
    }
    
    /* Mobile content text font sizes */
    .section-content {
        font-size: 16px; /* Readable mobile font size */
        line-height: 1.6;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 20px; /* Clear mobile heading size */
        line-height: 1.4;
    }
    
    .section-content h4 {
        font-size: 18px; /* Mobile subheading size */
        line-height: 1.4;
    }

}

/* Tablets - 768px to 1023px */
@media (min-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-grid {
        flex-direction: row;
        gap: 2rem;
        overflow: visible !important;
        contain: none !important;
        transform: none !important;
        height: auto !important;
    }
    
    .legal-content {
        padding: 2.5rem;
    }
    
    .full-width-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-bottom: 20px;
        background-color: #1A1A1A;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .full-width-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #1A1A1A;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .legal-sidebar-public-offer {
        position: -webkit-sticky !important;
        position: sticky !important;
        width: 20% !important;
        flex: 0 0 20% !important;
        align-self: flex-start !important;
        z-index: 1000 !important;
        top: 25px !important;
        max-height: calc(100vh - 25px - 50px) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        will-change: transform !important;
        contain: layout style paint !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .legal-sidebar-public-offer .legal-nav {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .legal-sidebar-public-offer .legal-nav-list {
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
    }
}

/* Tablet-specific sticky fixes (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    body.page-template-public-offer .legal-main,
    body.page-template-public-offer .legal-container,
    body.page-template-public-offer .legal-grid {
        overflow: visible !important;
        contain: none !important;
        transform: none !important;
    }
    
    .legal-sidebar-public-offer {
        top: 10px !important;
        max-height: calc(100vh - 20px) !important;
        min-height: 200px !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        isolation: isolate !important;
        z-index: 9999 !important;
    }
}

/* Desktop - 1024px to 1199px */
@media (min-width: 1024px) {
    .legal-container {
        padding: 3rem 2rem;
    }
    
    .legal-content {
        width: 80%;
        flex: 0 0 80%;
        padding: 3rem;
    }
    
    .legal-sidebar-public-offer {
        width: 20% !important;
        flex: 0 0 20% !important;
        padding: 2rem !important;
        top: 15px !important;
        max-height: calc(100vh - 30px) !important;
    }
    
    .section-title-public-offer {
        font-size: 1.8vmin;
    }
    
    /* Copy button desktop styles */
    .copy-content-button {
        font-size: 2.4vmin;
        min-width: 200px;
        height: 5vmin;
        padding: 12px 28px;
    }
}

/* Large Desktop - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
    .legal-container {
        padding: 3rem 2.5rem;
    }

    .section-title-public-offer {
        font-size: 3.2vmin;
    }

    .legal-content {
        padding: 3.5rem;
    }
    
    .legal-sidebar-public-offer {
        width: 20% !important;
        flex: 0 0 20% !important;
        top: 30px !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    /* Copy button large desktop styles */
    .copy-content-button {
        font-size: 2.8vmin;
        min-width: 240px;
        height: 5.5vmin;
        padding: 12px 32px;
    }
    
    .copy-feedback {
        font-size: 1vmin;
        top: -3vmin;
    }
}

/* Extra Large Desktop - 1400px+ (Consistent Layout) */
@media (min-width: 1400px) {
    .legal-container {
        padding: 3rem 2.5rem;
    }

    .section-title-public-offer {
        font-size: 4.2vmin;
    }

    .legal-content {
        padding: 3.5rem;
        min-height: 100vh; /* Consistent content height for all large screens */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height for all large screens */
    }
    
    .legal-sidebar-public-offer {
        width: 20% !important;
        flex: 0 0 20% !important;
        top: 30px !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    /* Copy button extra large desktop styles */
    .copy-content-button {
        font-size: 3.2vmin;
        min-width: 260px;
        height: 6vmin;
        padding: 12px 36px;
    }
    
    .copy-feedback {
        font-size: 1vmin;
        top: -3.5vmin;
    }
}

/* Ultra-wide screens - 1700px to 1999px */
@media (min-width: 1700px) {
    .legal-container {
        padding: 3rem 2.5rem;
    }
    
    .legal-main {
        padding-top: 30px;
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 30px;
    }
    
    .section-title-public-offer {
        font-size: 2.8vmin;
        scroll-margin-top: 30px;
    }
    
    .section-content {
        font-size: 2vmin;
        line-height: 1.6;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2.2vmin;
        scroll-margin-top: 30px;
    }
    
    .section-content h4 {
        font-size: 1.8vmin;
        scroll-margin-top: 30px;
    }
    
    .nav-link {
        font-size: 2vmin;
        padding: 0.6rem 0.8rem;
        line-height: 1.625;
    }
    
    .legal-nav-list {
        gap: 0.25rem;
    }
    
    .legal-sidebar-public-offer {
        top: 30px !important;
        max-height: calc(100vh - 30px - 50px) !important;
        padding: 1.2rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 6px;
    }
    
    html {
        scroll-padding-top: 30px;
    }
    
    /* Copy button ultra-wide styles */
    .copy-content-button {
        font-size: 3.6vmin;
        min-width: 280px;
        height: 6.5vmin;
        padding: 12px 40px;
    }
    
    .copy-feedback {
        font-size: 1.8vmin;
        top: -5.5vmin;
        padding: 0.8vmin 1.6vmin;
    }
}

/* Very ultra-wide screens - 2000px to 2399px */
@media (min-width: 2000px) {
    .legal-container {
        padding: 3rem 3rem;
    }
    
    .legal-main {
        padding-top: 35px;
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 35px;
    }
    
    .section-title-public-offer {
        font-size: 2.5vmin;
        scroll-margin-top: 35px;
    }
    
    .section-content {
        font-size: 1.8vmin;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2vmin;
        scroll-margin-top: 35px;
    }
    
    .section-content h4 {
        font-size: 1.6vmin;
        scroll-margin-top: 35px;
    }
    
    .nav-link {
        font-size: 1.8vmin;
        padding: 0.5rem 0.7rem;
    }
    
    .legal-sidebar-public-offer {
        top: 35px !important;
        max-height: calc(100vh - 35px - 50px) !important;
        padding: 1rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 5px;
    }
    
    html {
        scroll-padding-top: 35px;
    }
    
    /* Copy button 2K+ styles */
    .copy-content-button {
        font-size: 4vmin;
        min-width: 300px;
        height: 7vmin;
        padding: 12px 44px;
    }
    
    .copy-feedback {
        font-size: 2vmin;
        top: -6vmin;
        padding: 1vmin 2vmin;
    }
}

/* Extreme ultra-wide screens - 2400px to 2499px */
@media (min-width: 2400px) and (max-width: 2499px) {
    .legal-container {
        padding: 3rem 3.5rem;
    }
    
    .legal-main {
        padding-top: 60px; /* Increased from 40px for better header clearance */
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 60px;
    }
    
    .section-title-public-offer {
        font-size: 3.5vmin; /* Further increased for better visibility on 2400px+ screens */
        scroll-margin-top: 60px;
    }
    
    .section-content {
        font-size: 2.5vmin; /* Enhanced readability for large screens */
        line-height: 1.6;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2.8vmin; /* Better hierarchy for large screens */
        scroll-margin-top: 60px;
    }
    
    .section-content h4 {
        font-size: 2.3vmin; /* Enhanced visibility */
        scroll-margin-top: 60px;
    }
    
    .nav-link {
        font-size: 2.4vmin; /* Improved sidebar readability */
        padding: 0.5rem 0.7rem;
        line-height: 1.5;
    }
    
    .legal-nav-list {
        gap: 0.3rem; /* Enhanced spacing for better navigation */
    }
    
    .legal-sidebar-public-offer {
        top: 60px !important; /* Increased from 40px for better header clearance */
        max-height: calc(100vh - 60px - 50px) !important;
        padding: 0.8rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 4px;
    }
    
    html {
        scroll-padding-top: 60px;
    }
    
    /* Copy button 2.4K styles */
    .copy-content-button {
        font-size: 4.4vmin;
        min-width: 320px;
        height: 7.5vmin;
        padding: 12px 48px;
    }
    
    .copy-feedback {
        font-size: 2.2vmin;
        top: -6.5vmin;
        padding: 1.1vmin 2.2vmin;
    }
}

/* Very extreme ultra-wide screens - 2500px to 2999px */
@media (min-width: 2500px) {
    .legal-container {
        padding: 3rem 3.5rem;
    }
    
    .legal-main {
        padding-top: 120px; /* Increased padding for better visual spacing */
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 120px;
    }
    
    .section-title-public-offer {
        font-size: 3.2vmin; /* Further increased for better visibility on ultra-wide screens */
        scroll-margin-top: 120px;
    }
    
    .section-content {
        font-size: 2.4vmin; /* Enhanced readability on large screens */
        line-height: 1.7;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2.7vmin; /* Better hierarchy on ultra-wide screens */
        scroll-margin-top: 120px;
    }
    
    .section-content h4 {
        font-size: 2.2vmin; /* Improved visibility */
        scroll-margin-top: 120px;
    }
    
    .nav-link {
        font-size: 2.3vmin; /* Enhanced sidebar readability */
        padding: 0.5rem 0.7rem;
        line-height: 1.6;
    }
    
    .legal-nav-list {
        gap: 0.4rem; /* Enhanced spacing for ultra-wide screens */
    }
    
    .legal-sidebar-public-offer {
        top: 120px !important; /* Increased clearance for better visual spacing */
        max-height: calc(100vh - 140px) !important; /* Full screen coverage for ultra-wide */
        padding: 0.8rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 4px;
    }
    
    html {
        scroll-padding-top: 120px;
    }
    
    /* Copy button 2.5K+ styles */
    .copy-content-button {
        font-size: 4.8vmin;
        min-width: 340px;
        height: 8vmin;
        padding: 12px 52px;
    }
    
    .copy-feedback {
        font-size: 2.4vmin;
        top: -7vmin;
        padding: 1.2vmin 2.4vmin;
    }
}

/* Ultra-high resolution screens - 3000px to 3999px */
@media (min-width: 3000px) {
    .legal-container {
        padding: 3rem 4rem;
    }
    
    .legal-main {
        padding-top: 140px; /* Increased padding for better visual spacing on ultra-high resolution */
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 140px;
    }
    
    .section-title-public-offer {
        font-size: 3.0vmin; /* Further increased for better visibility on 3000px+ ultra-high resolution */
        scroll-margin-top: 140px;
    }
    
    .section-content {
        font-size: 2.2vmin; /* Enhanced readability on ultra-high resolution */
        line-height: 1.8;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2.5vmin; /* Better hierarchy for ultra-high resolution */
        scroll-margin-top: 140px;
    }
    
    .section-content h4 {
        font-size: 2.0vmin; /* Improved visibility on large displays */
        scroll-margin-top: 140px;
    }
    
    .nav-link {
        font-size: 2vmin; /* Enhanced sidebar readability for ultra-high resolution */
        padding: 0.5rem 0.7rem;
        line-height: 1.6;
    }
    
    .legal-nav-list {
        gap: 0.5rem; /* Enhanced spacing for ultra-high resolution screens */
    }
    
    .legal-sidebar-public-offer {
        top: 140px !important; /* Increased clearance for better visual spacing */
        max-height: calc(100vh - 160px) !important; /* Full screen coverage for ultra-high resolution */
        padding: 0.8rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 3px;
    }
    
    html {
        scroll-padding-top: 140px;
    }
    
    /* Copy button 3K+ styles */
    .copy-content-button {
        font-size: 5.2vmin;
        min-width: 360px;
        height: 8.5vmin;
        padding: 12px 56px;
    }
    
    .copy-feedback {
        font-size: 2.6vmin;
        top: -7.5vmin;
        padding: 1.3vmin 2.6vmin;
    }
}

/* Extreme ultra-high resolution screens - 4000px+ */
@media (min-width: 4000px) {
    .legal-container {
        padding: 3rem 5rem;
    }
    
    .legal-main {
        padding-top: 160px; /* Maximum padding for extreme resolution screens */
    }
    
    .legal-content {
        min-height: 100vh; /* Consistent content height */
        max-height: none; /* Allow natural content flow */
    }
    
    .legal-grid {
        min-height: 100vh; /* Consistent grid height */
    }
    
    .legal-section {
        scroll-margin-top: 160px;
    }
    
    .section-title-public-offer {
        font-size: 2.8vmin; /* Further increased for better visibility on 4000px+ extreme resolution */
        scroll-margin-top: 160px;
    }
    
    .section-content {
        font-size: 2.0vmin; /* Enhanced readability on extreme resolution */
        line-height: 1.9;
    }
    
    .section-content h1,
    .section-content h2,
    .section-content h3 {
        font-size: 2.3vmin; /* Better hierarchy for extreme resolution displays */
        scroll-margin-top: 160px;
    }
    
    .section-content h4 {
        font-size: 1.8vmin; /* Improved visibility on extreme displays */
        scroll-margin-top: 160px;
    }
    
    .nav-link {
        font-size: 2.1vmin; /* Enhanced sidebar readability for extreme resolution */
        padding: 0.5rem 0.7rem;
        line-height: 1.7;
    }
    
    .legal-nav-list {
        gap: 0.6rem; /* Maximum spacing for extreme resolution screens */
    }
    
    .legal-sidebar-public-offer {
        top: 160px !important; /* Maximum clearance for extreme resolution screens */
        max-height: calc(100vh - 180px) !important; /* Full screen coverage for extreme resolution */
        padding: 0.8rem !important;
    }
    
    .legal-sidebar-public-offer::-webkit-scrollbar {
        width: 2px;
    }
    
    html {
        scroll-padding-top: 160px;
    }
    
    /* Copy button 4K+ styles */
    .copy-content-button {
        font-size: 5.6vmin;
        min-width: 380px;
        height: 9vmin;
        padding: 12px 60px;
    }
    
    .copy-feedback {
        font-size: 2.8vmin;
        top: -8vmin;
        padding: 1.4vmin 2.8vmin;
    }
}

/* Print styles */
@media print {
    .legal-sidebar-public-offer {
        display: none;
    }
    
    .legal-grid {
        flex-direction: column;
    }
    
    .legal-main {
        background-color: white;
        color: black;
    }
    
    .legal-content {
        background-color: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 

/* Title and Copy Button Container */
.title-copy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.title-copy-container .section-title-public-offer {
    margin: 0;
    flex: 1;
}

/* Copy Content Button Styling */
.copy-content-section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    flex-shrink: 0;
}

.copy-content-button {
    display: inline-flex;
    padding: 8px 24px;
    background: linear-gradient(90.54deg, #5B5BF9 0%, #4A3DEE 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: none;
    border-right: none;
    border-bottom: none;
    color: #FFF;
    border-radius: 6px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.08px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    height: 42px;
    box-sizing: border-box;
}

.copy-content-button:hover {
    background: linear-gradient(90.54deg, #3329AA 0%, #2E2986 100%);
    border-top: 1.82px solid #FFFFFF3D;
}

.copy-content-button:focus {
    background: #3329AA;
    box-shadow: 3.65px 3.65px 7.29px 0px #251E7CA3 inset, -3.65px -3.65px 7.29px 0px #4134D8A3 inset;
    outline: none;
}

.copy-content-button:active {
    background: #3329AA;
    box-shadow: 3.65px 3.65px 7.29px 0px #251E7CA3 inset, -3.65px -3.65px 7.29px 0px #4134D8A3 inset;
}

.copy-content-button.copying {
    background: #28a745;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.copy-icon {
    font-size: 16px;
}

.copy-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* Mobile-first base styles for copy button */
@media (max-width: 767px) {
    .title-copy-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .copy-content-section {
        text-align: center;
    }
    
    .copy-content-button {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 120px;
        height: 38px;
    }
}

/* Tablet and desktop base styles */
@media (min-width: 768px) {
    .title-copy-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .copy-content-section {
        text-align: right;
        flex-shrink: 0;
    }
    
    .copy-content-button {
        font-size: 18px;
        min-width: 220px;
        height: 52px;
        padding: 12px 32px;
    }
} 