/* tos.html — legal content section */

#tos.tos-section {
    position: relative;
    isolation: isolate;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
}

#tos.tos-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

html.dark #tos.tos-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 50%, #0f172a 100%) !important;
}

html.dark #tos.tos-section::before {
    background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 55%);
}

#tos.tos-section > .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    #tos.tos-section > .container {
        max-width: 76rem;
    }
}

@media (min-width: 1280px) {
    #tos.tos-section > .container {
        max-width: 84rem;
    }
}

@media (min-width: 1536px) {
    #tos.tos-section > .container {
        max-width: 92rem;
    }
}

.tos-head {
    max-width: 40rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

@media (min-width: 1024px) {
    .tos-head {
        max-width: 48rem;
    }
}

.tos-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

html.dark .tos-eyebrow {
    color: #93c5fd;
}

.tos-title-page {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
}

html.dark .tos-title-page {
    color: #f8fafc;
}

.tos-title-accent {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tos-lead {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
}

html.dark .tos-lead {
    color: #94a3b8;
}

.tos-updated {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

html.dark .tos-updated {
    color: #94a3b8;
}

.tos-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .tos-content-wrap {
        max-width: 72rem;
    }
}

@media (min-width: 1280px) {
    .tos-content-wrap {
        max-width: 80rem;
    }
}

@media (min-width: 1536px) {
    .tos-content-wrap {
        max-width: min(90rem, 100%);
    }
}

.tos-head-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e40af;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;
}

html.dark .tos-head-notice {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
}

.tos-head-notice::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
