        /* --- LOCAL FONT DEFINITIONS --- */
        @font-face {
          font-family: 'Noto Sans';
          font-style: normal;
          font-weight: 400;
          src: url('fonts/NotoSans-Regular.ttf') format('truetype');
          font-display: swap;
        }
        @font-face {
          font-family: 'Noto Sans';
          font-style: normal;
          font-weight: 500;
          src: url('fonts/NotoSans-Medium.ttf') format('truetype');
          font-display: swap;
        }
        @font-face {
          font-family: 'Noto Sans';
          font-style: normal;
          font-weight: 700;
          src: url('fonts/NotoSans-Bold.ttf') format('truetype');
          font-display: swap;
        }

        /* --- CRITICAL BASE CSS & ACCESSIBILITY --- */
        :root {
            --font-main: 'Noto Sans', sans-serif;
            --color-bg: #ffffff;
            --color-text: #000000;
            --color-primary: #2563eb;
            --color-primary-dark: #1e40af;
            --color-border: #e5e7eb;
            --color-subtle: #6b7280;
            --focus-ring: 3px solid #000000;
            --focus-offset: 2px;
            --container-width: 1200px;
            --radius-md: 8px;
        }

        /* WCAG 2.2 Focus Appearance */
        *:focus-visible {
            outline: var(--focus-ring) !important;
            outline-offset: var(--focus-offset) !important;
            border-radius: 2px;
        }

        /* Basic Resets */
        body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
        
        body {
            font-family: var(--font-main);
            background-color: var(--color-bg);
            color: var(--color-text);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Layout Utilities */
        .container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

        /* === Header Styles === */
        .site-header { 
            padding: 0.75rem 0; 
            border-bottom: 1px solid var(--color-border);
            position: sticky;
            top: 0;
            z-index: 1000;
            background-color: var(--color-bg);
        }
        
        .header-inner { 
            display: flex; 
            justify-content: space-between; 
            align-items: center;
            position: relative; 
            flex-wrap: wrap; 
        }
        .logo { font-weight: 700; font-size: 1.5rem; text-decoration: none; color: #272727ff; }
        .logo-highlight { color: var(--color-primary); }
        
        .main-nav ul { display: flex; gap: 1.5rem; list-style: none; }
        .main-nav a { text-decoration: underline; color: var(--color-text); font-weight: 500; font-size: 1.1rem; }
        .main-nav a:hover { text-decoration: none; }
        
        /* Mobile Toggle */
        .mobile-nav-toggle { display: none; background: transparent; border: 0; padding: 0.5rem; cursor: pointer; }
        .mobile-nav-toggle-icon { display: block; width: 28px; height: 3px; background: var(--color-text); border-radius: 2px; position: relative; }
        .mobile-nav-toggle-icon::before, .mobile-nav-toggle-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--color-text); border-radius: 2px; transition: transform 0.3s ease; }
        .mobile-nav-toggle-icon::before { transform: translateY(-8px); }
        .mobile-nav-toggle-icon::after { transform: translateY(8px); }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon { background: transparent; }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::before { transform: rotate(45deg); }
        .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::after { transform: rotate(-45deg); }

        .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-weight: 500; border-radius: var(--radius-md); text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 44px; box-sizing: border-box; }
        .btn-primary { background: var(--color-primary); color: white; }
        .btn-primary:hover { background: var(--color-primary-dark); }

        /* === MAIN LAYOUT === */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 3fr; /* 1 part Sidebar, 3 parts Content */
            gap: 3rem; 
            margin-top: 2.5rem; 
            margin-bottom: 3rem; 
            flex-grow: 1; 
        }

        .theme-5 .sidebar { order: -1; } 

        /* === Search Form (Sidebar) === */
        .search-form-container { margin: 1.5rem 0; }
        .search-form { display: flex; flex-direction: column; gap: 1rem; }
        .search-form input[type="search"] { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); min-height: 44px; box-sizing: border-box; }
        .search-form .btn { width: 100%; }

        /* === Card Styling === */
        .q-card {
            border: 1px solid var(--color-border);
            padding: 1.5rem; 
            border-radius: var(--radius-md);
            background-color: #fff;
        }
        .q-card p { font-size: 1.1rem; }
        .q-card h2 a { text-decoration: underline; color: #000000; } 
        .q-card h2 a:hover { text-decoration: none; }
        
        /* Links inside text content */
        .terms-content a {
            color: #000000; /* Pure Black Links */
            text-decoration: underline;
        }
        .terms-content a:hover {
            text-decoration: none;
        }
        
        /* === Footer === */
        .site-footer { background: #1a1a1a; color: white; padding: 2rem 0; font-size: 1rem; }
        .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
        .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; }
        .footer-nav a { color: white; text-decoration: underline; }
        .footer-nav a:hover { text-decoration: none; }
        .footer-copy { margin: 0; text-align: right; }

        /* === TERMS PAGE SPECIFIC STYLES === */
        .terms-content h1 { font-size: 2rem; margin-bottom: 0.5rem; color: #000000; }
        .terms-content .last-updated { color: #000000; margin-bottom: 2rem; display: block; font-size: 1rem; }
        .terms-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: #000000; }
        .terms-content p { margin-bottom: 1rem; font-size: 1.1rem; color: #000000; }
        .terms-content ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; color: #000000; }
        .terms-content li { margin-bottom: 0.5rem; font-size: 1.1rem; color: #000000; }
        .terms-content strong { font-weight: 700; color: #000000; }
        
        /* === MEDIA QUERIES === */
        @media (min-width: 769px) { .main-nav { position: absolute; left: 50%; transform: translateX(-50%); } }
        
        @media (max-width: 768px) {
            .logo { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: #272727ff; }
            .site-header { padding: 0.5rem 0; }
            .container { padding: 0 1rem; width: 90%; }
            .header-inner { flex-direction: row; align-items: center; flex-wrap: wrap; position: static; }
            .mobile-nav-toggle { display: block; }
            .main-nav, .header-actions { display: none; width: 100%; }
            .main-nav[data-visible="true"], .header-actions[data-visible="true"] { display: block; }
            .main-nav { order: 2; margin-top: 1.5rem; position: static; transform: none; }
            .header-actions { order: 3; margin-top: 1.5rem; }
            .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; }
            .header-actions .btn { width: 100%; }
            
            .main-layout { margin-top: 1.5rem; gap: 1.5rem; grid-template-columns: 1fr; }
            .theme-5 .sidebar { order: unset; }
            
            .q-card p { font-size: 1rem; width: 90%; }
            .q-card h2 { font-size: 1.2rem; }

            .footer-inner { flex-direction: column; align-items: center; gap: 1.5rem; }
            .footer-nav ul { justify-content: center; gap: 1rem 1.5rem; }
            .footer-copy { text-align: center; }
            
            .terms-content h1 { font-size: 1.75rem; }
        }