* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #2c2f33;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow-x: hidden;
}

.flex-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 0;
    animation: fadeIn 1.2s ease-in-out;
    width: 100%;
    max-width: 800px;
    background-color: #d3d3d344;
    padding: 30px;
    border-radius: 10px;
}

.central-container {
    grid-area: 1 / 1 / 7 / 6;
}

.top-container {
    grid-area: 3 / 1 / 4 / 6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    /* allow wrapping if needed */
    width: 100%;
}

.inline img {
    max-height: 60px;
    width: auto;
    height: auto;
    max-width: 40%;
    flex-shrink: 1;
}

/* Button container */
.bottom-container {
    grid-area: 4 / 3 / 5 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Buttons */
.bottom-container a {
    text-decoration: none;
    color: white;
    display: block;
}

a .nav-button {
    background-color: #7289DA;
    padding: 10px;
    border-radius: 6px;
    width: 150px;
    text-align: center;
    border: 2px solid transparent;
}

a .nav-button:hover {
    background-color: transparent;
    border: 2px solid #7286DA;
    color: #7286DA;
}

.tos-content {
    color: #ffffff;
    padding-right: 10px;
    overflow-y: auto;
    max-height: 60vh;
    scrollbar-width: thin;
}

.tos-content h1,
.tos-content h2 {
    margin-bottom: 10px;
    color: #7289DA;
}

.tos-content p,
.tos-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tos-content ul {
    padding-left: 20px;
}

.privacy-content {
    color: #ffffff;
    padding-right: 10px;
    overflow-y: auto;
    max-height: 60vh;
    scrollbar-width: thin;
}

.privacy-content h1,
.privacy-content h2 {
    margin-bottom: 10px;
    color: #7289DA;
}

.privacy-content p,
.privacy-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-content ul {
    padding-left: 20px;
}

.contact-link {
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .privacy-content {
        max-height: 40vh;
    }
}

@media screen and (max-width: 768px) {
    .tos-content {
        max-height: 40vh;
    }
}

@media screen and (max-width: 768px) {
    .flex-container {
        width: 90vw;
        height: auto;
        padding: 20px;
    }

    .inline {
        flex-direction: column;
        gap: 20px;
    }

    .inline img {
        max-width: 80%;
        max-height: 60px;
    }

    .bottom-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-button {
        width: 100%;
        max-width: 300px;
    }
}