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

@font-face {
    font-family: 'FuturaBook';
    src: url('Futura-Book.ttf') format('truetype');
}

@font-face {
    font-family: 'FuturaDemi';
    src: url('Futura-Demi.ttf') format('truetype');
}

html,
body {
    background-color: #ECE8E3;
    font-family: 'FuturaBook', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 60px;
}

header a {
    display: inline-block;
    /* ensures it sizes properly */
    cursor: pointer;
    position: relative;
    /* for stacking context */
    z-index: 10;
    /* above other elements */
}


body {
    display: flex;
    flex-direction: column;
}

header {
    flex-shrink: 0;
}

header .logo {
    width: auto;
    height: 40px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-40px);

}

.graphic-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#threejs-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    position: relative;
}

.form-section {
    display: flex;
    justify-content: center;
}

.email-signup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-signup input {
    width: 260px;
    height: 45px;
    border-radius: 0;
    border: 1px solid black;
    padding: 15px;
    text-align: center;
    background-color: inherit;
    font-family: 'FuturaDemi';
    font-size: 12px;
}

.email-signup button {
    height: 45px;
    padding: 0 20px;
    border: 1px solid black;
    border-radius: 0;
    background-color: black;
    color: #ECE8E3;
    font-family: 'FuturaDemi';
    font-size: 12px;
    cursor: pointer;

}

.email-signup button:hover {
    background-color: #333;
}

.email-signup input:focus {
    outline: none;
    border-color: inherit;
    background-color: inherit;
    box-shadow: none;
}

.email-signup input:focus::placeholder {
    color: transparent;
}


footer.bottom-section {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'FuturaDemi';
    font-size: 16px;
}

.link-list a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    transition: filter 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link-list:has(a:hover) a:not(:hover) {
    filter: blur(1.75px);
}

footer .main-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 400px;
    font-family: 'FuturaDemi';
    font-size: 16px;
}

.main-text::selection {
    background-color: black;
    color: #ECE8E3;
}

.legal-link {
    font-family: 'FuturaDemi';
    font-size: 16px;
    text-decoration: none;
    color: inherit;
    cursor: s-resize;
}

.legal-section {
    min-height: 100vh;
    background-color: #ECE8E3;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.legal-content {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.legal-content p {
    font-family: 'FuturaBook';
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content::selection {
    background-color: black;
    color: #ECE8E3;
}

.legal-content *::selection {
    background-color: black;
    color: #ECE8E3;
}

@media (max-width: 950px) {
    .page-wrapper {
        padding: 25px;
        margin-bottom: 60px;
    }

    footer.bottom-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-top: 40px;
    }

    .link-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 14px;
    }

    footer .main-text {
        position: static;
        transform: none;
        max-width: 90%;
        font-size: 14px;
        margin: 20px 0;
    }

    .legal-link {
        font-size: 14px;
    }

    .link-list a {
        font-size: 14px;
    }

    .email-signup {
        flex-direction: column;
        gap: 15px;
    }

    .email-signup input {
        width: 100%;
        max-width: 300px;
        min-width: 220px;
    }

    .email-signup button {
        width: 100%;
        max-width: 300px;
        min-width: 220px;
    }

    .legal-section {
        padding: 30px;
        margin-top: 10px;
    }

    .legal-content {
        padding: 30px;
    }
}