:root {
    --max-width: 800px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 1rem;
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.logo:hover {
    color: var(--brand);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

main {
    padding: 3.5rem 0 4rem;
}

.app-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.updated {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.policy-card > h2:first-child {
    margin-top: 0;
}

p,
ul {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

ul {
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.45rem;
}

li strong,
p strong {
    color: var(--text);
    font-weight: 600;
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.footer-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Invozo: black & white only */
body.theme-invozo {
    --bg: #ffffff;
    --surface: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);
    --text: #000000;
    --muted: #333333;
    --border: #e5e5e5;
    --accent: #000000;
    --accent-hover: #333333;
    --brand: #000000;
}

body.theme-invozo .policy-card {
    border-color: #000000;
}

/* Veynu: brand accent on dark */
body.theme-veynu {
    --bg: #121212;
    --surface: #1a1a1a;
    --header-bg: rgba(18, 18, 18, 0.9);
    --text: #ffffff;
    --muted: #b3b3b3;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #E7384D;
    --accent-hover: #ff4d63;
    --brand: #ffffff;
}

body.theme-veynu {
    background:
        radial-gradient(ellipse 70% 35% at 50% -8%, rgba(231, 56, 77, 0.18), transparent 55%),
        var(--bg);
}

.page-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 40rem;
}

.form-block {
    margin-top: 0.5rem;
    max-width: 28rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input[type="email"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input[type="email"]::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

.form-field input[type="email"]:hover {
    border-color: var(--accent);
}

.form-field input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(231, 56, 77, 0.28);
}

.form-field input[type="email"][aria-invalid="true"] {
    border-color: var(--accent);
}

.field-error {
    display: none;
    font-size: 0.875rem;
    color: var(--accent);
}

.field-error.is-visible {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.4rem;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.55;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: var(--text);
    background: rgba(231, 56, 77, 0.12);
    border-color: rgba(231, 56, 77, 0.4);
}

.form-status.is-error {
    color: var(--text);
    background: rgba(231, 56, 77, 0.18);
    border-color: var(--accent);
}

.policy-card .privacy-link {
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-meta {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        min-height: auto;
    }

    main {
        padding: 2.5rem 0 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn:hover:not(:disabled) {
        transform: none;
    }
}
