:root {
    --optout-primary: #1f6feb;
    --optout-primary-dark: #1552b3;
    --optout-text: #1a1f29;
    --optout-muted: #5b6472;
    --optout-bg: #f4f6fb;
    --optout-card-bg: #ffffff;
    --optout-border: #e3e7ee;
    --optout-error: #c62828;
    --optout-error-bg: #fdecea;
    --optout-success: #1b7a3d;
    --optout-success-bg: #e9f7ee;
    --optout-radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--optout-bg) 0%, #eef1f8 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--optout-text);
    padding: 24px;
}

.optout-card {
    width: 100%;
    max-width: 520px;
    background: var(--optout-card-bg);
    border-radius: var(--optout-radius);
    box-shadow: 0 20px 45px rgba(20, 30, 60, 0.08), 0 2px 6px rgba(20, 30, 60, 0.04);
    padding: 40px 36px 28px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.3;
}

h2 { font-size: 1.15rem; margin: 0 0 8px; }

p { color: var(--optout-muted); line-height: 1.55; margin: 0 0 14px; }

.optout-form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--optout-text);
}

input[type="email"] {
    padding: 12px 14px;
    border: 1px solid var(--optout-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="email"]:focus {
    border-color: var(--optout-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

button[type="submit"] {
    margin-top: 8px;
    padding: 13px 20px;
    background: var(--optout-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
}

button[type="submit"]:hover { background: var(--optout-primary-dark); }
button[type="submit"]:active { transform: translateY(1px); }

.field-error {
    color: var(--optout-error);
    font-size: 0.85rem;
    margin: 0;
}

.alert { border-radius: 10px; padding: 16px 18px; margin-bottom: 8px; }

.alert-success {
    background: var(--optout-success-bg);
    color: var(--optout-success);
}
.alert-success h2 { color: var(--optout-success); }
.alert-success p { color: var(--optout-success); opacity: 0.9; }

.alert-error {
    background: var(--optout-error-bg);
    color: var(--optout-error);
}

.tracking-frame {
    width: 1px;
    height: 1px;
    border: none;
    opacity: 0;
    position: absolute;
}

footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--optout-border);
}

.imprint-toggle {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--optout-muted);
    text-decoration: underline;
    display: inline-block;
    margin: 0;
}

.imprint-box {
    display: none;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--optout-muted);
    line-height: 1.5;
}

.imprint-box.open { display: block; }

@media (max-width: 480px) {
    .optout-card { padding: 28px 22px 20px; }
}
