        /* COOKIES + PRIVACY */
        body.modal-open {
            overflow: hidden;
        }

        .cookie-banner[hidden],
        .privacy-modal[hidden] {
            display: none;
        }

        .cookie-banner {
            position: fixed;
            left: 50%;
            bottom: 1.4rem;
            transform: translateX(-50%);
            width: min(1120px, calc(100% - 2rem));
            z-index: 1200;
        }

        .cookie-shell {
            display: grid;
            grid-template-columns: 1.4fr auto;
            gap: 1.4rem;
            align-items: start;
            background: var(--paper);
            border: 1px solid var(--line-color);
            border-radius: 4px;
            padding: 1.35rem;
            box-shadow: 0 16px 44px rgba(16, 27, 48, 0.12);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            animation: panelLift 0.28s var(--ease-out-expo);
        }

        @keyframes panelLift {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.98);
            }

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

        .cookie-copy {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .cookie-kicker {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--accent-secondary);
            font-weight: 700;
        }

        .cookie-copy h2 {
            font-family: var(--font-display);
            font-weight: 200;
            font-size: clamp(1.8rem, 4vw, 3rem);
            color: var(--primary-deep);
            letter-spacing: -0.02em;
            text-transform: none;
            line-height: 0.92;
        }

        .cookie-copy p {
            font-size: 0.9rem;
            line-height: 1.35;
            letter-spacing: 0;
            color: var(--text-muted);
            max-width: 700px;
        }

        .cookie-privacy-link {
            width: fit-content;
            border: none;
            border-bottom: 1px solid var(--accent-secondary);
            background: transparent;
            padding: 0 0 0.2rem;
            color: var(--text-color);
            cursor: pointer;
            font-size: 0.82rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            font-weight: 600;
            font-family: var(--font-body);
        }

        .cookie-actions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.6rem;
            min-width: 220px;
        }

        .cookie-action {
            border-radius: 50px;
            padding: 0.95rem 1.25rem;
            border: 1px solid var(--line-color);
            cursor: pointer;
            font-size: 0.78rem;
            letter-spacing: 0.08em;
            font-weight: 600;
            font-family: var(--font-body);
            transition: transform 0.25s var(--ease-out-expo), background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }

        .cookie-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(16, 27, 48, 0.08);
        }

        .cookie-action.primary {
            background: var(--primary-deep);
            color: var(--bg-color);
            border-color: var(--primary-deep);
        }

        .cookie-action.outline {
            background: transparent;
            color: var(--text-color);
            border-color: rgba(16, 27, 48, 0.46);
        }

        .cookie-action.subtle {
            background: var(--surface-color);
            color: var(--text-color);
            border-color: var(--line-color);
        }

        .cookie-preferences {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            gap: 1px;
            background: var(--line-color);
            border: 1px solid var(--line-color);
            margin-top: 0.4rem;
        }

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

        .cookie-option {
            background: var(--bg-color);
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 1.2rem;
            padding: 1.1rem;
            transition: background 0.24s ease;
        }

        .cookie-option:hover {
            background: var(--surface-color);
        }

        .cookie-option h3 {
            font-family: var(--font-display);
            text-transform: none;
            font-size: 1.05rem;
            font-weight: 300;
            letter-spacing: -0.01em;
            margin-bottom: 0.35rem;
            color: var(--primary-deep);
        }

        .cookie-option p {
            font-size: 0.86rem;
            line-height: 1.15;
            letter-spacing: 0;
            color: var(--text-muted);
        }

        .cookie-fixed {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent-secondary);
            font-weight: 700;
        }

        .toggle-wrap {
            display: flex;
            align-items: center;
        }

        .toggle {
            position: relative;
            width: 46px;
            height: 26px;
            flex-shrink: 0;
        }

        .toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-track {
            position: absolute;
            inset: 0;
            background: rgba(16, 27, 48, 0.18);
            border-radius: 999px;
            cursor: pointer;
            transition: background 0.28s ease;
        }

        .toggle input:checked+.toggle-track {
            background: var(--primary-deep);
        }

        .toggle-thumb {
            position: absolute;
            left: 3px;
            top: 3px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--paper);
            box-shadow: 0 2px 6px rgba(16, 27, 48, 0.18);
            transition: transform 0.28s var(--ease-out-expo);
            pointer-events: none;
        }

        .toggle input:checked~.toggle-thumb {
            transform: translateX(20px);
        }

        .cookie-shell-wrap {
            display: grid;
            grid-template-columns: 1.4fr auto;
            gap: 1.4rem;
            align-items: start;
        }

        @media (max-width: 700px) {
            .cookie-shell {
                grid-template-columns: 1fr;
            }

            .cookie-shell-wrap {
                grid-template-columns: 1fr;
            }

            .cookie-actions {
                min-width: auto;
            }
        }

        /* PRIVACY MODAL */
        .privacy-modal {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.2rem;
        }

        .privacy-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(16, 27, 48, 0.58);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .privacy-sheet {
            position: relative;
            z-index: 1;
            background: var(--bg-color);
            border-radius: 8px;
            max-width: 680px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 32px 80px rgba(16, 27, 48, 0.24);
            border: 1px solid var(--line-color);
            display: flex;
            flex-direction: column;
        }

        .privacy-sheet-head {
            padding: 2rem 2rem 1.2rem;
            border-bottom: 1px solid var(--line-color);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            position: sticky;
            top: 0;
            background: var(--bg-color);
            z-index: 2;
        }

        .privacy-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--accent-secondary);
            font-weight: 700;
            margin-bottom: 0.4rem;
        }

        .privacy-title {
            font-family: var(--font-display);
            font-weight: 200;
            font-size: clamp(1.4rem, 3vw, 2rem);
            color: var(--primary-deep);
            letter-spacing: -0.02em;
            text-transform: none;
            line-height: 1;
        }

        .privacy-close {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid var(--line-color);
            background: var(--surface-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .privacy-close:hover {
            background: var(--primary-deep);
            color: var(--paper);
        }

        .privacy-body {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .privacy-section h3 {
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-deep);
            margin-bottom: 0.6rem;
            text-transform: none;
            letter-spacing: 0;
        }

        .privacy-section p,
        .privacy-section li {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.55;
            letter-spacing: 0;
        }

        .privacy-section ul {
            padding-left: 1.2rem;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .privacy-update {
            font-size: 0.78rem;
            color: var(--text-muted);
            padding-top: 1rem;
            border-top: 1px solid var(--line-color);
        }

