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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #4B0082 0%, #1E1E4B 100%);
    min-height: 100vh;
    color: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px;
}

/* Elementos começam invisíveis para animação suave */
.container,
.container .logo,
.container h1,
.terms-markdown,
.bottom-back-btn,
.support-links a,
.top-back-btn {
    opacity: 0;
    visibility: hidden;
}

/* Animações padronizadas */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Container principal */
.container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 30px 20px 90px;
    margin: 0 auto;
    animation: fadeSlideUp 0.7s ease-out forwards 0.1s;
}

.logo {
    display: block;
    margin: 0 auto 25px;
    max-width: 150px;
    animation: fadeSlideIn 0.6s ease-out forwards 0.2s;
}

.container h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    animation: fadeSlideIn 0.7s ease-out forwards 0.35s;
}

.terms-markdown {
    text-align: left;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeSlideUp 0.6s ease-out forwards 0.5s;
}

.terms-markdown h1,
.terms-markdown h2 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px;
}

.terms-markdown ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-markdown li {
    margin-bottom: 8px;
}

.terms-markdown strong {
    color: #fff;
}

.terms-markdown hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 20px 0;
}

.bottom-back-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 30px auto 0;
    padding: 14px;
    background-color: #6A5ACD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    animation: fadeSlideUp 0.6s ease-out forwards 0.7s;
}

.bottom-back-btn:hover {
    background-color: #483D8B;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
}

.support-links a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    animation: fadeSlideUp 0.6s ease-out forwards 0.9s;
}

.support-links a:hover {
    color: #fff;
}

/* Media Queries */
@media (max-width: 480px) {
    .container h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 25px 15px 90px;
    }

    .bottom-back-btn {
        max-width: 240px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 900px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .terms-markdown {
        font-size: 1rem;
        line-height: 1.75;
    }
}