/* ==========================================================================
   Terms of Service Page — css/terms-of-service.css
   All classes prefixed with tos-
   ========================================================================== */

/* ---------- Page container ---------- */
.tos-page {
    position: relative;
    z-index: 1;
}

.tos-section ul {
    list-style-type: disc !important;
    padding: 0 3rem !important;
}

/* ---------- Entrance Animation ---------- */
@keyframes tosSlideUp {
    from { opacity: 0; transform: translateY(80px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tos-page--animate .tos-hero {
    animation: tosSlideUp 0.8s ease-out both;
}

.tos-page--animate .tos-body {
    opacity: 0;
    animation: tosSlideUp 0.8s 0.15s ease-out both;
}

.tos-page--animate ~ .site-footer {
    opacity: 0;
    animation: tosSlideUp 0.8s 0.3s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .tos-page--animate .tos-hero,
    .tos-page--animate .tos-body,
    .tos-page--animate ~ .site-footer {
        animation: none;
        opacity: 1;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.tos-hero {
    padding-top: 200px;
    padding-bottom: 40px;
}

.tos-title {
    font-size: 66px;
    font-weight: 900;
    line-height: 1.6;
    text-transform: uppercase;
    background: linear-gradient(21deg, #fff 7.5%, var(--color-secondary) 39%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.tos-desc {
    font-size: 17px;
    line-height: 26px;
    color: #fff;
    text-align: justify;
    max-width: 1300px;
    margin: 0 0 16px;
}

.tos-link {
    background: linear-gradient(186deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: var(--color-primary-light);
}

.tos-link:hover {
    text-decoration-color: var(--color-primary);
}

/* ==========================================================================
   BODY — Glass Card
   ========================================================================== */
.tos-body {
    padding-top: 60px;
    padding-bottom: 100px;
}

.tos-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tos-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.tos-section-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
    background: linear-gradient(182deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 30px;
}

.tos-section-text {
    font-size: 18px;
    line-height: 23px;
    color: #fff;
    text-align: justify;
    margin: 0 0 12px;
}

.tos-section-text:last-child {
    margin-bottom: 0;
}

.tos-section-list {
    list-style: disc;
    padding-left: 27px;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tos-section-list li {
    font-size: 18px;
    line-height: 23px;
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .tos-title {
        font-size: 52px;
    }

    .tos-section-title {
        font-size: 28px;
    }
}

/* --- 991px --- */
@media (max-width: 991px) {
    .tos-hero {
        padding-top: 160px;
    }

    .tos-title {
        font-size: 44px;
    }

    .tos-card {
        padding: 32px 36px;
        gap: 18px;
    }

    .tos-section-title {
        font-size: 24px;
    }

    .tos-section-text,
    .tos-section-list li {
        font-size: 16px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .tos-hero {
        padding-top: 140px;
        padding-bottom: 30px;
    }

    .tos-title {
        font-size: 36px;
    }

    .tos-desc {
        font-size: 15px;
    }

    .tos-card {
        padding: 24px 20px;
        gap: 16px;
    }

    .tos-section-title {
        font-size: 22px;
    }

    .tos-body {
        padding-bottom: 80px;
    }
}

/* --- 576px --- */
@media (max-width: 576px) {
    .tos-title {
        font-size: 28px;
    }

    .tos-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .tos-section-title {
        font-size: 20px;
    }

    .tos-section-text,
    .tos-section-list li {
        font-size: 15px;
    }

    .tos-card {
        padding: 20px 16px;
        gap: 14px;
    }
}
