/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-primary: #007AFF;
    --color-secondary: #5856D6;
    --color-accent: #FF2D55;

    --color-bg: #FFFFFF;
    --color-bg-secondary: #F5F5F7;

    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-text-tertiary: #86868B;

    --color-border: #D2D2D7;

    /* Device Dimensions */
    --device-width: 340px;
    --device-height: 694px;
    --device-radius: 55px;
    --device-bezel: 12px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme='dark'] {
    --color-bg: #000000;
    --color-bg-secondary: #1C1C1E;

    --color-text: #F5F5F7;
    --color-text-secondary: #98989D;
    --color-text-tertiary: #6E6E73;

    --color-border: #38383A;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --color-bg: #000000;
        --color-bg-secondary: #1C1C1E;

        --color-text: #F5F5F7;
        --color-text-secondary: #98989D;
        --color-text-tertiary: #6E6E73;

        --color-border: #38383A;
    }
}

:root[data-theme='dark'] .navbar {
    background: rgba(28, 28, 30, 0.9) !important;
    border-bottom: 1px solid var(--color-border);
}

:root[data-theme='dark'] .device-screen {
    background: #F5F5F7;
}

:root[data-theme='dark'] .btn-primary {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

:root[data-theme='dark'] .legal-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

:root[data-theme='dark'] .legal-nav-link-active {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .lang-switcher {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-text-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398989D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] .lang-switcher:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .lang-switcher option {
    background: #1C1C1E;
    color: #F5F5F7;
}

:root[data-theme='dark'] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-text);
}

:root[data-theme='dark'] .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .nav-menu-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-text);
}

:root[data-theme='dark'] .nav-menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .theme-icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74) rotate(30deg);
}

:root[data-theme='dark'] .theme-icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .navbar {
        background: rgba(28, 28, 30, 0.9) !important;
        border-bottom: 1px solid var(--color-border);
    }

    :root:not([data-theme]) .device-screen {
        background: #F5F5F7;
    }

    :root:not([data-theme]) .btn-primary {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    :root:not([data-theme]) .legal-nav-link:hover {
        border-color: rgba(255, 255, 255, 0.22);
    }

    :root:not([data-theme]) .legal-nav-link-active {
        color: #FFFFFF;
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.08);
    }

    :root:not([data-theme]) .lang-switcher {
        border-color: rgba(255, 255, 255, 0.25);
        color: var(--color-text-secondary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398989D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    }

    :root:not([data-theme]) .lang-switcher:hover {
        border-color: rgba(255, 255, 255, 0.45);
    }

    :root:not([data-theme]) .lang-switcher option {
        background: #1C1C1E;
        color: #F5F5F7;
    }

    :root:not([data-theme]) .theme-toggle {
        border-color: rgba(255, 255, 255, 0.25);
        color: var(--color-text);
    }

    :root:not([data-theme]) .theme-toggle:hover {
        border-color: rgba(255, 255, 255, 0.45);
    }

    :root:not([data-theme]) .nav-menu-toggle {
        border-color: rgba(255, 255, 255, 0.25);
        color: var(--color-text);
    }

    :root:not([data-theme]) .nav-menu-toggle:hover {
        border-color: rgba(255, 255, 255, 0.45);
    }

    :root:not([data-theme]) .theme-icon-sun {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.74) rotate(30deg);
    }

    :root:not([data-theme]) .theme-icon-moon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0);
    }
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: block;
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.nav-download-btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.nav-download-icon {
    width: 17px;
    height: 17px;
    display: block;
    flex-shrink: 0;
}

.nav-download-label {
    line-height: 1;
}

.legal-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-nav-link {
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.32rem 0.58rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.legal-nav-link:hover {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.2);
}

.legal-nav-link-active {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
}

.lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    color: var(--color-text-secondary);
    font-family: var(--font-family);
    font-size: 0.875rem;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    min-width: 7rem;
}

.lang-switcher:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.lang-switcher:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: transparent;
}

.lang-switcher option {
    background: #FFFFFF;
    color: #1D1D1F;
}

.theme-toggle {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: var(--color-text);
}

.theme-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: transparent;
}

.nav-menu-toggle {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-menu-toggle:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: var(--color-text);
}

.nav-menu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: transparent;
}

.nav-menu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu-icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-menu-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

html.mobile-nav-open .nav-menu-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

html.mobile-nav-open .nav-menu-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

.theme-icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74) rotate(-20deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-visible {
    animation: cookie-slide-up 0.24s ease-out;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
    max-width: 56ch;
}

.cookie-consent-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.cookie-btn {
    border-radius: 0.6rem;
    border: 1px solid var(--color-border);
    padding: 0.48rem 0.78rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
}

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

.cookie-btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: var(--color-text);
}

.cookie-btn-primary {
    border-color: transparent;
    background: var(--gradient-primary);
    color: #FFFFFF;
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.28);
}

.cookie-settings {
    position: fixed;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    border-radius: 0.65rem;
    padding: 0.42rem 0.65rem;
    font-size: 0.75rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.cookie-settings:hover {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.35);
}

.cookie-settings[hidden] {
    display: none;
}

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fixed Device Container */
.device-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.device-frame {
    width: var(--device-width);
    height: var(--device-height);
    background: linear-gradient(145deg, #1D1D1F 0%, #2D2D2F 100%);
    border-radius: var(--device-radius);
    padding: var(--device-bezel);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: calc(var(--device-radius) - var(--device-bezel));
    overflow: hidden;
    position: relative;
}

.device-content {
    width: 100%;
    height: 100%;
    background: #F5F5F7;
    position: relative;
    transition: opacity 0.4s ease;
}

/* Vertical Progress Stepper (Desktop) */
.progress-stepper {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: none;
}

.stepper-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.stepper-dots {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stepper-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid var(--color-bg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stepper-dot.active {
    background: var(--color-primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

/* Horizontal Progress Bar (Mobile) */
.progress-bar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    z-index: 90;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Scroll Container */
.scroll-container {
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    scroll-snap-align: start;
}

.scroll-section:nth-child(even) {
    background: var(--color-bg);
}

.scroll-section:nth-child(odd) {
    background: var(--color-bg-secondary);
}

.section-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-block {
    max-width: 600px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-section.active .text-block {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.section-note {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Download Section Wrapper */
.download-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .download-wrapper {
        align-items: flex-start;
        max-width: 600px;
    }
}

/* Footer */
.footer {
    padding: 2rem 2rem 3rem;
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}

.footer-text {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    margin: 0.5rem 0 0;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.footer-link {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.footer-link-active {
    color: var(--color-text);
}

/* Desktop Layout (1024px+) */
@media (min-width: 1024px) {
    .progress-stepper {
        display: block;
    }

    .progress-bar-mobile {
        display: none;
    }

    .device-container {
        left: 35%;
    }

    .scroll-section {
        padding: 4rem 4rem;
    }

    .section-content {
        justify-content: flex-end;
    }

    .text-block {
        text-align: left;
        margin-right: 0;
    }
}

/* Tablet Layout */
@media (max-width: 1023px) and (min-width: 768px) {
    :root {
        --device-width: 260px;
        --device-height: 530px;
    }

    .device-container {
        top: 15vh;
        transform: translate(-50%, 0);
    }

    .scroll-section {
        padding-top: calc(var(--device-height) + 15vh + 3rem);
        padding-bottom: max(6rem, env(safe-area-inset-bottom, 2rem));
        min-height: 100vh;
    }

    .text-block {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nav-content {
        height: auto;
        min-height: 70px;
        padding: 0.65rem 0;
        gap: 0.75rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 0.75rem;
        order: 3;
    }

    .nav-quick-actions {
        margin-left: auto;
        order: 2;
    }

    .legal-nav-links {
        width: 100%;
        justify-content: center;
    }

    .scroll-container {
        margin-top: 116px;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    :root {
        --device-width: 200px;
        --device-height: 408px;
        --device-radius: 40px;
        --device-bezel: 8px;
    }

    .navbar {
        padding: 0 1rem;
    }

    .nav-content {
        height: auto;
        min-height: 62px;
        padding: 0.6rem 0;
        gap: 0.6rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.55rem;
        font-size: 1rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        display: block;
        font-size: 0.98rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-quick-actions {
        gap: 0.45rem;
        margin-left: 0;
        order: 2;
    }

    .nav-download-btn {
        padding: 0.58rem;
        min-width: 2.25rem;
        border-radius: 0.65rem;
    }

    .nav-download-label {
        display: none;
    }

    .nav-menu-toggle {
        display: inline-flex;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        order: 3;
        padding: 0.65rem;
        border: 1px solid var(--color-border);
        border-radius: 0.85rem;
        background: var(--color-bg);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    html.mobile-nav-ready .nav-actions {
        display: none;
    }

    html.mobile-nav-ready.mobile-nav-open .nav-actions {
        display: flex;
    }

    .legal-nav-links {
        width: 100%;
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .legal-nav-link {
        text-align: center;
        padding: 0.42rem 0.5rem;
    }

    .lang-switcher {
        min-width: 0;
        width: 100%;
    }

    .theme-toggle {
        width: 2.1rem;
        height: 2.1rem;
        align-self: flex-end;
    }

    .scroll-container {
        margin-top: 92px;
    }

    .device-container {
        top: 10vh;
        transform: translate(-50%, 0);
    }

    .progress-stepper {
        display: none;
    }

    .scroll-section {
        padding: 2rem 1.5rem;
        padding-top: calc(var(--device-height) + 10vh + 1rem);
        padding-bottom: max(6rem, env(safe-area-inset-bottom, 2rem));
        min-height: 100vh;
    }

    .text-block {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-settings {
        left: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legal Pages */
.legal-header {
    padding-top: 140px;
    padding-bottom: var(--space-xl);
    background: var(--gradient-hero);
    text-align: center;
}

.legal-content {
    padding: var(--space-3xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1, 
.legal-content h2, 
.legal-content h3 {
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--color-text-secondary);
}

.legal-content li {
    margin-bottom: var(--space-xs);
}

.legal-content strong {
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
}
