:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --primary-hover: #4338ca;
    --surface: #ffffff;
    --bg: #f8f9fb;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --success: #059669;
    --danger: #dc2626;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    padding: 24px 16px;
}

.tos-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 40px 44px;
    max-width: 720px;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-align: center;
}

.tos-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
}

.tos-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tos-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tos-content h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.tos-content h2:first-child {
    margin-top: 0;
}

.tos-content p {
    margin-bottom: 10px;
}

.tos-content .tos-warning {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tos-content .tos-important {
    font-weight: 600;
    color: var(--text-primary);
}

.tos-content ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.tos-content li {
    margin-bottom: 4px;
}

.tos-content .tos-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tos-error {
    background: #fef2f2;
    color: var(--danger);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #fecaca;
    margin-top: 16px;
    font-size: 0.85rem;
    display: none;
}

.tos-accept-bar {
    margin-top: 24px;
    text-align: left;
}

.tos-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.5;
}

.tos-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.tos-accept-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tos-accept-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.tos-accept-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tos-footer-link {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.tos-footer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.tos-footer-link a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
    .tos-container {
        padding: 28px 20px;
    }

    .tos-content {
        max-height: 300px;
        padding: 16px;
    }
}
