 :root {
            /* Updated color tokens to match the emerald-based design brief */
            --background: oklch(1 0 0);
            --foreground: oklch(0.35 0.01 258.34);
            --card: oklch(0.97 0.01 258.34);
            --card-foreground: oklch(0.25 0.01 258.34);
            --popover: oklch(0.99 0.02 85.87);
            --popover-foreground: oklch(0.25 0.01 258.34);
            --primary: oklch(0.45 0.15 162.4);
            --primary-foreground: oklch(1 0 0);
            --secondary: oklch(0.55 0.15 162.4);
            --secondary-foreground: oklch(1 0 0);
            --muted: oklch(0.97 0.01 258.34);
            --muted-foreground: oklch(0.25 0.01 258.34);
            --accent: oklch(0.55 0.15 162.4);
            --accent-foreground: oklch(1 0 0);
            --destructive: oklch(0.45 0.25 15.72);
            --destructive-foreground: oklch(1 0 0);
            --border: oklch(0.92 0.01 258.34);
            --input: oklch(1 0 0);
            --ring: oklch(0.45 0.15 162.4 / 0.5);
            --radius: 0.5rem;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
            color: var(--foreground);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            margin: 0;
        }

        .container {
            width: 100%;
            max-width: 42rem;
        }

        /* Main Header */
        .main-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .main-title {
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .main-subtitle {
            font-size: 1.125rem;
            color: var(--muted-foreground);
            margin: 0;
        }

        /* Primary Converter Section */
        .converter-section {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            padding: 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(16, 185, 129, 0.1);
        }

        /* Mode Toggle */
        .mode-toggle-wrapper {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .conversion-toggle {
            display: flex;
            background-color: var(--muted);
            border-radius: 0.75rem;
            padding: 0.25rem;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Toggle Buttons */
        .toggle-btn {
            flex: 1;
            padding: 0.75rem 1.5rem;
            font-size: 0.9rem;
            font-weight: 500;
            border: none;
            border-radius: 0.5rem;
            background-color: transparent;
            color: var(--muted-foreground);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .toggle-btn.active {
            background-color: white;
            color: var(--primary);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            font-weight: 600;
        }

        .toggle-btn:hover:not(.active) {
            color: var(--foreground);
        }

        /* Main Input Section */
        .input-section {
            text-align: center;
        }

        .input-group {
            margin-bottom: 1.5rem;
        }

        .input-label {
            display: block;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--foreground);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Enhanced Input Wrapper */
        .input-wrapper {
            position: relative;
            margin-bottom: 1.5rem;
        }

        .input-wrapper::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
            border-radius: calc(var(--radius) + 2px);
            z-index: 0;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .input-wrapper:focus-within::before,
        .input-wrapper:hover::before {
            opacity: 1;
        }

        .input-wrapper .input {
            position: relative;
            z-index: 1;
            background-color: var(--input);
        }


        .input {
            width: 100%;
            padding: 1.75rem 1.5rem;
            font-size: 1.5rem;
            font-weight: 600;
            border: 3px solid var(--border);
            border-radius: calc(var(--radius));
            background-color: var(--input);
            color: var(--foreground);
            outline: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            text-align: center;
        }

        .input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--ring), 0 8px 20px rgba(16, 185, 129, 0.25);
            transform: translateY(-2px);
        }

        .input:hover:not(:focus) {
            border-color: var(--primary);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
            transform: translateY(-1px);
        }

        .error-message {
            color: var(--destructive);
            font-size: 0.875rem;
            text-align: center;
            padding: 0.75rem;
            background-color: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }

        .convert-btn {
            width: 100%;
            padding: 1rem 1.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--primary-foreground);
            border: none;
            border-radius: calc(var(--radius));
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
            box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
        }

        .convert-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
        }

        .convert-btn:active {
            transform: translateY(0);
        }

        .btn-icon {
            width: 1rem;
            height: 1rem;
        }

        /* Calculation Steps */
        .calculation-steps {
            margin-top: 1rem;
            padding: 1rem;
            background: white;
            border-radius: 0.5rem;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .steps-header {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--foreground);
            margin-bottom: 0.5rem;
        }

        .steps-content {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .step {
            font-size: 0.8rem;
            color: var(--muted-foreground);
            font-family: 'Monaco', 'Menlo', monospace;
        }

        /* Info Section */
        .info-section {
            margin-top: 3rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .formula-card {
            background: white;
            padding: 1.5rem;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            text-align: center;
        }

        .formula-content {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .formula {
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 1rem;
            font-weight: 600;
            color: var(--primary);
            background: var(--muted);
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            border: 1px solid var(--border);
        }

        /* Conversion Table */
        .conversion-table-details {
            background: white;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .table-summary {
            padding: 1rem 1.5rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            background: var(--muted);
            border-bottom: 1px solid var(--border);
        }

        .table-summary:hover {
            background: var(--accent);
            color: white;
        }

        .conversion-table-wrapper {
            padding: 1rem;
            max-height: 400px;
            overflow-y: auto;
        }

        .conversion-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.875rem;
        }

        .conversion-table th {
            text-align: left;
            padding: 0.5rem;
            border-bottom: 2px solid var(--border);
            font-weight: 600;
            color: var(--foreground);
        }

        .conversion-table td {
            padding: 0.375rem 0.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .conversion-table td:nth-child(2),
        .conversion-table td:nth-child(3) {
            text-align: right;
            font-family: 'Monaco', 'Menlo', monospace;
        }

        .conversion-table td:nth-child(2) {
            color: var(--primary);
        }

        /* SEO Content Styles */
        .seo-content {
            background: white;
            padding: 1.5rem;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            margin-bottom: 1rem;
        }

        .seo-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .seo-subtitle {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--primary);
            margin: 1rem 0 0.5rem 0;
        }

        .seo-description {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--muted-foreground);
            margin-bottom: 1rem;
        }

        .seo-features {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .seo-features li {
            font-size: 0.9rem;
            line-height: 1.5;
            color: var(--muted-foreground);
            margin-bottom: 0.375rem;
            padding-left: 0;
        }

        .seo-info-section {
            background: white;
            padding: 1.5rem;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            margin-top: 1rem;
        }

        .seo-text {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--muted-foreground);
            margin-bottom: 1rem;
        }

        .common-conversions {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin: 0.75rem 0;
        }

        .conversion-example {
            font-size: 0.9rem;
            padding: 0.5rem 0.75rem;
            background: var(--muted);
            border-radius: 0.375rem;
            border-left: 3px solid var(--primary);
            font-family: 'Monaco', 'Menlo', monospace;
        }

        /* FAQ Styles */
        .faq-item {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

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

        .faq-question {
            font-size: 1rem;
            font-weight: 600;
            color: var(--foreground);
            margin-bottom: 0.5rem;
        }

        .faq-answer {
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--muted-foreground);
            margin: 0;
        }

        /* Footer */
        .footer {
            text-align: center;
            margin-top: 2rem;
            padding: 1rem;
            color: var(--muted-foreground);
            font-size: 0.875rem;
        }

        /* Utility Classes */
        .hidden {
            display: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .main-title {
                font-size: 1.875rem;
            }
            
            .converter-section {
                padding: 1.5rem;
            }
            
            .input {
                font-size: 1.25rem;
                padding: 1.5rem 1rem;
            }
            
            .conversion-toggle {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .toggle-btn {
                width: 100%;
            }
        }

        .convert-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Result Section */
        .result-section {
            margin-top: 2rem;
            padding: 1.5rem;
            background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
            border-radius: calc(var(--radius));
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .result-header {
            text-align: center;
            margin-bottom: 1rem;
        }

        .result-header h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--primary);
            margin: 0;
        }

        .result-content {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .result-item {
            padding: 1rem;
            border-radius: 0.5rem;
            text-align: center;
        }

        .result-item.primary {
            background: white;
            border: 2px solid var(--primary);
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
        }

        .result-item.secondary {
            background: rgba(16, 185, 129, 0.05);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .result-value {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--foreground);
            font-family: 'Monaco', 'Menlo', monospace;
        }

        .result-item.primary .result-value {
            color: var(--primary);
            font-size: 1.375rem;
        }        .info-card {
            background-color: oklch(0.97 0.01 258.34 / 0.3);
        }

        .info-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .formula-box {
            background-color: var(--background);
            padding: 0.75rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            text-align: center;
            margin: 0.75rem 0;
        }

        .formula-code {
            color: var(--primary);
            font-weight: 600;
            font-family: monospace;
        }

        .calculation-steps {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .calculation-box {
            background-color: var(--background);
            padding: 0.75rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-family: monospace;
            font-size: 0.875rem;
        }

        .step-detail {
            margin-top: 0.25rem;
            color: var(--muted-foreground);
        }

        .footer {
            text-align: center;
            font-size: 0.875rem;
            color: var(--muted-foreground);
        }

        .icon {
            width: 2rem;
            height: 2rem;
            color: var(--primary);
        }

        .icon-small {
            width: 1.25rem;
            height: 1.25rem;
        }

        .hidden {
            display: none;
        }

        .text-sm {
            font-size: 0.875rem;
        }

        /* Conversion Table Styles */
        .conversion-table {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .conversion-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .conversion-table th {
            position: sticky;
            top: 0;
            background-color: var(--muted);
            border-bottom: 2px solid var(--border);
            padding: 0.75rem 0.5rem;
            font-weight: 600;
            color: var(--foreground);
        }

        .conversion-table td {
            padding: 0.5rem;
            border-bottom: 1px solid var(--border);
            transition: background-color 0.2s ease;
        }

        .conversion-table tbody tr:hover {
            background-color: var(--muted);
        }

        .conversion-table tbody tr:last-child td {
            border-bottom: none;
        }

        @media (max-width: 768px) {
            .conversion-table {
                font-size: 0.8rem;
            }
            
            .conversion-table th,
            .conversion-table td {
                padding: 0.375rem 0.25rem;
            }
        }

        /* Conversion Toggle Styles */
        .conversion-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.25rem;
            background-color: var(--muted);
        }

        .toggle-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            border: none;
            border-radius: calc(var(--radius) - 2px);
            background-color: transparent;
            color: var(--muted-foreground);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .toggle-btn:hover {
            background-color: var(--background);
            color: var(--foreground);
        }

        .toggle-btn.active {
            background-color: var(--background);
            color: var(--primary);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 768px) {
            .toggle-btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
            }
            
            .toggle-btn span {
                display: none;
            }
        }

        /* Site Footer Styles */
        .site-footer {
            margin-top: 3rem;
            padding: 2rem 0 1rem;
            background: linear-gradient(135deg, var(--card) 0%, var(--muted) 50%, var(--card) 100%);
            border-top: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }

        .footer-section h4 {
            color: var(--primary);
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .footer-section p {
            color: var(--muted-foreground);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--muted-foreground);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
        }

        .footer-links a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }

        .footer-bottom p {
            color: var(--muted-foreground);
            font-size: 0.8rem;
            margin-bottom: 0.25rem;
        }

        /* Footer Language Switch */
        .footer-language-switch {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .footer-lang-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--background);
            color: var(--foreground);
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }

        .footer-lang-btn:hover {
            background: var(--muted);
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .footer-lang-btn.active {
            background: var(--primary);
            color: var(--primary-foreground);
            border-color: var(--primary);
        }

        .footer-lang-btn .lang-code {
            font-weight: 600;
            font-size: 0.8rem;
            min-width: 1.5rem;
            text-align: center;
        }

        .footer-lang-btn .lang-name {
            font-weight: 500;
        }

        /* Quick Answer Card Styles */
        .quick-answer-card {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--primary-foreground);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .answer-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .answer-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 0;
        }

        .answer-icon {
            width: 1.5rem;
            height: 1.5rem;
        }

        .answer-content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .primary-answer {
            font-size: 1.5rem;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.2);
            padding: 1rem;
            border-radius: var(--radius);
        }

        .secondary-answer {
            font-size: 1.25rem;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.1);
            padding: 0.75rem;
            border-radius: var(--radius);
        }

        /* Enhanced Calculation Steps */
        .steps-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .steps-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            color: var(--primary);
        }

        .steps-icon {
            width: 1.25rem;
            height: 1.25rem;
            color: var(--primary);
        }

        .step {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: var(--card);
            border-radius: var(--radius);
            border-left: 4px solid var(--primary);
        }

        .step-number {
            background: var(--primary);
            color: var(--primary-foreground);
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            flex-shrink: 0;
        }

        .step-text {
            flex: 1;
            line-height: 1.6;
        }

        /* Navigation Card */
        .navigation-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin: 2rem 0;
            text-align: center;
        }

        .navigation-card h3 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .navigation-card p {
            color: var(--muted-foreground);
            margin-bottom: 1rem;
        }

        .nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--primary);
            color: var(--primary-foreground);
            text-decoration: none;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius);
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .nav-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        /* Time Formats List */
        .time-formats {
            list-style: none;
            padding: 0;
        }

        .time-formats li {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border);
        }

        .time-formats li:last-child {
            border-bottom: none;
        }

        /* Use Cases */
        .use-cases {
            display: grid;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .use-case {
            background: var(--card);
            padding: 1.5rem;
            border-radius: var(--radius);
            border-left: 4px solid var(--primary);
        }

        .use-case h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .use-case p {
            color: var(--muted-foreground);
            margin: 0;
        }

        /* Conversion Grid */
        .conversion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .conversion-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--card);
            padding: 1rem;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        .conversion-input {
            font-weight: 600;
            color: var(--primary);
        }

        .conversion-equals {
            color: var(--muted-foreground);
            font-weight: 500;
        }

        .conversion-output {
            font-weight: 600;
            color: var(--secondary);
        }

        /* Related Conversions */
        .related-conversions {
            background: var(--muted);
            padding: 2rem;
            border-radius: var(--radius);
            margin: 2rem 0;
        }

        /* FAQ Section Enhancement */
        .faq-section {
            margin-top: 2rem;
        }

        .faq-item {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .faq-question {
            background: var(--muted);
            color: var(--primary);
            padding: 1rem 1.5rem;
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }

        .faq-answer {
            padding: 1rem 1.5rem;
            margin: 0;
            line-height: 1.6;
            color: var(--foreground);
        }

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 1rem;
        }

        .modal.hidden {
            display: none;
        }

        .modal-content {
            background: var(--background);
            border-radius: var(--radius);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            max-width: 42rem;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--muted-foreground);
            cursor: pointer;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-btn:hover {
            background: var(--muted);
            color: var(--foreground);
        }

        .modal-content h2 {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            padding: 1.5rem 1.5rem 0;
        }

        .modal-body {
            padding: 0 1.5rem 1.5rem;
        }

        .modal-body h3 {
            color: var(--foreground);
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .modal-body h3:first-child {
            margin-top: 0;
        }

        .modal-body p {
            color: var(--muted-foreground);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .contact-note {
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            padding: 1rem;
            margin-top: 1.5rem;
        }

        .contact-note p {
            margin-bottom: 0;
            font-size: 0.9rem;
        }

        /* Responsive adjustments for footer and modals */
        @media (max-width: 768px) {
            body {
                align-items: flex-start;
                padding: 1rem 0.5rem;
            }

            .container {
                margin-top: 1rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                text-align: center;
            }

            .footer-language-switch {
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }

            .footer-lang-btn {
                flex: 0 0 auto;
                min-width: auto;
            }

            .site-footer {
                margin-top: 2rem;
                padding: 1.5rem 1rem 1rem;
            }

            .modal-content {
                max-height: 95vh;
                margin: 0.5rem;
            }

            .modal-content h2 {
                font-size: 1.25rem;
                padding: 1rem 1rem 0;
            }

            .modal-body {
                padding: 0 1rem 1rem;
            }
        }

        @media (max-width: 480px) {
            .footer-content {
                gap: 1rem;
            }

            .footer-section h4 {
                font-size: 1rem;
            }

            .footer-language-switch {
                gap: 0.25rem;
            }

            .footer-lang-btn {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
            }

            .footer-lang-btn .lang-code {
                font-size: 0.75rem;
                min-width: 1.25rem;
            }

            .footer-lang-btn .lang-name {
                font-size: 0.75rem;
            }

            .site-footer {
                padding: 1rem 0.75rem 0.75rem;
            }
        }

        /* Legal Pages Styles */
        .breadcrumb {
            margin-bottom: 1rem;
        }

        /* Language Selector Styles */
        .language-selector {
            position: relative;
            display: inline-block;
            margin-bottom: 1rem;
            z-index: 100;
        }

        .lang-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            background: var(--background);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            color: var(--foreground);
        }

        .lang-toggle:hover {
            background: var(--muted);
            border-color: var(--primary);
        }

        .lang-flag {
            font-size: 1.1rem;
        }

        .lang-name {
            font-weight: 500;
        }

        .lang-chevron {
            width: 1rem;
            height: 1rem;
            transition: transform 0.2s ease;
        }

        .lang-toggle:hover .lang-chevron {
            transform: rotate(180deg);
        }

        .lang-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--background);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin-top: 0.25rem;
            overflow: hidden;
            z-index: 50;
        }

        .lang-dropdown.hidden {
            display: none;
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            text-decoration: none;
            color: var(--foreground);
            transition: background-color 0.2s ease;
            font-size: 0.9rem;
        }

        .lang-option:hover {
            background: var(--muted);
        }

        .lang-option.active {
            background: var(--primary);
            color: var(--primary-foreground);
        }

        .lang-option .lang-flag {
            font-size: 1rem;
        }

        .lang-option .lang-name {
            flex: 1;
        }

        .lang-check {
            width: 1rem;
            height: 1rem;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            text-decoration: none;
            font-size: 0.9rem;
            padding: 0.5rem 0;
            transition: color 0.2s ease;
        }

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

        .back-link i {
            width: 1rem;
            height: 1rem;
        }

        .legal-content {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .last-updated {
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            padding: 1rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .last-updated p {
            margin: 0;
            color: var(--muted-foreground);
            font-size: 0.9rem;
        }

        .legal-section {
            margin-bottom: 2.5rem;
        }

        .legal-section:last-child {
            margin-bottom: 0;
        }

        .legal-section h2 {
            color: var(--primary);
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--border);
        }

        .legal-section h3 {
            color: var(--foreground);
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .legal-section h4 {
            color: var(--foreground);
            font-size: 1rem;
            font-weight: 600;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }

        .legal-section p {
            color: var(--muted-foreground);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .legal-section ul {
            color: var(--muted-foreground);
            line-height: 1.6;
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }

        .legal-section li {
            margin-bottom: 0.5rem;
        }

        .legal-section a {
            color: var(--primary);
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .legal-section a:hover {
            color: var(--secondary);
        }

        .privacy-summary,
        .terms-summary {
            background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
            color: var(--accent-foreground);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-top: 2rem;
        }

        .privacy-summary h3,
        .terms-summary h3 {
            color: var(--accent-foreground);
            margin-top: 0;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .privacy-summary p,
        .terms-summary p {
            color: var(--accent-foreground);
            margin-bottom: 0;
            font-weight: 500;
        }

        .contact-note {
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-top: 2rem;
        }

        .contact-note h3 {
            color: var(--primary);
            margin-top: 0;
            margin-bottom: 1rem;
        }

        .contact-note p {
            margin-bottom: 0.75rem;
        }

        .contact-note ul {
            margin-bottom: 0;
        }

        /* Contact Methods */
        .contact-methods {
            display: grid;
            gap: 1.5rem;
        }

        .contact-method {
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            padding: 1.5rem;
        }

        .contact-method h3 {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            margin-top: 0;
            margin-bottom: 0.75rem;
            font-size: 1.1rem;
        }

        .contact-method h3 i {
            width: 1.25rem;
            height: 1.25rem;
        }

        .contact-method p {
            margin-bottom: 0.5rem;
        }

        .contact-detail {
            font-family: monospace;
            background: var(--background);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 4px);
            padding: 0.5rem 0.75rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Simple Footer for Legal Pages */
        .simple-footer {
            text-align: center;
            padding: 1.5rem 0;
            border-top: 1px solid var(--border);
            margin-top: 2rem;
        }

        .simple-footer .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .simple-footer .footer-links a {
            color: var(--muted-foreground);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
        }

        .simple-footer .footer-links a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        .simple-footer p {
            color: var(--muted-foreground);
            font-size: 0.8rem;
            margin: 0;
        }

        /* Responsive adjustments for legal pages */
        @media (max-width: 768px) {
            .legal-content {
                padding: 1.5rem;
            }

            .legal-section h2 {
                font-size: 1.2rem;
            }

            .contact-methods {
                grid-template-columns: 1fr;
            }

            .simple-footer .footer-links {
                gap: 1rem;
            }
        }

        @media (max-width: 480px) {
            .legal-content {
                padding: 1rem;
            }

            .legal-section h2 {
                font-size: 1.1rem;
            }

            .contact-method {
                padding: 1rem;
            }

            .simple-footer .footer-links {
                flex-direction: column;
                gap: 0.5rem;
            }
        }