        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --bg-dark:    #1a2226;
            --bg-mid:     #232d33;
            --bg-card:    #38454b;
            --accent:     #1f8a99;
            --accent-hover: #167a89;
            --gold:       #c9a14a;
            --text-white: #ebeef0;
            --text-muted: #9ba5aa;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-white);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        em, i, cite, address, dfn, var { font-style: normal; }

        .skip-link {
            position: absolute;
            left: -999px;
            top: 0;
            background: var(--accent);
            color: #0a2630;
            padding: 0.6rem 1rem;
            z-index: 1100;
            border-radius: 0 0 8px 0;
            font-weight: 600;
            text-decoration: none;
        }
        .skip-link:focus { left: 0; }

        main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 7rem 8% 4rem;
        }

        .error-content {
            text-align: center;
            max-width: 580px;
        }

        .error-illustration {
            display: block;
            width: 100%;
            max-width: 480px;
            height: auto;
            margin: 0 auto 2.5rem;
            border-radius: 12px;
        }

        .error-code {
            display: inline-block;
            font-family: 'Spectral', serif;
            font-size: clamp(3rem, 6vw, 4.5rem);
            font-weight: 400;
            color: var(--accent);
            letter-spacing: 0.5rem;
            margin-bottom: 0.5rem;
            line-height: 1;
        }

        h1 {
            font-family: 'Spectral', serif;
            font-weight: 400;
            font-size: clamp(1.6rem, 3vw, 2.4rem);
            color: var(--text-white);
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .error-message {
            color: var(--text-muted);
            font-size: 1.05rem;
            font-weight: 300;
            margin-bottom: 2.5rem;
            line-height: 1.7;
        }

        .error-actions {
            display: flex;
            gap: 0.9rem;
            justify-content: center;
            align-items: center;
        }

        .error-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 1.4rem;
            height: 2.6rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.82rem;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
            white-space: nowrap;
        }

        .error-btn--primary {
            background: var(--accent);
            color: #fff;
            box-shadow:
                0 4px 8px -2px rgba(0, 0, 0, 0.25),
                0 8px 16px -4px rgba(0, 0, 0, 0.18);
        }
        .error-btn--primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        /* Alinha a pílula WhatsApp à mesma altura do botão Voltar */
        .error-actions .btn-primary {
            height: 2.6rem;
            min-width: 0;
        }

        footer {
            padding: 2rem 8%;
            background-color: #131719;
            border-top: 1px solid #232d33;
            text-align: center;
            font-size: 0.78rem;
            font-weight: 300;
            color: var(--text-muted);
        }

        @media (max-width: 600px) {
            .error-content {
                padding: 0 6%;
            }
            .error-illustration {
                max-width: 100%;
            }
            .error-actions {
                flex-direction: column;
                align-items: center;
                gap: 0.8rem;
            }
            .error-btn,
            .error-actions .btn-primary {
                width: 100%;
                max-width: 320px;
                justify-content: center;
            }
            h1 {
                font-size: clamp(1.4rem, 6vw, 2rem);
            }
        }