@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #09111f;
    --panel: rgba(10, 18, 32, 0.88);
    --panel-soft: rgba(14, 27, 45, 0.78);
    --border: rgba(124, 154, 196, 0.16);
    --text-main: #eef4ff;
    --text-soft: #95a8c4;
    --accent: #59c3c3;
    --accent-strong: #2f8fb1;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    position: relative;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(47, 143, 177, 0.24), transparent 26%),
        radial-gradient(circle at right 25%, rgba(89, 195, 195, 0.18), transparent 24%),
        linear-gradient(180deg, #08101c 0%, #0f1a2d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.container-termos {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    margin: 48px auto;
    padding: 42px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    animation: fadeIn 0.45s ease;
}

.container-termos h1,
.container-termos h2 {
    font-family: 'Space Grotesk', sans-serif;
}

.container-termos h1 {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
}

.container-termos h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    padding-left: 14px;
    font-size: 1.2rem;
    color: #8be4e4;
    border-left: 4px solid var(--accent);
}

.container-termos p {
    margin-top: 10px;
    line-height: 1.8;
    color: var(--text-soft);
    font-size: 1rem;
}

.container-termos p:first-of-type {
    text-align: center;
    margin-bottom: 24px;
}

.container-termos p a {
    color: #8be4e4;
    text-decoration: none;
}

.container-termos p a:hover {
    text-decoration: underline;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-right: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #07111d;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 34px rgba(47, 143, 177, 0.28);
}

.btn-voltar:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(47, 143, 177, 0.34);
}

.btn-voltar.canto {
    position: absolute;
    top: 20px;
    left: 20px;
    margin-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    body {
        padding: 18px 12px;
    }

    .container-termos {
        margin: 20px auto;
        padding: 26px;
        border-radius: 24px;
    }

    .btn-voltar {
        width: 100%;
        margin-right: 0;
    }
}
