:root {
    --icon-arrow-left: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19.5 12h-14M11.5 6l-6 6 6 6'/></svg>");
}


/* Reset */

/* Deliberately partial: the legal pages never loaded Tailwind, so no margin or list reset here. */

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


body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}


/* Focus */

a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}


/* Landing page */

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

main.app-main-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #000;
    padding: 30px 40px;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: auto;
    box-sizing: border-box;
}

.app-icon-container {
    background-color: transparent;
    border-radius: 20%;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex-grow: 1;
}

.app-name {
    font-size: 3.2em;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.2;
}

.app-description {
    font-size: 1.1em;
    color: #cccccc;
    line-height: 1.5;
    margin: 0 0 30px;
}

.app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-button,
.google-play-button {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.app-store-button:hover,
.google-play-button:hover {
    background-color: #444444;
    transform: translateY(-2px);
}

.app-store-button svg,
.google-play-button svg {
    width: 2.3em;
    height: 2.3em;
    margin-right: 10px;
    flex-shrink: 0;
}

.app-footer {
    background-color: #000;
    color: #cccccc;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #333;
    box-sizing: border-box;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: 5px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.footer-links a:hover {
    color: #888888;
}

.copyright-text {
    font-size: 0.9em;
    line-height: 1.5;
}


/* Legal pages */

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    margin: 20px auto;
    background-color: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
    flex-grow: 1;
}

.container h1, .container h2, .container h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.container h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

.container h2 {
    font-size: 1.8em;
}

.container h3 {
    font-size: 1.3em;
}

.container p {
    margin-bottom: 15px;
}

.container ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.container ul li {
    margin-bottom: 8px;
}

.back-arrow-container {
    text-align: left;
    margin-bottom: 20px;
}

.back-arrow {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.back-arrow:hover {
    background-color: #333;
}

/* Drawn here, not in the page: the back link carries an empty <i> as the arrow's slot. */
.back-arrow i {
    display: inline-block;
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    margin-right: 8px;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow-left) center / contain no-repeat;
    mask: var(--icon-arrow-left) center / contain no-repeat;
}

.policy-link,
.policy-link:link,
.policy-link:visited {
    color: #ffffff;
    text-decoration: underline;
}


@media (max-width: 768px) {
    main.app-main-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
        margin: 15px auto 5px;
    }

    .app-icon-container {
        margin-bottom: 0;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .app-store-button,
    .google-play-button {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }

    .app-name {
        font-size: 2.5em;
    }

    .app-description {
        font-size: 1em;
    }

    .container {
        padding: 15px;
        margin: 15px auto;
    }

    .container h1 {
        font-size: 2em;
    }

    .container h2 {
        font-size: 1.5em;
    }

    .container h3 {
        font-size: 1.1em;
    }

    .back-arrow {
        font-size: 1em;
        padding: 6px 10px;
    }

    .back-arrow i {
        width: 1em;
        height: 1em;
    }
}

@media (max-width: 480px) {
    .app-icon-container {
        width: 120px;
        height: 120px;
    }

    .app-icon-container img {
        width: 100%;
        height: 100%;
    }

    .app-name {
        font-size: 2em;
    }

    .app-description {
        font-size: 0.9em;
    }

    main.app-main-content {
        padding: 20px;
        margin: 10px auto 0px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .footer-links a {
        margin: 0;
    }

    .container {
        padding: 10px;
        margin: 10px auto;
    }

    .container h1 {
        font-size: 1.8em;
    }

    .container h2 {
        font-size: 1.3em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-store-button,
    .google-play-button,
    .footer-links a,
    .back-arrow {
        transition: none;
    }

    .app-store-button:hover,
    .google-play-button:hover {
        transform: none;
    }
}
