html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Prompt', '.SF NS Display Expanded', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background-color: #F2F2F2;
}

main {
    flex: 1 0 auto;
    min-height: calc(100vh - 300px); /* footer height */
}

.content-wrapper {
    flex: 1 0 auto;
}

/* .scroll-container moved to line 460 with custom scrollbar styling */

.gridscroll {
    display: inline-block;
    display: flex;
    padding-bottom: 22px;
}

.gridscroll img {
    margin-right: 7px;
    margin-top: 7px;
    height: 564px;
    border-radius: 15px;
}

.footerIcon {
    width: auto;
    height: 55px;
    padding: 0 10px 0 20px;
}

a {
    color: #5B21B6;
    text-decoration: none;
}

a:hover {
    color: #7C3AED;
    text-decoration: underline;
}

footer a {
    text-decoration: none !important;
    color: #2D3E50 !important;
}

footer a:hover {
    text-decoration: underline !important;
    color: #4E74FF !important;
}

footer {
    flex-shrink: 0;
    font-size: 14px !important;
    line-height: 20px;
    background-image: url("../images/footerBackColor.png") !important;
    background-size: cover !important;
    background-position: bottom center !important;
    width: auto !important;
    height: 300px;
}

p {
    color: #21242c;
    font-size: 1em;
}

.maintitle {
    padding-top: 40px;
    font-weight: bold;
}

#image-big {
    overflow: hidden;
    border-radius: 13px;
    width: 250px;
    height: 83px;
}

#image-small {
    display: none !important;
}

b {
    font-weight: 600;
}

h1 {
    background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

h2 {
    font-weight: 600;
    color: #5B21B6;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 550;
    color: #A855F7;
    margin-bottom: 15px;
}

h4 {
    font-weight: 500;
    color: #A855F7;
    margin-bottom: 10px;
}

/* Ana sayfa özellik başlıkları için siyah renk */
ul[style*="list-style: none"] h3,
ul[style*="list-style: none"] h4 {
    color: #21242c;
}

/* Privacy ve Terms sayfalarındaki liste başlıkları için kompakt line-height */
main .col-10.mx-auto ul li h4 {
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

/* Ana Sayfaya Dön butonu için mor tema */
.btn-primary {
    background: linear-gradient(135deg, #5B21B6 0%, #6D28D9 100%) !important;
    border-color: #5B21B6 !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, #4C1D95 0%, #5B21B6 100%) !important;
    border-color: #4C1D95 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.3);
}

.text-primary {
    color: #5B21B6 !important;
}

.btn-group {
    position: relative;
}

@media (min-width: 1400px) {
    .btn-group:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: -300%;
        left: 0;
    }
}

@media only screen and (max-width: 767px) {
    .scenter {
        display: flex !important;
        justify-content: center !important;
        padding-bottom: 2em !important;
        margin: 0 !important;
        padding-left: 32px !important;
    }

    p {
        color: #21242c;
        font-size: 16px !important;
    }

    .responsive {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .asmall {
        padding-right: 0 !important;
    }

    #icon {
        width: 90px !important;
    }

    #image-big {
        display: none !important;
    }

    #image-small {
        display: block !important;
        overflow: hidden;
        border-radius: 13px;
        width: 180px;
        height: 60px;
    }

    .simg {
        height: 207px;
        border-radius: 15px;
    }

    .gridscroll {
        display: inline-block;
        display: flex;
    }

    .gridscroll img {
        margin-right: 7px;
        height: 207px;
    }
    
    /* Additional mobile improvements for screenshot gallery */
    .scroll-container {
        padding: 0px 0px 0px 15px; /* No bottom padding - true overlay */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        overflow-x: overlay; /* Ensure overlay mode on mobile */
    }
    
    .gridscroll {
        gap: 8px; /* Add consistent gap between images */
    }
}

/* SaveTik specific styles */
.hero-section {
    background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.social svg {
    fill: #2D3E50;
    transition: fill 0.3s ease;
}

.social:hover svg {
    fill: #FE2C55;
}

/* App Store Badge styling */
.app-store-badge {
    display: block !important;
    width: 200px !important;
    height: 60px !important;
    margin: 0 auto !important;
    transition: transform 0.3s ease;
}

.app-store-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Desktop screens - larger App Store badge */
@media only screen and (min-width: 992px) {
    .app-store-badge {
        width: 280px !important;
        height: 84px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Large desktop screens - even larger */
@media only screen and (min-width: 1200px) {
    .app-store-badge {
        width: 320px !important;
        height: 96px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/* App Store badge container centering */
.d-grid.gap-3.d-flex.justify-content-sm-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    text-align: center !important;
}

/* Desktop container adjustments */
@media only screen and (min-width: 992px) {
    .d-grid.gap-3.d-flex.justify-content-sm-center {
        padding: 2rem !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Large desktop container */
@media only screen and (min-width: 1200px) {
    .d-grid.gap-3.d-flex.justify-content-sm-center {
        padding: 2.5rem !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Force desktop centering override */
@media only screen and (min-width: 768px) {
    .responsive .d-grid.gap-3.d-flex.justify-content-sm-center {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .responsive .app-store-badge {
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Back to homepage link styling */
.btn-homepage {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* List without bullet points */
.list-unstyled {
    list-style: none;
}

/* TikTok brand colors */
:root {
    --tiktok-pink: #FE2C55;
    --tiktok-blue: #25F4EE;
    --tiktok-black: #000000;
    --tiktok-white: #FFFFFF;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--tiktok-pink) 0%, var(--tiktok-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-savetik {
    background: linear-gradient(135deg, var(--tiktok-pink) 0%, var(--tiktok-blue) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-savetik:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.3);
    color: white;
}

/* Card styles */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(254, 44, 85, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* No auto-scroll for gallery - user controlled only */
.gridscroll {
    /* animation: scroll 30s linear infinite; - REMOVED */
}

/* Keep keyframes for potential future use */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Remove hover pause since no auto-scroll */
/* .gridscroll:hover {
    animation-play-state: paused;
} */

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(254, 44, 85, 0.3);
    border-radius: 50%;
    border-top-color: var(--tiktok-pink);
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom animated scrollbar - elegant and responsive with TRUE overlay positioning */
.scroll-container {
    position: relative;
    overflow-y: hidden; /* Prevent vertical scroll */
    overflow-x: overlay; /* True overlay scrolling */
    background: transparent;
    padding: 0px 0px 0px 20px; /* Remove bottom padding - no space for scrollbar */
    /* WebKit scrollbar customization follows below - truly overlay */
}

.scroll-container::-webkit-scrollbar {
    height: 5px; /* Base height */
    transform-origin: center bottom; /* Scale from bottom */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth transform transition */
    /* Always visible when content overflows */
}

/* Smooth height animation using transform scale */
.scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.10); /* Visible track always */
    border-radius: 6px;
    margin: 0 15px; /* Inset from sides */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth transitions */
    border: 1px solid rgba(0, 0, 0, 0.08); /* Clear border for definition */
    transform-origin: center bottom; /* Scale from bottom */
}

.scroll-container::-webkit-scrollbar-track:hover {
    background: rgba(0, 0, 0, 0.15); /* More prominent on direct track hover */
    margin: 0 12px; /* Slightly less inset on hover */
    border: 1px solid rgba(0, 0, 0, 0.12); /* Stronger border */
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4); /* Clearly visible by default */
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Match scrollbar transition */
    transform: scaleY(0.9) scaleX(0.98); /* Slightly compressed */
    transform-origin: center;
    min-width: 25px; /* Larger for better interaction */
    margin: 0 2px; /* Additional inset for thumb */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border for contrast */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Visible shadow for depth */
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7); /* Dark on direct thumb hover */
    transform: scaleY(1.1) scaleX(1.03); /* Growth effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Enhanced shadow */
    margin: 0 1px; /* Less margin on direct hover */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Stronger contrast */
}

.scroll-container::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.85); /* Very dark when dragging */
    transform: scaleY(1.15) scaleX(1.05); /* Maximum scale when active */
    transition: all 0.15s ease-out; /* Faster response when active */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Strong shadow when active */
}

/* Enhanced scrollbar height with smooth transform animation */
.scroll-container:hover::-webkit-scrollbar {
    transform: scaleY(2); /* Double height on container hover - smooth! */
}

.scroll-container::-webkit-scrollbar:hover {
    transform: scaleY(2); /* Direct scrollbar hover - smooth! */
}

/* Track also scales smoothly */
.scroll-container:hover::-webkit-scrollbar-track,
.scroll-container::-webkit-scrollbar-track:hover {
    transform: scaleY(2); /* Track scales with scrollbar */
}

/* Mobile and tablet optimizations with inset positioning */
@media only screen and (max-width: 1024px) {
    .scroll-container {
        /* No padding-bottom - overlay scrollbar */
    }
    
    .scroll-container::-webkit-scrollbar {
        height: 7px; /* Thicker by default for touch devices */
        transform-origin: center bottom; /* Scale from bottom */
    }
    
    .scroll-container:hover::-webkit-scrollbar,
    .scroll-container::-webkit-scrollbar:hover {
        transform: scaleY(1.7); /* Smooth scale instead of height */
    }
    
    .scroll-container:hover::-webkit-scrollbar-track,
    .scroll-container::-webkit-scrollbar-track:hover {
        transform: scaleY(1.7); /* Track scales with scrollbar */
    }
    
    .scroll-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.12) !important; /* More visible on tablets */
        margin: 0 12px; /* Inset on tablets */
        border: 1px solid rgba(0, 0, 0, 0.1);
        transform-origin: center bottom; /* Scale from bottom */
    }
    
    .scroll-container::-webkit-scrollbar-track:hover {
        background: rgba(0, 0, 0, 0.18) !important; /* Even more visible on direct hover */
        margin: 0 10px; /* Less inset on hover */
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.4) !important; /* Very visible by default */
        min-width: 30px; /* Better touch target */
        transform: scaleY(1) scaleX(1); /* No compression on touch devices */
        margin: 0 2px; /* Inset thumb */
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }
    
    .scroll-container::-webkit-scrollbar-thumb:hover {
        transform: scaleY(1.05) scaleX(1.02); /* Subtle growth */
        margin: 0 1px;
    }
    
    .scroll-container::-webkit-scrollbar-thumb:active {
        background: rgba(0, 0, 0, 0.6);
        transform: scaleY(1.08) scaleX(1.03);
        transition: all 0.2s ease-out;
    }
}

/* Mobile phones - optimized for touch with inset */
@media only screen and (max-width: 767px) {
    .scroll-container {
        /* No padding-bottom - true overlay scrollbar */
    }
    
    .scroll-container::-webkit-scrollbar {
        height: 8px !important; /* Always visible on phones - no hover needed */
    }
    
    .scroll-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.12) !important; /* Very visible track */
        margin: 0 10px !important; /* Inset from edges */
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Clear border */
        transform-origin: center bottom; /* Scale from bottom */
    }
    
    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.5) !important; /* Very visible - dark */
        min-width: 40px !important; /* Large touch target */
        transform: scaleY(1) scaleX(1) !important; /* No scaling effects */
        border-radius: 8px; /* More rounded */
        margin: 0 3px !important; /* Inset thumb */
        transition: all 0.3s ease !important; /* Smooth on mobile */
        border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Strong contrast */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important; /* Clear shadow */
    }
    
    .scroll-container::-webkit-scrollbar-thumb:active {
        background: rgba(0, 0, 0, 0.7) !important; /* Feedback on touch */
        transform: scaleY(1) scaleX(1) !important; /* Consistent size */
        margin: 0 2px !important; /* Slight expansion */
    }
}

/* Very small screens - maximum visibility with inset */
@media only screen and (max-width: 480px) {
    .scroll-container {
        /* No padding-bottom - overlay scrollbar doesn't affect layout */
    }
    
    .scroll-container::-webkit-scrollbar {
        height: 10px !important; /* Maximum visibility */
    }
    
    .scroll-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.15) !important; /* Maximum visibility */
        margin: 0 8px !important; /* Generous inset */
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.12) !important; /* Strong border */
        transform-origin: center bottom; /* Scale from bottom */
    }
    
    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.6) !important; /* Very dark for maximum visibility */
        min-width: 50px !important; /* Very large touch target */
        border-radius: 10px; /* More rounded for small screens */
        margin: 0 4px !important; /* Maximum inset */
        border: 1px solid rgba(255, 255, 255, 0.5) !important; /* Maximum contrast */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important; /* Strong shadow */
    }
}

/* Pulse animation for CTA buttons */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(254, 44, 85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 44, 85, 0);
    }
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Floating elements */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-20px);
    }
    100% {
        transform: translatey(0px);
    }
}

/* Support Section Styles */
.support-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(254, 44, 85, 0.1);
    transition: transform 0.3s ease;
}

.support-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.faq-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(37, 244, 238, 0.2);
    padding-bottom: 2.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #5B21B6;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #21242c;
    margin-bottom: 10px;
}

.faq-item ol {
    color: #21242c;
}

.faq-item ol li {
    margin-bottom: 8px;
    padding-left: 10px;
}

.contact-btn {
    background: linear-gradient(135deg, #5B21B6 0%, #6D28D9 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.4);
    color: white;
    text-decoration: none;
}

.faq-heading {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #5B21B6;
}

.support-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.support-intro .lead {
    color: #21242c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-outline-savetik {
    border: 2px solid #5B21B6;
    color: #5B21B6;
    background: transparent;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-savetik:hover {
    background: linear-gradient(135deg, #5B21B6 0%, #6D28D9 100%);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    border-color: #6D28D9;
}

/* Support section mobile responsiveness */
@media only screen and (max-width: 767px) {
    .support-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .contact-btn, .btn-outline-savetik {
        display: block;
        text-align: center;
        margin: 10px 0;
        width: 100%;
        min-height: 48px; /* Larger touch targets on mobile */
        padding: 14px 25px;
        font-size: 1rem;
    }

    .support-intro .lead {
        font-size: 1rem;
    }
    
    /* Improve touch targets for footer navigation */
    footer .nav-link {
        padding: 12px 8px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }
    
    /* Improve app store badge touch target */
    .app-store-badge {
        min-height: 60px;
        padding: 8px;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    
    /* Improve main navigation button touch targets */
    .btn-primary {
        min-height: 48px;
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Dark mode disabled - Always use light theme */

/* Privacy and Terms pages spacing */
main .col-10.mx-auto h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

main .col-10.mx-auto p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

main .col-10.mx-auto ul {
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

main .col-10.mx-auto ul li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

main .col-10.mx-auto p.lead {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Privacy ve Terms sayfalarındaki diğer paragraflar için */
main .col-10.mx-auto p:not(.lead) {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Privacy ve Terms sayfalarındaki liste içi paragraflar için */
main .col-10.mx-auto ul li p.lead {
    font-size: 1rem;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Privacy ve Terms sayfalarındaki liste aralıkları */
main .col-10.mx-auto ul[style*="list-style: none"] {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Terms sayfalarındaki liste aralıkları - yeni inline style olmayan versiyonu */
main .col-10.mx-auto ul.terms-list {
    list-style: none;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Privacy and Terms content styling */
.privacy-content, .terms-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.privacy-content h1, .terms-content h1 {
    color: #5B21B6;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.privacy-content h2, .terms-content h2 {
    color: #6B7280;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.privacy-content h3, .terms-content h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.privacy-content p, .terms-content p {
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul, .terms-content ul {
    margin-bottom: 1.5rem;
}

.privacy-content ul li, .terms-content ul li {
    color: #4B5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-content p, .privacy-content li, .terms-content p, .terms-content li {
    line-height: 1.6;
    color: #555;
}

.last-updated {
    font-style: italic;
    color: #888;
    margin-bottom: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4E74FF;
}

.btn-back {
    background-color: #4E74FF;
    border-color: #4E74FF;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #3d5eff;
    color: white;
    transform: translateY(-2px);
}

/* Footer margin adjustment for footer styles already present */
footer {
    margin-top: auto;
}

/* Update footerIcon padding to match embedded styles */
.footerIcon {
    width: auto;
    height: 55px;
    padding: 0 10px;
}

/* Language selector styling */
.language-selector {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 8px;
    transition: all 0.3s ease;
}

.language-selector:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.language-selector .btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.4rem 0.8rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
}

.language-selector .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    left: auto !important;
    transform: none !important;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: 5px;
    min-width: 180px;
}

.language-selector .dropdown-item {
    padding: 12px 16px; /* Larger touch targets */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    min-height: 44px; /* Minimum touch target size */
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Mobile-specific language selector improvements */
@media only screen and (max-width: 767px) {
    .language-selector {
        right: 15px;
        top: 15px;
        padding: 10px;
    }
    
    .language-selector .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        min-height: 48px; /* Larger touch target on mobile */
    }
    
    .language-selector .dropdown-menu {
        min-width: 200px;
        max-width: calc(100vw - 30px); /* Prevent overflow on small screens */
        right: 0 !important;
    }
    
    .language-selector .dropdown-item {
        padding: 14px 18px;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Tablet-specific optimizations (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .language-selector {
        right: 25px;
        top: 25px;
    }
    
    .language-selector .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .gridscroll img {
        height: 400px; /* Intermediate size for tablets */
    }
    
    footer {
        height: auto !important;
        min-height: 260px;
        padding: 30px 0;
    }
    
    /* Tablet footer improvements */
    footer .d-flex {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    footer .text-muted {
        font-size: 0.9rem !important;
        max-width: 200px;
    }
    
    footer .nav {
        justify-content: flex-end !important;
        flex-wrap: wrap;
        max-width: 300px;
    }
    
    footer .nav-link {
        font-size: 0.9rem !important;
        padding: 8px 6px !important;
    }
    
    /* Tablet App Store button centering */
    .d-grid.gap-3.d-flex.justify-content-sm-center {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        margin: 1.5rem auto !important;
        padding: 2rem 1rem !important;
    }
    
    .app-store-badge {
        margin: 0 auto;
        display: block;
    }
    
    .support-section {
        padding: 2.5rem;
    }
}

/* Very small mobile screens (max-width: 480px) */
@media only screen and (max-width: 480px) {
    .language-selector {
        right: 10px;
        top: 10px;
        padding: 8px;
    }
    
    .language-selector .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .language-selector .dropdown-menu {
        min-width: 180px;
        max-width: calc(100vw - 20px);
    }
    
    /* Improved text readability on very small screens */
    p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Improved button spacing on very small screens */
    .contact-btn, .btn-outline-savetik, .btn-primary {
        margin: 8px 0;
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    /* Better footer layout for very small screens */
    footer {
        height: auto !important;
        min-height: 280px;
        padding: 25px 0 30px 0;
    }
    
    footer .container {
        padding: 0 20px;
    }
    
    footer .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center !important;
    }
    
    /* Copyright text mobile optimization */
    footer .text-muted {
        font-size: 0.85rem !important;
        line-height: 1.4;
        margin-bottom: 0 !important;
        text-align: center;
        max-width: 280px;
        padding: 0 10px;
    }
    
    footer .nav {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
    
    footer .nav-item {
        margin: 3px 2px;
        flex: 0 0 auto;
    }
    
    footer .nav-link {
        padding: 10px 6px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        text-align: center;
        min-width: auto;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    /* Special handling for long German words */
    footer .nav-link {
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    /* Specific optimization for German pages */
    html[lang="de"] footer .nav-link {
        font-size: 0.8rem !important;
        padding: 8px 4px !important;
        line-height: 1.3;
        max-width: 85px;
        text-align: center;
    }
    
    html[lang="de"] footer .nav {
        gap: 5px;
        row-gap: 8px;
    }
    
    html[lang="de"] footer .text-muted {
        font-size: 0.8rem !important;
        max-width: 260px;
        line-height: 1.3;
    }
    
    .footerIcon {
        height: 50px;
        padding: 0;
        margin: 10px 0;
    }
    
    /* Improve screenshot gallery for very small screens */
    .gridscroll img {
        height: 180px; /* Even smaller for very small screens */
        margin-right: 5px;
    }
    
    .scroll-container {
        padding: 0px 0px 15px 10px;
    }
}

/* Landscape orientation optimizations for mobile */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .language-selector .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    main {
        min-height: calc(100vh - 200px);
    }
    
    footer {
        height: 200px;
    }
    
    .gridscroll img {
        height: 120px; /* Smaller gallery images in landscape */
    }
}

/* Mobile-specific accessibility and usability improvements */
@media only screen and (max-width: 767px) {
    /* Improve focus states for mobile accessibility */
    .language-selector .btn:focus,
    .contact-btn:focus,
    .btn-outline-savetik:focus,
    .btn-primary:focus {
        outline: 3px solid #4E74FF;
        outline-offset: 2px;
    }
    
    /* Improve tap highlighting */
    .language-selector .btn,
    .contact-btn,
    .btn-outline-savetik,
    .btn-primary,
    footer .nav-link {
        -webkit-tap-highlight-color: rgba(78, 116, 255, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Prevent zoom on input focus (if any forms are added later) */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Improve scrolling performance */
    .scroll-container,
    .gridscroll {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    /* Main page mobile spacing improvements */
    .responsive {
        padding-top: 3rem !important;
        margin-top: 2rem !important;
    }
    
    .responsive .text-center h1 {
        margin-bottom: 1rem !important;
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .responsive .text-center .text-primary {
        display: block;
        margin-top: 0.5rem !important;
        margin-bottom: 2rem !important;
        padding-bottom: 0 !important;
        font-size: 1.1rem !important;
        line-height: 1.4;
        font-weight: 500;
    }
    
    /* App store section spacing and centering */
    .d-grid.gap-3.d-flex.justify-content-sm-center {
        padding: 2rem 1rem !important;
        margin: 1rem auto 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    /* App Store badge mobile optimization */
    .app-store-badge {
        display: block !important;
        margin: 0 auto;
        width: 200px;
        height: 60px;
    }
    
    /* App icon mobile sizing */
    .responsive #icon {
        width: 120px !important;
        height: auto;
        margin-bottom: 2rem !important;
    }
    
    /* Safe area support for devices with notches */
    .language-selector {
        top: max(15px, env(safe-area-inset-top, 15px));
        right: max(15px, env(safe-area-inset-right, 15px));
    }
    
    footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }
}

/* Additional responsive fixes for better mobile experience */
@media only screen and (max-width: 991px) {
    /* Medium screens (tablets and small desktops) */
    footer {
        height: auto !important;
        min-height: 240px;
    }
    
    footer .container {
        padding: 0 15px;
    }
    
    main {
        min-height: calc(100vh - 240px);
    }
}

@media only screen and (max-width: 576px) {
    /* Extra small screens */
    .responsive {
        padding: 2rem 1rem !important;
        margin-top: 1rem !important;
    }
    
    .responsive .text-center h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .responsive .text-center .text-primary {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .responsive #icon {
        width: 100px !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Extra small App Store button centering */
    .d-grid.gap-3.d-flex.justify-content-sm-center {
        padding: 1.5rem 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .app-store-badge {
        width: 180px !important;
        height: 55px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Footer extra small screens */
    footer {
        min-height: 260px;
        padding: 20px 0 25px 0;
    }
    
    footer .nav-link {
        font-size: 0.8rem !important;
        padding: 8px 4px !important;
    }
    
    .footerIcon {
        height: 45px;
    }
    
    /* German specific extra small screens */
    html[lang="de"] footer .nav-link {
        font-size: 0.75rem !important;
        padding: 6px 3px !important;
        max-width: 75px;
    }
    
    html[lang="de"] footer .text-muted {
        font-size: 0.75rem !important;
        max-width: 240px;
    }
}

/* High DPI display optimizations */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    .language-selector {
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }
    
    .support-section {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Dark mode preference detection (even though dark mode is disabled) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme but improve contrast for dark mode users */
    .language-selector {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}
