.tos-page {
    background: linear-gradient(180deg, #f5f5f7 0%, #f2f3f7 50%, #e7ecff 100%);
    color: #1d1d1f;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.tos-main {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 80px);
    padding: clamp(96px, 12vw, 160px) clamp(20px, 6vw, 96px) clamp(120px, 14vw, 200px);
}

.tos-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.tos-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(60, 60, 67, 0.52);
}

.tos-hero-title {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: clamp(2.6rem, 6vw, 3.9rem);
    font-weight: 650;
    letter-spacing: -0.015em;
    margin: 0;
}

.tos-hero-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: rgba(60, 60, 67, 0.78);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px -10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.tos-hero-summary {
    max-width: 48ch;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(28, 28, 30, 0.75);
    margin: 0;
}

.tos-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 34px 60px -40px rgba(15, 23, 42, 0.45), 0 16px 40px -32px rgba(51, 72, 104, 0.25);
    backdrop-filter: blur(24px);
    padding: clamp(32px, 6vw, 72px);
}

.tos-intro {
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    line-height: 1.75;
    color: rgba(28, 28, 30, 0.78);
    margin-top: 0;
}

.tos-content p,
.tos-content li {
    font-size: clamp(1rem, 1.85vw, 1.1rem);
    line-height: 1.7;
    color: rgba(28, 28, 30, 0.78);
}

.tos-content h2,
.tos-content h3 {
    color: #1d1d1f;
    scroll-margin-top: 140px;
}

.tos-content h2 {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: clamp(1.6rem, 3.6vw, 2.1rem);
    font-weight: 630;
    letter-spacing: -0.01em;
    margin: clamp(40px, 6vw, 64px) 0 0.85rem;
}

.tos-content h2:first-of-type {
    margin-top: clamp(32px, 4vw, 48px);
}

.tos-content h2:not(:first-of-type) {
    padding-top: clamp(24px, 3vw, 36px);
    border-top: 1px solid rgba(28, 28, 30, 0.08);
}

.tos-content h3 {
    font-size: clamp(1.25rem, 2.6vw, 1.55rem);
    font-weight: 600;
    margin: clamp(28px, 4vw, 44px) 0 0.65rem;
    color: rgba(28, 28, 30, 0.85);
}

.tos-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.85rem 0 0;
}

.tos-content li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
}

.tos-content li::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.95rem;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.18);
}

.tos-content a {
    color: #0071e3;
    font-weight: 500;
    text-decoration: none;
}

.tos-content a:hover,
.tos-content a:focus {
    text-decoration: underline;
}

.tos-content strong {
    color: #1d1d1f;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .tos-main {
        padding-top: clamp(80px, 16vw, 120px);
        padding-bottom: clamp(96px, 18vw, 160px);
    }

    .tos-content {
        border-radius: 24px;
    }
}

@media (max-width: 680px) {
    .tos-main {
        padding: 88px 18px 120px;
        gap: 48px;
    }

    .tos-hero {
        gap: 1rem;
    }

    .tos-hero-updated {
        font-size: 0.85rem;
        padding: 0.4rem 1.1rem;
    }

    .tos-content {
        padding: 28px 22px 40px;
        border-radius: 22px;
    }

    .tos-content li {
        padding-left: 1.4rem;
    }

    .tos-content li::before {
        left: 0.3rem;
    }
}
