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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #f5f5f3;
    color: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards;
}

.hero-image {
    width: min(55vh, 55vw, 480px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: min(55vh, 55vw, 480px);
    margin-top: 20px;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    line-height: 1.0;
}

.brand-subtitle {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.privacy-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: right;
}

.privacy-link:hover {
    color: #1a1a1a;
}

/* Privacy page */

.privacy-page {
    overflow: auto;
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 40px 0;
    opacity: 0;
    animation: fadeIn 1.0s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s forwards;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0);
    transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.5;
}

.nav-heading {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a1a;
}

.policy {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
}

.policy h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 48px;
    margin-bottom: 12px;
}

.policy p {
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.policy .policy-updated {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #aaaaaa;
    margin-top: 48px;
}

.policy-footer-logo {
    display: block;
    width: 160px;
    height: 160px;
    margin: 160px auto 0;
    filter: brightness(0);
}

.void {
    height: 0;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.redacted {
    background-color: #1a1a1a;
    color: transparent;
    cursor: pointer;
    border-radius: 0px;
    padding: 0 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.redacted.revealed {
    background-color: transparent;
    color: #444444;
    user-select: auto;
}

/* 404 page */

.not-found-code {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 16px;
}

.not-found-logo {
    width: 48px;
    height: 48px;
    filter: brightness(0);
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.not-found-logo:hover {
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-image,
    .bottom-bar {
        width: min(75vw, 75vh, 350px);
    }

    .brand-name {
        font-size: 18px;
    }

    .privacy-link {
        font-size: 11px;
    }

    .nav {
        padding: 24px 24px;
    }

    .policy {
        padding: 24px 24px 60px;
    }
}

@media (max-width: 380px) {
    .hero-image,
    .bottom-bar {
        width: min(85vw, 85vh, 300px);
    }

    .brand-name {
        font-size: 16px;
    }

    .privacy-link {
        font-size: 10px;
    }

    .nav {
        padding: 20px 16px;
    }

    .policy {
        padding: 16px 16px 48px;
    }
}
