* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

/* Shared controls and navigation */
.theme-toggle {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--on-surface);
            cursor: pointer;
            padding: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            outline: none;
        }

.theme-toggle:hover {
            background: var(--surface-variant);
            transform: scale(1.1);
        }

.mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--on-surface);
            cursor: pointer;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
        }

.mobile-menu-toggle:hover {
            background: var(--surface-variant);
        }

.mobile-menu-toggle:focus-visible,
.nav-links a:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 3px;
        }

.nav-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

.nav-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

header {
            position: fixed;
            top: 0;
            width: 100%;
            background: var(--card-background);
            backdrop-filter: blur(20px);
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
        }

nav > :last-child {
            margin-left: auto;
        }

.logo {
            font-size: 28px;
            font-weight: 700;
            text-decoration: none;
            background: linear-gradient(45deg, var(--primary), var(--tertiary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            align-items: center;
            margin: 0;
            padding: 0;
        }

.nav-links a {
            text-decoration: none;
            color: var(--on-surface);
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            display: inline-flex;
            align-items: center;
            height: 48px;
            line-height: 1;
            padding: 8px 0;
        }

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

.nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

.nav-links a:hover::after {
            width: 100%;
        }

.nav-links .nav-cta-arrow {
            display: none;
        }

.mobile-menu-heading {
            display: none;
        }

/* Shared footer */
.footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

.footer-links {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-bottom: 32px;
            flex-wrap: wrap;
        }

.footer-links a {
            color: var(--footer-text);
            text-decoration: none;
            transition: opacity 0.3s ease;
            font-size: 14px;
        }

.footer-links a:hover {
            opacity: 0.7;
        }

@media (min-width: 769px) {
            nav {
                display: grid;
                grid-template-columns: auto 1fr auto;
                column-gap: clamp(24px, 3vw, 48px);
                align-items: center;
            }

            .nav-links {
                grid-row: 1;
                grid-column: 2;
                justify-self: center;
            }

            .nav-controls {
                grid-row: 1;
                grid-column: 3;
                justify-self: end;
            }

            .theme-toggle {
                width: 48px;
                height: 48px;
                padding: 8px;
            }
        }

.theme-icon {
    width: 36px;
    height: 36px;
}

/* Theme-aware scrollbar colors */
:root {
    color-scheme: light;
    scrollbar-color: var(--primary) var(--surface);
    scrollbar-width: thin;
}

[data-theme="dark"] {
    color-scheme: dark;
    scrollbar-color: var(--primary) var(--surface);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    min-height: 36px;
    background: var(--primary);
    border: 3px solid var(--surface);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--on-surface-variant);
}

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

body {
            font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-x: hidden;
        }

        /* Shared theme tokens */
        :root {
            --primary: #006b5c;
            --tertiary: #456179;
            --surface: #f8f9ff;
            --surface-variant: #dae4e0;
            --surface-container: #ecf2f0;
            --outline: #6f7975;
            --on-surface: #191c1b;
            --on-surface-variant: #3f4946;
            --background: #dae4e0;
            --card-background: rgba(255, 255, 255, 0.7);
            --footer-background: #191c1b;
            --footer-text: #f8f9ff;
        }

        [data-theme="dark"] {
            --primary: #5ddcc6;
            --tertiary: #a2cbef;
            --surface: #0f1513;
            --surface-variant: #3f4946;
            --surface-container: #1a201e;
            --outline: #899390;
            --on-surface: #e0e3e1;
            --on-surface-variant: #bfc9c5;
            --background: #1a201e;
            --card-background: rgba(26, 32, 30, 0.8);
            --footer-background: #0a0e0c;
            --footer-text: #e0e3e1;
        }

        body {
            background: var(--background);
            color: var(--on-surface);
        }

        footer {
            background: var(--footer-background);
            color: var(--footer-text);
            padding: 64px 0 32px;
            text-align: center;
        }

        /* Mobile navigation and footer layout */
        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: block;
            }

            .nav-left {
                gap: 8px;
            }

            .theme-toggle {
                width: 36px;
                height: 36px;
                padding: 6px;
            }

            .nav-links {
                position: fixed;
                top: 72px;
                right: 0;
                z-index: 1500;
                width: min(88vw, 360px);
                height: calc(100vh - 72px);
                height: calc(100dvh - 72px);
                overflow-y: auto;
                overscroll-behavior: contain;
                padding: 24px 20px max(24px, env(safe-area-inset-bottom));
                border-top: 1px solid color-mix(in srgb, var(--outline) 24%, transparent);
                border-left: 1px solid color-mix(in srgb, var(--outline) 24%, transparent);
                border-radius: 24px 0 0;
                background: var(--surface);
                box-shadow: -16px 0 42px rgba(0, 0, 0, 0.2);
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                gap: 8px;
                transform: translateX(100%);
                visibility: hidden;
                pointer-events: none;
                transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 240ms;
            }

            .nav-links.active {
                transform: translateX(0);
                visibility: visible;
                pointer-events: auto;
                transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
            }

            .nav-links > li {
                list-style: none;
            }

            .mobile-menu-heading {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
                padding: 4px 0 18px;
                margin-bottom: 8px;
                border-bottom: 1px solid color-mix(in srgb, var(--outline) 24%, transparent);
            }

            .mobile-menu-heading > div {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .mobile-menu-eyebrow {
                color: var(--primary);
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.12em;
                text-transform: uppercase;
            }

            .mobile-menu-title {
                color: var(--on-surface);
                font-size: 20px;
                font-weight: 700;
            }

            .nav-links a {
                width: 100%;
                height: auto;
                min-height: 48px;
                padding: 13px 15px;
                border-radius: 14px;
                background: var(--surface-container);
                color: var(--on-surface);
                font-size: 16px;
                justify-content: space-between;
                text-align: left;
                transition: background-color 180ms ease, color 180ms ease;
            }

            .nav-links a::after {
                position: static;
                width: auto;
                height: auto;
                background: none;
                content: '→';
                font-size: 20px;
                opacity: 0.55;
                transition: opacity 180ms ease, transform 180ms ease;
            }

            .nav-links a:hover,
            .nav-links a:focus-visible {
                background: color-mix(in srgb, var(--primary) 8%, var(--surface-container));
                color: var(--primary);
            }

            .nav-links a:hover::after,
            .nav-links a:focus-visible::after {
                width: auto;
                opacity: 1;
                transform: translateX(2px);
            }

            .nav-links a[aria-current="page"],
            .nav-links a[aria-current="location"] {
                background: color-mix(in srgb, var(--primary) 12%, var(--surface-container));
                box-shadow: inset 3px 0 var(--primary);
                color: var(--primary);
                font-weight: 700;
            }

            .nav-links .nav-cta {
                margin-top: auto;
                padding-top: 16px;
                border-top: 1px solid color-mix(in srgb, var(--outline) 24%, transparent);
            }

            .nav-links .nav-cta a {
                justify-content: center;
                gap: 10px;
                background: var(--primary);
                color: var(--surface);
                font-weight: 700;
            }

            .nav-links .nav-cta a::after {
                content: none;
            }

            .nav-links .nav-cta-arrow {
                display: inline;
            }

            .nav-links .nav-cta a:hover,
            .nav-links .nav-cta a:focus-visible {
                background: color-mix(in srgb, var(--primary) 86%, var(--on-surface));
                color: var(--surface);
            }

            .footer-links {
                flex-direction: column;
                gap: 16px;
            }

            .footer-content {
                padding: 0 20px;
            }

            footer {
                padding: 48px 0 24px;
            }
        }

        body.mobile-menu-open {
            overflow: hidden;
        }

        body.mobile-menu-open header {
            backdrop-filter: none;
        }

        body.mobile-menu-open::before {
            position: fixed;
            z-index: 999;
            inset: 72px 0 0;
            background: rgba(8, 14, 12, 0.48);
            content: '';
            backdrop-filter: blur(3px);
            animation: menu-backdrop-in 180ms ease-out both;
        }

        @keyframes menu-backdrop-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @media (prefers-reduced-motion: reduce) {
            .nav-links,
            .nav-links a,
            body.mobile-menu-open::before {
                animation: none !important;
                transition: none !important;
            }
        }

        @media (max-width: 1024px) and (min-width: 769px) {
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 24px;
            }
        }

        /* Legal page content */
        .terms {
            padding: 120px 20px;
            background: var(--surface);
        }

        .terms-container {
            max-width: 900px;
            margin: 0 auto;
            line-height: 1.8;
            color: var(--on-surface);
        }

        .terms h2 {
            font-size: clamp(28px, 5vw, 42px);
            font-weight: 700;
            margin-bottom: 32px;
            text-align: center;
        }

        .terms p {
            margin-bottom: 16px;
            font-size: 15px;
            color: var(--on-surface-variant);
        }

        .terms h3 {
            font-size: 20px;
            margin: 28px 0 12px;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .terms {
                padding: 80px 20px;
            }
            .terms h2 {
                font-size: 28px;
            }
            .terms h3 {
                font-size: 18px;
            }

            .terms-container {
                padding: 0 8px;
            }
            .terms-container p {
                font-size: 16px;
                margin-bottom: 14px;
                line-height: 1.7;
                color: var(--on-surface-variant);
            }
            .terms-container ul {
                padding-left: 20px;
                margin: 0 0 16px 0;
                list-style-position: inside;
            }
            .terms-container li {
                margin-bottom: 10px;
                font-size: 15px;
                color: var(--on-surface-variant);
            }
            .terms-container li b {
                display: inline-block;
                margin-right: 6px;
            }
            .terms-container a {
                color: var(--primary);
                word-break: break-word;
            }
        }

        /* Back navigation links */
        .back-link,
        .back-desktop a {
            text-decoration: none;
            color: var(--on-surface);
            font-weight: 500;
            font-size: 16px;
            position: relative;
            transition: all 0.3s ease;
        }

        .back-link:hover,
        .back-desktop a:hover {
            color: var(--primary);
        }

        .back-link::after,
        .back-desktop a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .back-link:hover::after,
        .back-desktop a:hover::after {
            width: 100%;
        }

        .back-mobile { display: none; }
        .back-desktop { display: list-item; }

        @media (max-width: 768px) {
            .back-mobile { display: inline-block; margin-right: 12px; }
            .back-desktop { display: none; }
        }
